You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Thomas Fleischmann <tf...@decisive.com> on 1999/10/20 18:40:01 UTC

RE: mod_jserv/5172: Out of Memory exception at org.apache.jserv.J ServConnection.processRequest

The following reply was made to PR mod_jserv/5172; it has been noted by GNATS.

From: Thomas Fleischmann <tf...@decisive.com>
To: 'Ed Korthof' <ed...@apache.org>
Cc: "'apbugs@Apache.Org'" <ap...@apache.org>, jserv-bugdb@apache.org
Subject: RE: mod_jserv/5172: Out of Memory exception at org.apache.jserv.J
	  ServConnection.processRequest
Date: Wed, 20 Oct 1999 09:25:41 -0700

 The thing that I don't understand is that there is still a lot of memory
 available in the UNIX system. And I configured the JVM to use the max.
 available
 memory.
 I traced the memory usage of the servlet by calling
 System.Runtime.getRuntime).freeMemory(), and found that the garbage
 collection
 seems to work fine (memory is growing and shrinking)...in 99% of the cases,
 but sometimes, I don't know why, when the memory is low, the exception is
 thrown
 before freeing the memory! Anf then, just after the exception, the memory is
 freed
 and everything is fine!!
 
 -----Original Message-----
 From: Ed Korthof [mailto:ed@apache.org]
 Sent: Tuesday, October 19, 1999 6:08 PM
 To: Thomas Fleischmann
 Cc: 'apbugs@Apache.Org'; jserv-bugdb@apache.org
 Subject: RE: mod_jserv/5172: Out of Memory exception at
 org.apache.jserv.J ServConnection.processRequest
 
 
 Most likely servletrunner throttles the number of requests to some number
 which is small enough that you never use all the available memory.  That
 is at least consistent with the observed behavior (as described so far).
 
 The traditional organization of unix servers often means that more
 configuration is required; but it also offers more flexibility.
 
 Ed