----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi everyone,

I am experiencing an odd error.  Every time I run a servlet, (Even just the Hello
example servlet) my system free memory seems to go down a bit and never recover.
On average, I seem to lose 110-125 bytes per request.  I am using "top" to monitor
the usage.  The odd thing is that my java process stays roughly the same in memory
usage, never going much higher than 8-10M.  When I restart Apache, I don't recover
the lost system memory.

My setup is a dual processor PIII 500 MHZ, RH6.1, Sun's JDK1.2.2, JServ 1.1b3, and
Apache 1.3.9  I have 256MB of memory.

I hit the servlet several times per second (about 80-100) and then divide the
total system free memory loss by the number of requests to get the above "loss per
request".  When the time frame for session invalidation expires, I do not see any
memory being freed.  I have tried shortening the session timeout as an
experiment.  I have also tried running each request in the same session and in
seperate sessions.  Also, I have tried explicitly calling garbage collection.

As I said, it doesn't seem specific to the code, as even if I run only the Hello
example servlet for my test, I experience this problem.

-- Joshua Slack
[EMAIL PROTECTED]
Obj.X, Inc.



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to