To setup JVM options inside elastic beanstalk, your bundle file must be like this:
-bundle.zip
|--.ebextensions //do not forget the dot at the beginning of the name
|--jvm.config
|--java_app.jar
And, the jvm.config file must be set like this:
option_settings: ...