0

I am monitoring a Java app through VisualVM and I can see that the heap memory stays relatively constant, however the Java process grows larger and larger in memory.

I understand that the Java memory consists of heap memory and the JVM+PermGen memory which involves all sort of things, but my java app is a GUI application and this supposed memory leak only happens if the GUI component are in a specific configuration.

I have done some research and apparently it is possible to get memory leak while staying within the heap size. What I don't understand is how my situation could be such a scenario.

Any idea how Swing manipulations might cause such a memory leak?

Maths noob
  • 1,684
  • 20
  • 42
  • Did you try to look at which part of heap causing this issue? I would say try tools like VisualVM (or) JConsole to find out the problem area, then finding solution might be easier. JConsole would be available in your JDK-->bin folder – kosa Oct 02 '15 at 15:52
  • Like I said, visualvm shows no memory leak. – Maths noob Oct 03 '15 at 17:07
  • Use Jconsole and check different memory allocations like permgen, old and new generations etc., – kosa Oct 03 '15 at 20:05
  • Thanks. Didn't know about JConsole. I monitored it on there. All the non-heap memories were almost constant too. – Maths noob Oct 05 '15 at 15:24
  • Not sure what else might be causing leak, sorry! – kosa Oct 05 '15 at 15:45

1 Answers1

0

Tuned out it wasn't a memory leak after all. I was more or less in the same situation as this.

Community
  • 1
  • 1
Maths noob
  • 1,684
  • 20
  • 42