Reputation: 21
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
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
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