Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

totalMemory Decreases Over Time

843829Jan 28 2009 — edited Feb 10 2009
We have a Java application running on the Sun 1.5.0_09 JVM on a Solaris 8 server. When we started the application, we set the heap size settings as follows: -Xms256m -Xmx256m. With these settings we have typically found that a call to Runtime.getRuntime().totalMemory() will return a constant value over time, because we essentially set the maximum and minimum heap size values to the same size. However, we have a couple of systems where the value returned by Runtime.getRuntime().totalMemory() is decreasing over time. Can anyone explain how the total heap size can decrease when it has been set to a constant value? Note that we didn't have this problem on 1.4.2. We have only seen it on 1.5.0.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 10 2009
Added on Jan 28 2009
2 comments
162 views