Configure JVM settings on a standalone Jetty server

I am trying to install a standalone berth server 7.6.3 in CENTOS. I was able to successfully deploy and run the sample application with the default settings. Now I want to increase the JVM memory, which sets the Xmx and Xms parameters. After reading the documentation, I installed them in the start.ini file. But this is not reflected when I start the server. I tried using the -exec option in start.ini, but this spawns a separate virtual machine. I use java -jar start.jar to start the server

How to configure GC JVM memory setting on a stand-alone stand-alone server?

+5
source share
2 answers

You need to install JAVA_OPTIONSto a file jetty.sh.

+2
source

$JETTY_HOME/bin/jetty.sh JAVA_OPTIONS:

JAVA_OPTIONS="-Xms1024m -Xmx1024m -server -XX:+UseConcMarkSweepGC"

Jetty 9.2.9 .

0

All Articles