I had this trouble, some of it is due to not closeing, and destroying everything, some 
is due to sessions living too long.

The best thing to do is make sure you are using hotspot (-server JVM option for sun's 
Linux distro) this will quickly fix all leaks not due to your code, as it beefs-up 
(thats a technical term BTW ;-) the garbage collector.

On the other hand hot spot has a known "issue" in that it periodically dies with a 
cryptic error :-( no pain no gain as they say... check the list archive for more on 
the memory problem and the hotspot bug, they've been round the block a few times.

But.. take heart I got a servelet to serve over 2 million hits in 36 hours on linux, 
connecting to MySQL, with no increase in memory allocated after the initial small 
rise.

-----Original Message-----
From: Boris Niyazov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 22:26
To: [EMAIL PROTECTED]
Subject: Re: Tomcat memory-leak problem


You should probably look at your code for possible memoey leaks: not closed db 
objects (statements, result sets, connections) not closed file descriptors, etc. 

                                      - Boris


>
>Hi!
>
>I'm using apache, tomcat jakarta 3.2.1, jdk1.2.2 on a linux 6.2 and a MS SQL 
server on a Nt4 with sp 6a.
>
>Having some trouble with memory-leak. After the server has been running for a 
couple of days, it has eaten up all 512MB of RAM. It is a server with some 
customers on and it handles about 1000 visitors a day. We use JSP pages and 
servlets to show webpages. Servlets primary for showing images from database or 
generating menues...
>
>So... what shall i do? It doesnt help to restart tomcat. I need to reboot the 
server and start tomcat all over before we can get in contact with the sites 
again.
>
>
>Thanks in adv.
>                    /)-._
>                   Y. ' _]              Greetings
>            ,.._   |`--"=     Bjarne J�rgensen / Bigf00t
>           /    "-/  `.\          
>  /)      |   |_     `\|___   Email : [EMAIL PROTECTED]
>  \:::::::\___/_\__\_______\ 

Reply via email to