EBExtensions : Tomcat JVM Options


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 :

Xms: 756m
Xmx: 756m
XX:MaxPermSize: 128m
JVM Options: -Djava.library.path=/path/to/my/lib

Thanks for your help.

asked 2 years ago54 views
1 Answer

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

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions