Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing Memory Issue

 
Vijay Ram
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a swing applet which is in a popup launched from a html parent window. I have issues when I close the applet and the parent page. Many time i still find memory lingering (java coffee cup icon is present and task manager shows the IEXPLORE running). I can understand that if the parent is used to navigate to another site and only the applet is closed I can have memory still not cleared. But some times after i launch both the pages , i close the parent and then i open a new iexplore. now if i close the applet popup i still have memory lingering although the parent and the child (pop-up) are closed.
Is this an issue bcos of memory handling with my code (i set all allocated objects to null) or is this expected with Swing?
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this behavior is expected, and it's not just because you are using Swing. The JVM does not give up memory it has allocated since it would waste precious CPU cycles to allocate it, free it, and the next time an applet is loaded re-allocate it.
[ February 02, 2004: Message edited by: Joe Ess ]
 
Vijay Ram
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe. I was under the same impression that its an expected performance. But if so I wonder why many applications developed dont cause much issues or why developers have no reservations using it. Performance centric applications might suffer due to this then.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the name "Newbie Newbie" is violating the naming policy in the Ranch... I would suggest u to change ur name before ur account is closed down...
Here is the naming policy
 
Vijay Ram
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
Thanks a lot for bringing that to my attention. In a desperate bid to seek for answers it was my bad that i didn't pay enuf attention to this detail. when enrolling.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic