Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Confiigure JVM setting in Jetty standalone server

Tags:

jetty

I'm trying to install a standalone jetty 7.6.3 server in CENTOS. I was able successfully deploy and run a sample application with default settings. Now i want to increase the JVM memory, that is set the Xmx and Xms parameters. After reading through the documentation i have set them in start.ini file. But this is not getting reflected when i start the server. I have tried using --exec parameter in start.ini, but this spawns a separate VM. I'm using java -jar start.jar to start the server

How do i configure the JVM memory GC setting in a jetty standalone server?

like image 254
rohit Avatar asked May 21 '12 05:05

rohit


1 Answers

You need to set JAVA_OPTIONS in the jetty.sh file.

like image 67
Tarlog Avatar answered Oct 01 '22 21:10

Tarlog