On 01/12/2010, at 3:36 PM, D Tim Cummings wrote:

> We have a sessionless app that we have been running for years on Mac OS X on 
> XServes.  We recently moved it to Red Hat servers and now we are getting Out 
> of Memory errors even though we have significantly increased the memory 
> available.  Red Hat is using the java sun jvm 1.6.0_20 64 bit, while the Mac 
> servers were running java from Apple 1.5.0_24.  I also tried on my Mac 
> workstation using Apple java 1.6.0.22 64 bit and the memory appeared to be 
> getting garbage collected without problem.
> 
> I configured the app to do a heap dump when the error occured (Additional 
> arguments -XX:+HeapDumpOnOutOfMemoryError ) and used the Eclipse Memory 
> Analyzer Tool (http://www.eclipse.org/mat) and it reported the following 
> problem suspects:
> 
> 1,296 instances of "java.lang.Thread", loaded by "<system class loader>" 
> occupy 111,947,632 (43.21%) bytes.
> 1,292 instances of "er.extensions.eof.ERXEC", loaded by 
> "java.net.URLClassLoader @ 0x2aaab375b7c0" occupy 37,478,352 (14.46%) bytes.
> 1,280 instances of "er.extensions.appserver.ERXRequest", loaded by 
> "java.net.URLClassLoader @ 0x2aaab375b7c0" occupy 27,297,992 (10.54%) bytes. 

It looks to me like your app had 1280 odd concurrent request handling threads 
running. Is it likely that they are getting deadlocked or not running to 
completion? Do you launch any new threads programmatically?

Try making a thread dump of the app and see what's running.

-- 
Seeya...Q

Quinton Dolan - [email protected]
Gold Coast, QLD, Australia (GMT+10)




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to