Java memory usage increases when App is used, but doesnt decrease when not being used.

Posted by gren on Stack Overflow See other posts from Stack Overflow or by gren
Published on 2010-06-11T11:48:52Z Indexed on 2010/06/11 11:52 UTC
Read the original article Hit count: 197

Filed under:
|
|

I have a java application that uses a lot of memory when used, but when the program is not being used, the memory usage doesnt go down.

Is there a way to force Java to release this memory? Because this memory is not needed at that time, I can understand to reserve a small amount of memory, but Java just reserves all the memory it ever uses. It also reuses this memory later but there must be a way to force Java to release it when its not needed.

System.gc is not working.

© Stack Overflow or respective owner

Related posts about java

Related posts about memory