Ramesh
Ramesh

Reputation: 21

Tomcat Server Maximum Heap size (-Xmx Value ) is changed while Tomcat is Running?

Initially, my Tomcat is Started wit hsome Xmx Value. But it is changing with in 5 mins. But My Tomcat is running with heavy Load.? Is it possible OS can reduce/ increase Xmx Value dynamically?

Upvotes: 2

Views: 1013

Answers (2)

bwawok
bwawok

Reputation: 15367

Your -Xmx, your MAX heap will not grow. Your CURRENT heap may grow.

For example...

You start with a -Xmx of 1g.

App starts with a heap of 256m. It may slowly grow (depending on load etc.) to 1g, but it should never pass 1g. If it needs more than 1g of memory it will crash.

Upvotes: 3

ant
ant

Reputation: 22948

Is it possible OS can reduce/ increase Xmx Value dynamically?

No

OS is not the problem, probably is your app as BalusC suggested

Upvotes: 0

Related Questions