Re: lots of SocketFactory threads hanging out

Peter Jones <[email protected]> Wed, 8 Oct 2008 23:55:08 -0400
Newsgroups gmane.comp.java.sun.rmi
Message-ID <20081009035508.GA2294@east>
On Wed, Oct 08, 2008 at 03:14:23PM -0700, Mark Ackerman wrote:
> the class has a simple equals() that tests that the classes are
> equal and hashCode() simply returns the hashcode of the class name.

OK, that shouldn't cause the problem I mentioned below then.

-- Peter


> Peter Jones wrote:
>> On Tue, Oct 07, 2008 at 03:33:46PM -0700, Mark Ackerman wrote:
>>   
>>> So as a followup to my last problem with intermittent connection
>>> problems....
>>>
>>> doing a thread dump on our server I see a bunch of these:
>>> RMI RenewClean-[155.83.200.144:2960,rma.rmi.server.LimitedPortServerSocketFactory@52a393bc]" daemon prio=10 tid=0x0054c400 nid=0x2cf in Object.wait() [0xd58ff000..0xd58ffbf0]
>>>     
>> [snip]
>>   
>>> Is this normal?
>>>     
>>
>> In general, yes, although when client socket factories are in use (as
>> is evidenced by the thread name above) there can be excessive creation
>> of such threads if the socket factory classes do not have appropriate
>> implementations of the Object.hashCode/equals methods.  Some
>> background:
>>
>> http://archives.java.sun.com/cgi-bin/wa?A2=ind0611&L=RMI-USERS&P=1013
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5053529
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4492317
>>
>>   
>>> last part of the thread dump is:
>>>     
>> [snip]
>>   
>>> PSPermGen       total 20480K, used 20112K [0xd7c00000, 0xd9000000, 0xdbc00000)
>>>  object space 20480K, 98% used [0xd7c00000,0xd8fa40d8,0xd9000000)
>>>
>>> So is it ok to have the PSPermGen object space at 98%?
>>>     
>>
>> That doesn't look unusual to me.
>>
>> -- Peter
>>

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html