This article describes how to view memory allocation stacktrace in Java VisualVM: http://rejeev.blogspot.de/2009/04/analyzing-memory-leak-in-java.html
In short, defi
Enable Memory profiling in Sampler tab, then press a Heap Dump button.