Question

I have Java 6 web application(*.war) running on Jetty 8. In application I am caching(with EHCache) some data, but I need to increase max heap size because 1g is not enough. I need min 2g and max 4g.

The question is: how to setup this (if it is possible - step by step)?

(I was trying "java -Xmx4g -Xms2g" but it respond me that I need to specify file with main method which is imposible for war)

Était-ce utile?

La solution

Start jetty like this:

java -Xms2G -Xmx4G -jar start.jar
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top