We recently upgraded one of our applications from Java 1.4 to Java 6.
With some load and performance tests, we noticed that the available memory remained generally at much lower levels in Java 6 than what was before with Java 1.4.
After some profiling of the application with Java 6, we noticed that many objects that no longer reference any other objects (for example, candidates for garbage collection) remained in memory and, apparently, were never collected by garbage. We took this as an explanation for the lower available memory.
Question: did the garbage collection behavior change from Java 1.4 to Java 6?
java garbage-collection
b.roth
source share