RE: Memory Usage, Leakage and java.lang.OutofMemory

2003-09-17 Thread Shapira, Yoav

Howdy,
Once you get an OutOfMemoryError, your JVM is in an unpredictable state
and must be restarted.  This is not specific to tomcat.  Reloading the
webapp will not do any good.

Find the leak with a profiler and fix it ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 11:17 AM
To: [EMAIL PROTECTED]
Subject: Memory Usage, Leakage and java.lang.OutofMemory

So let's say that I have a web app that is slowly but surely leaking.

Eventually, I will get a java.lang.OutOfMemory error.

With how Tomcat is internally architected, or with how the JVM
operates,
does this cause a problem for all other applications running under
Tomcat? Is there now no more memory for *anything* running under Tomcat
(and let's not forget Tomcat itself)?

Or if I just 'reload' the problem webapp, will that 'release' all the
memory that is currently being hogged by this app?


---
Mike Curwen204-885-7733
Intermediate Programmer   www.gb-im.com
---
     ___   __  __
 / ___| | __ )  |_ _| |  \/  |
| |  _  |  _ \   _   | |  | |\/| |
| |_| | | |_) | |_|  | |  | |  | |
 \| |/  |___| |_|  |_|


-
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]



RE: Memory Usage, Leakage and java.lang.OutofMemory

2003-09-17 Thread Ralph Einfeldt
Reloading the webapp may help. AFAIK it reloads all classes
that are bound to the webapp classsloader and thus may free 
some memory that is hold by those classes. (Not that I think
that it's a good idea to rely on that)

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 17, 2003 5:18 PM
 To: Tomcat Users List
 Subject: RE: Memory Usage, Leakage and java.lang.OutofMemory
 
 Once you get an OutOfMemoryError, your JVM is in an 
 unpredictable state and must be restarted. 
 This is not specific to tomcat.  Reloading the
 webapp will not do any good.
 

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