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)
像这样开始码头:
java -Xms2G -Xmx4G -jar start.jar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.