You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Betty Chang <be...@bettyc.com> on 2000/10/04 05:04:05 UTC
does anyone else have a memory leak problem with java.exe on NT and
servlets?
Hi all -- I run servlets on NT, with jdk 1.2.2. My java.exe memory usage seems to creep up slowly with time. I don't think my servlets are doing anything that says referenced when it shouldn't be.
Has anyone else seen memory leaks like this?
(I also make JDBC calls)
Betty
Re: does anyone else have a memory leak problem with java.exe on NT and
servlets?
Posted by Jakob Hummes <hu...@castify.net>.
[a lot of stuff about potentail memory leaks under NT deleted]
> > > > (I also make JDBC calls)
Do you close all staements, result sets, connections *explicitely*? If
not, I assume it's a JDBC driver "feature".
Regards,
- Jakob
Re: does anyone else have a memory leak problem with java.exe on NT and
servlets?
Posted by Steve Ruby <st...@rubysolutions.com>.
Thomas Hagedorn wrote:
I have two instances of tomcat and one instance of Jserv running
on the same NT box (3 instances of java.exe)
they are never restarted unless the machine is
(they are regularly up for 20-30 days (whenever power goes out
or NT crashes)) And durring that time they never bloat memory or
stop serving requests.. I'm running SUN JDK 1.2 on that box and
1.2.2 on another that also runs tomcat for more than 8 days
at a time.
Are you sure you aren't adding to a cache that you never flush
or something?
>
> Hi,
>
> I've recognized similar behavior on NT with other Java applications running
> for more than 48 hours. It seems me to be a typical Windows problem.
> Memory usage is growing up 'till the application is completely unusable
> (waiting minutes for reactions), a few hour later I could see bluescreens.
> Taking more memory may not solve your problem, but increase the time
> between the restarts. Switching the OS is another possibility (I#ve never
> recognized any behavior like this on Linux-boxes).
> hope it helps.
>
> tom
>
> BTW: It is the same behavior with JDK1.2.2 and JDK1.3
>
> Am Mit, 04 Okt 2000 schrieben Sie:
> > Hi -- thanks for your response. Well, after the servlets are running for
> > about 8 hours, the memory usage is way up, and then eventually users cannot
> > do anything because the servlet gives not-enough-memory errors.
> >
> > What is the JVM's memory limit before it does a garbage collection? Would
> > putting in a call to System.gc() periodically help? The software is running
> > on an NT server that does not have much physical memory.
> >
> > Thanks
> >
> > Betty
> >
> > ----- Original Message -----
> > From: Jon Skeet <jo...@peramon.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Tuesday, October 03, 2000 11:56 PM
> > Subject: Re: does anyone else have a memory leak problem with java.exe on NT
> > and servlets?
> >
> >
> > > > Hi all -- I run servlets on NT, with jdk 1.2.2. My java.exe memory
> > usage
> > > > seems to creep up slowly with time. I don't think my servlets are doing
> > > > anything that says referenced when it shouldn't be.
> > > >
> > > > Has anyone else seen memory leaks like this?
> > > >
> > > > (I also make JDBC calls)
> > >
> > > Are you sure it's actually a memory leak? Could it not be that you just
> > > haven't hit the JVM's memory limit, so it hasn't done a garbage-collect
> > > yet?
> > >
> > > Jon
> > >
> --
> THETA - Consulting
> Kommuniktionsanalyse - Anwendungsentwicklung - LINUX-Systeme
>
> Thomas Hagedorn Tel. 07231-472108
> Rainstr. 12 Tel. 0172-7642398
> 75217 Birkenfeld tom@theta-consulting.de
>
> Jesus inside - where do you want to go forever ?
Re: does anyone else have a memory leak problem with java.exe on NT and servlets?
Posted by Thomas Hagedorn <to...@theta-consulting.de>.
Hi,
I've recognized similar behavior on NT with other Java applications running
for more than 48 hours. It seems me to be a typical Windows problem.
Memory usage is growing up 'till the application is completely unusable
(waiting minutes for reactions), a few hour later I could see bluescreens.
Taking more memory may not solve your problem, but increase the time
between the restarts. Switching the OS is another possibility (I#ve never
recognized any behavior like this on Linux-boxes).
hope it helps.
tom
BTW: It is the same behavior with JDK1.2.2 and JDK1.3
Am Mit, 04 Okt 2000 schrieben Sie:
> Hi -- thanks for your response. Well, after the servlets are running for
> about 8 hours, the memory usage is way up, and then eventually users cannot
> do anything because the servlet gives not-enough-memory errors.
>
> What is the JVM's memory limit before it does a garbage collection? Would
> putting in a call to System.gc() periodically help? The software is running
> on an NT server that does not have much physical memory.
>
> Thanks
>
> Betty
>
> ----- Original Message -----
> From: Jon Skeet <jo...@peramon.com>
> To: <to...@jakarta.apache.org>
> Sent: Tuesday, October 03, 2000 11:56 PM
> Subject: Re: does anyone else have a memory leak problem with java.exe on NT
> and servlets?
>
>
> > > Hi all -- I run servlets on NT, with jdk 1.2.2. My java.exe memory
> usage
> > > seems to creep up slowly with time. I don't think my servlets are doing
> > > anything that says referenced when it shouldn't be.
> > >
> > > Has anyone else seen memory leaks like this?
> > >
> > > (I also make JDBC calls)
> >
> > Are you sure it's actually a memory leak? Could it not be that you just
> > haven't hit the JVM's memory limit, so it hasn't done a garbage-collect
> > yet?
> >
> > Jon
> >
--
THETA - Consulting
Kommuniktionsanalyse - Anwendungsentwicklung - LINUX-Systeme
Thomas Hagedorn Tel. 07231-472108
Rainstr. 12 Tel. 0172-7642398
75217 Birkenfeld tom@theta-consulting.de
Jesus inside - where do you want to go forever ?
Re: does anyone else have a memory leak problem with java.exe on NT and servlets?
Posted by Jon Skeet <jo...@peramon.com>.
> Hi -- thanks for your response. Well, after the servlets are running for
> about 8 hours, the memory usage is way up, and then eventually users cannot
> do anything because the servlet gives not-enough-memory errors.
>
> What is the JVM's memory limit before it does a garbage collection? Would
> putting in a call to System.gc() periodically help? The software is running
> on an NT server that does not have much physical memory.
A call to System.gc() certainly might help. I can't remember what the default
is on NT, but you can use java -Xmx to set it (on most JVMs - check your
documentation).
Jon
Re: does anyone else have a memory leak problem with java.exe on NT
and servlets?
Posted by Betty Chang <be...@portalwave.com>.
Hi -- thanks for your response. Well, after the servlets are running for
about 8 hours, the memory usage is way up, and then eventually users cannot
do anything because the servlet gives not-enough-memory errors.
What is the JVM's memory limit before it does a garbage collection? Would
putting in a call to System.gc() periodically help? The software is running
on an NT server that does not have much physical memory.
Thanks
Betty
----- Original Message -----
From: Jon Skeet <jo...@peramon.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, October 03, 2000 11:56 PM
Subject: Re: does anyone else have a memory leak problem with java.exe on NT
and servlets?
> > Hi all -- I run servlets on NT, with jdk 1.2.2. My java.exe memory
usage
> > seems to creep up slowly with time. I don't think my servlets are doing
> > anything that says referenced when it shouldn't be.
> >
> > Has anyone else seen memory leaks like this?
> >
> > (I also make JDBC calls)
>
> Are you sure it's actually a memory leak? Could it not be that you just
> haven't hit the JVM's memory limit, so it hasn't done a garbage-collect
> yet?
>
> Jon
>
Re: does anyone else have a memory leak problem with java.exe on NT
and servlets?
Posted by Betty Chang <be...@portalwave.com>.
----- Original Message -----
From: Jon Skeet <jo...@peramon.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, October 03, 2000 11:56 PM
Subject: Re: does anyone else have a memory leak problem with java.exe on NT
and servlets?
> > Hi all -- I run servlets on NT, with jdk 1.2.2. My java.exe memory
usage
> > seems to creep up slowly with time. I don't think my servlets are doing
> > anything that says referenced when it shouldn't be.
> >
> > Has anyone else seen memory leaks like this?
> >
> > (I also make JDBC calls)
>
> Are you sure it's actually a memory leak? Could it not be that you just
> haven't hit the JVM's memory limit, so it hasn't done a garbage-collect
> yet?
>
> Jon
>
Re: does anyone else have a memory leak problem with java.exe on NT and servlets?
Posted by Jon Skeet <jo...@peramon.com>.
> Hi all -- I run servlets on NT, with jdk 1.2.2. My java.exe memory usage
> seems to creep up slowly with time. I don't think my servlets are doing
> anything that says referenced when it shouldn't be.
>
> Has anyone else seen memory leaks like this?
>
> (I also make JDBC calls)
Are you sure it's actually a memory leak? Could it not be that you just
haven't hit the JVM's memory limit, so it hasn't done a garbage-collect
yet?
Jon