[jboss-jira] [JBoss JIRA] Created: (JBNAME-48) Thread leak on server due to WeakReferenced Naming objects in NamingContext
Oleg Nitz (JIRA)
jira-events at lists.jboss.org
Fri Mar 12 08:47:37 EST 2010
Thread leak on server due to WeakReferenced Naming objects in NamingContext
---------------------------------------------------------------------------
Key: JBNAME-48
URL: https://jira.jboss.org/jira/browse/JBNAME-48
Project: JBoss Naming
Issue Type: Bug
Reporter: Oleg Nitz
Over time the number of threads named "RMI TCP Connection(...)-..." on server grows infinitely.
I discovered that this is due garbage collection of Naming objects on client, which are cached in NamingContext.cachedServers map. The correspondent server objects with their threads remain on server waiting for distributed garbage collection, which happens rarely due to "-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" in run.conf.
I propose not use WeakReferences, instead to remove "expired" Naming objects from NamingContext.cachedServers periodically by some Timer, and also to explicitely remove correspondent remote RMI objects from server.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list