Sounds like memory leaks in your code. Calling runtime.gc() is pretty useless as the JVM will not garbage collect any referenced objects and there is no guarantee that garbage collection will run at any given time.
Cheers! Mark -----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of sanjay Sent: Tuesday, January 22, 2002 12:25 AM To: [EMAIL PROTECTED] Subject: Excessive memory issues Hello all: We are facing the problem of excessive memory usage by our servlets (that call JNI functions). The memory usage seems to touch 50+ MB in 2000 Server but it drops down to 30 MB soon. But, this does not happen in NT. The memory keeps on increasing and there is a point in time when Tomcat occupies *all* the available memory. We are taking care of *garbage collecting* the objects frequently(by calling Runtime.gc()). Is there any other way by which we can have some kind of control over the usage of memory? Do we have to install a patch for NT (if something like this is available)? NT Server: ---------- PIII 500 MHz, 256MB RAM, 40GB HDD 2000 Server: ------------ PIII 700 MHz, 128MB RAM, 20GB HDD Tomcat: ------- Version 3.2.1 JDK: ---- Sun's JDK 1.3 Any suggestions, pointers are appreciated. Thanks Sanjay ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html