Operating System - HP-UX
1835245 Members
2120 Online
110078 Solutions
New Discussion

Java Swing Application Memory leak

 
Mrugesh Desai
New Member

Java Swing Application Memory leak

Hi,

I have an application that runs perfectly well on windows based JVMs. But with same use cases, my application run out of memory on Hp-UX JVM.

I am using Java1.4.1_03 vm.

Can anybody help me to understand the differences in the behaviour ?

thanks
2 REPLIES 2
Navin Bhat_2
Trusted Contributor

Re: Java Swing Application Memory leak

Did you try to increase the heap size ?
Mrugesh Desai
New Member

Re: Java Swing Application Memory leak

I have set the heap size to 120M. This more than enough for Windows but some how insufficient for HP-Ux.
This is a GUI application. The memory leak happens because one of the dialog boxes does not get cleaned up from the memory. Same dialog box with same code path gets cleanedup from Windows JVM.

I profiled my application using Jprobes Memory debugger. Interestingly the dilaog box disappears from heap when taking a snapshot in the jprobe. So i have no clue whats causing it to stay when i run it stand alone.