Garbage collection problem due to JMX?
1 posts in topic
Flat View  Flat View

Posted By:   Christian_Neuroth
Posted On:   Saturday, September 18, 2004 07:58 AM


I have an application running that uses a lot of memory. Until now a central class managed all components of this application.

I changed this design so that the central class applies JMX: a MBean server instance is used to host the components (which are now StandardMBeans). I add them via createMBean(..). All references are dropped.

Could this be a cause for the VM to run out of memory (which it is doing at the moment)? Does JMX prohibit the work of the garbage collector (sounds crazy - I know)?

My setting:
Suns Java 1.4.2
Suns JMX Ri



Re: Garbage collection problem due to JMX?

Posted By:   Anonymous  
Posted On:   Thursday, November 11, 2004 02:19 PM

MBeans will not get garbaged collected when they are registered to the MBeanServer.

That's the point. They live on because they are now accessable via the MBeanServer. If they were to get collected, they would not be available when you wanted to access the MBean Service via RMI, HTTP, and IIOP.

Also whatever is referenced by the MBeans attached to the servers will not get GC'ed either.

Hope this helps.

About | Sitemap | Contact