EBExtensions : Tomcat JVM Options

0

Hi,
I am new to Elastic Beanstalk and require help with the following issue.
I have a Tomcat based web application which requires access to a native library.
Running my application and specifying the -Djava.library.path=/path/to/my/lib in the JVM options field in the software configuration in the Elastic Beanstalk console works a treat.
However, I wish to add this configuration to the .ebextensions file so that it gets applied automatically when additional instances are spun up. I have not been able to get this working using the configuration below :

option_settings:
aws:elasticbeanstalk:container:tomcat:jvmoptions:
Xms: 756m
Xmx: 756m
XX:MaxPermSize: 128m
JVM Options: -Djava.library.path=/path/to/my/lib

Thanks for your help.

已提問 3 年前檢視次數 391 次
1 個回答
0

I worked around the issue by setting the java.library.path as an environment property rather than via JVM Options.
i.e.
aws:elasticbeanstalk:application:environment:
java.library.path: /path/to/my/lib

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南