Howdy,

>The Developers swear they do not use large collection objects.  I also

Great.  Use a profiler to see for yourself where memory is allocated.

>noticed that the Garbage collection times start to get to be over a
>second or to before they die.  Another strange thing is that we have
two

So your heap is nearly full and big.  GC times of over a second are not
by themselves a definitive indication that something is wrong.

>tomcat instances running on separate servers and they both die at the
>same time with the same error (Exception java.lang.OutOfMemoryError:
>requested 24 bytes forpromotion. Out of swap space?).  When I run top
it
>shows that there is over 14 Gig free of swap.  Is there a swap setting
>for tomcat?  \

There's no swap setting for tomcat, nor for Java, as that's not
something the JVM controls: it's an OS-level issue.  The requested for
promotion part means the JVM wanted to promote objects from the new
generation to the older one, but had no room.

It could be that your apps are fine, there's no leak, and you just need
to allocate more memory to the heap using the -Xmx parameter.

Yoav Shapira

>
>Any clues would be extremely helpful.
>
>Thanks,
>
>____________________________
>
>
>-----Original Message-----
>From: Peter Guyatt [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 10:49 AM
>To: Tomcat Users List
>Subject: RE: Tomcat Dies
>
>Hi There,
>
>       It looks like there is a memory lieak in your code, do you have
>any
>listeners, and if so are you storing the session objects in a
collection
>and
>not removing them from the collection when they are being invalidated.
>
>Thanks
>
>Pete
>
>-----Original Message-----
>From: Rob Wichterman [mailto:[EMAIL PROTECTED]
>Sent: 24 November 2003 15:44
>To: 'Tomcat Users List'
>Subject: Tomcat Dies
>
>
>I have two tomcat instances each on a separate folder.  My problem is
>that after a few days we get one the following errors in Catalina.out
>
>1.     Exception java.lang.OutOfMemoryError: requested 24 bytes for
>promotion. Out of swap space?
>
>2.  SEVERE: Caught exception executing
>[EMAIL PROTECTED], terminating thread
>           java.lang.OutOfMemoryError
>
>Any help would be appreciated.
>
>Thanks,
>
>
>
>
>____________________________
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to