I have a Java application that uses a lot of memory when used, but when the program is not in use, memory usage is not reduced.
Is there a way to get Java to free this memory? Since this memory was not needed at that time, I can understand that it reserves a small amount of memory, but Java just reserves all the memory that it has ever used. It also reuses this memory later, but there should be a way to get Java to release it when it is not needed.
System.gc does not work.
java memory-management memory
gren Jun 11 '10 at 11:48 2010-06-11 11:48
source share