This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java VM memory size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "Java VM memory size" Watch "Java VM memory size" New topic

Java VM memory size

Daniel White

Joined: Nov 22, 2011
Posts: 1

When using for example:

JAVA_OPTS="-server -Xms256m -Xmx2560m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+ScavengeBeforeFullGC XX:MaxHeapFreeRatio=81 -XX:MinHeapFreeRatio=80"

our heap space starts kinda small, however when more memory is used or when we bring it to the max and create an outofmemory exception (or without the exception just to the max) then when the used memory drops the size does not drop with it.

this is incredible cubersome for a VM farm with many java servers

is there any way or setting to make the size shrink back to the minimum (-Xms256m) after it is not used anymore?

having this ability would make my sysadmins happy, and my too, since i would get more mem per server from them.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Java VM memory size
It's not a secret anymore!