- Le plus récent
- Le plus de votes
- La plupart des commentaires
According to the docs the namespace aws:elasticbeanstalk:container:tomcat:jvmoptions should be used to set JVM Options.
I was able to set the following in Configuration > Software > Container Options > JVM Options which opened up the port:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5004
However I tried to set the same option in .ebextensions/tomcat-settings.config file to no affect. Not even sure if bundle deploy is handling this file at all. It is not copied to /etc/tomcat/conf.d. If I manually copy it to /etc/tomcat/conf.d it apparently is not used to configure Tomcat. Is there a known issue with this approach?
.ebextensions/tomcat-settings.config content:
option_settings: aws:elasticbeanstalk:container:tomcat:jvmoptions: Xms: 1024m Xmx: 2048m JVM Options: '-agentlib: jdwp=transport=dt_socket,server=y,suspend=n,address=5004'
aws:elasticbeanstalk:environment:proxy: ProxyServer: apache
I had problems with this configuration as well. My mistake was that I wasn't enclosing the values in single quotes. The parameter value should be in single quotes: '-Duser.language=pt -Duser.region=BR'. My tomcat-setting.config ended up like this:
{
"option_settings": [
{
"namespace": "aws:elasticbeanstalk:container:tomcat:jvmoptions",
"option_name": "JVM Options",
"value": "'-Duser.language=pt -Duser.region=BR'"
}
]
}
Contenus pertinents
- demandé il y a 3 ans
- demandé il y a 9 mois
- demandé il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 9 mois
