I have Tomcat with configured XMS=XMX
(4G both).
But - what if I'll set XMS
for example 1G?
As I understood - JVM will start Tomcat with provided 1G memory. Then, if application needs more - JVM will rise it up to 4G in some period. To rise it - Java must run some actions (resize, rellocate pages in memory?) - and it's take some time and CPU resourses, correct?
What happened after Tomcat's application doesn't need so much memory? Java will again run actions to decrease used memory?
Thanks.
P.S. Why I'm asking - with XMS=1G
and XMX=4G
Apache Jmeter give results which is much less (Throughput
and Average
), than if I started Tomcat with XMX
and XMS
both 4G.