This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Ever increasing heap size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Ever increasing heap size " Watch "Ever increasing heap size " New topic

Ever increasing heap size

Bob Sullivan

Joined: May 13, 2003
Posts: 5
I have a Java client using weblogic. If I leave the client up "doing nothing" over several hours the heap size increases even though the number of bytes used remains the same. Monitoring with optimizeIT reveals a steady increase in used bytes until GC kicks in bringing the used bytes size back down. This cycle repeats over and over. About every 5th time though the Java heap size gets bumped up a few MB at about the same time the GC starts. After GC the used bytes goes back down to its baseline but the enlarged heap remains. This results in an ever-increasing gap between used bytes and heap size. Is there any way to control the heap size growth so that it waits until GC is finished before deciding to grow?
subject: Ever increasing heap size
Similar Threads
axis2 leading to JVM , outOfMemory
Millions of unique strings without eating all memory?
Interesting article about JVM performance
Pulling millions of unique values from Oracle?
The Annoying Garbage Collector