You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gerd Trautner <gt...@yuri.at> on 2001/03/01 12:16:15 UTC
memory and/or ms problem
Hi tomcat-users,
I am having some memory related troubles with my servlets running on
tomcat 3.2.1 on an win nt 4 workstation machine.
I read all previous messages in the list with the term "memory" in it,
but everything i try does not help.
problem: the memory consumption of the java.exe increases slightly, the
over all memory consumption of the system increases fast and memory is
not released. after a week (and about 400 hits or so) the server runs
out of memory (tomcat gives a OutOfMemoryError and quits).
what i did:
- set java max heap size (nothing changed)
- set max_threads (30), max_spare_threads(20) and min_spare_threads(5)
for both http and https ConnectionHandler
- set session-timeout to 1 Minute
- added System.gc() to end of every servlet
my application uses servlets and mysql, i close every mysql connection
and i am not able to find anything i could change to get the memory
freed.
I also use ms-stresstool and i can simulate this memory-problem.
could anyone give me some assistance please?
thanks,
Gerd
Re: memory and/or ms problem
Posted by "Oleg L. Sverdlov" <ol...@netmount.com>.
I have the same problem too. I use Windows 2000 Server, Tomcat 3.2.1 and isapi_connect.dll
I've already asked this question on the list, and nobody seems to know.
Oleg L. Sverdlov
Web Development Dept.
Netmount Networks
Raanana, Israel.
http://www.netmount.com
Phone: +972-9-745-5220
Fax: +972-9-745-2521
----- Original Message -----
From: "Gerd Trautner" <gt...@yuri.at>
To: "tomcat-user" <to...@jakarta.apache.org>
Sent: Thursday, March 01, 2001 1:16 PM
Subject: memory and/or ms problem
> Hi tomcat-users,
>
> I am having some memory related troubles with my servlets running on
> tomcat 3.2.1 on an win nt 4 workstation machine.
> I read all previous messages in the list with the term "memory" in it,
> but everything i try does not help.
>
> problem: the memory consumption of the java.exe increases slightly, the
> over all memory consumption of the system increases fast and memory is
> not released. after a week (and about 400 hits or so) the server runs
> out of memory (tomcat gives a OutOfMemoryError and quits).
>
> what i did:
> - set java max heap size (nothing changed)
> - set max_threads (30), max_spare_threads(20) and min_spare_threads(5)
> for both http and https ConnectionHandler
> - set session-timeout to 1 Minute
> - added System.gc() to end of every servlet
>
> my application uses servlets and mysql, i close every mysql connection
> and i am not able to find anything i could change to get the memory
> freed.
>
> I also use ms-stresstool and i can simulate this memory-problem.
>
> could anyone give me some assistance please?
>
> thanks,
> Gerd