Re: Tomcat keeps growing in size on Win32

2005-06-14 Thread Christoph Kutzinski

Tomcat really uses File.deleteOnExit()?
This method has a known memory leak (not only on win32) for quite some time.
See:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513817

Ed Hamilton wrote:

Thanks, Robson, for the reply.

I have all the latest versions of everything:
Tomcat: 5.5.9
JDSK: 1.5.0.03
JDBC: 3.18a
Isapi Redirector: 1.2.13

There is no website/database activity, just tomcat running.  I believe it's
related to the other posting I made about
every-10-seconds-tomcat-scans-directories.

I believe I have it narrowed down to java.io.File.DeleteOnExit that tomcat
uses in executePartialPut in DefaultServlet.java.  Apparently, this java
routine has a known problem on Win32 systems.

I've been asked by one of the tomcat guys to get some hard evidence, but I
don't have time to tear the tomcat source code apart looking for this and
was hoping some of the other users out there are seeing the same problem.

Regards all,
Ed


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat keeps growing in size on Win32

2005-06-14 Thread Ed Hamilton
Yeah, it's in the file mentioned, but I have no idea if it ever gets called.
I think watchedresource creates a temp file via this routine, based on
some profiling work I did, but it will take a better Tomcat user/developer
than me to isolate it.

Ed



-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 14, 2005 12:14 AM
To: Tomcat Users List
Subject: Re: Tomcat keeps growing in size on Win32


Tomcat really uses File.deleteOnExit()?
This method has a known memory leak (not only on win32) for quite some time.
See:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513817



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat keeps growing in size on Win32

2005-06-14 Thread Tim Diggins
By the way, having read the bug report discussion, I think it's a bit 
misleading to say that File.deleteOnExit HAS a memory leak - it's more 
accurate to say that __by definition__, it IS a memory leak for a long 
running system. But at the same time, it only leaks a fixed amount of 
memory in proportion to the number of times it is called, (not how long 
ago the last call was).


-- Tim




-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 14, 2005 12:14 AM
To: Tomcat Users List
Subject: Re: Tomcat keeps growing in size on Win32


Tomcat really uses File.deleteOnExit()?
This method has a known memory leak (not only on win32) for quite some time.
See:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513817



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat keeps growing in size on Win32

2005-06-13 Thread Robson dos Santos Franca

Hi there!

Please check: Tomcat version, JSDK (or JRE) version, JDBC Drivers. 
Probably one of these (maybe all of them)
has a bug. It sounds like Memory Leaking. Last time I had this problem I 
updated JDBC Drivers and it worked.


Good luck!
Robson Franca

Ed Hamilton wrote:


Is anybody who is running Tomcat on a Win32 installation seeing a slow
growth in memory usage by Tomcat?  My system increases threefold over a
period of 2 to 3.  Even with all my websites shutdown and no user activity
at all, Tomcat keeps growing in size, until I have to reboot to recover the
lost system memory.

Regards,
Ed Hamilton


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat keeps growing in size on Win32

2005-06-13 Thread Ed Hamilton
Thanks, Robson, for the reply.

I have all the latest versions of everything:
Tomcat: 5.5.9
JDSK: 1.5.0.03
JDBC: 3.18a
Isapi Redirector: 1.2.13

There is no website/database activity, just tomcat running.  I believe it's
related to the other posting I made about
every-10-seconds-tomcat-scans-directories.

I believe I have it narrowed down to java.io.File.DeleteOnExit that tomcat
uses in executePartialPut in DefaultServlet.java.  Apparently, this java
routine has a known problem on Win32 systems.

I've been asked by one of the tomcat guys to get some hard evidence, but I
don't have time to tear the tomcat source code apart looking for this and
was hoping some of the other users out there are seeing the same problem.

Regards all,
Ed


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat keeps growing in size on Win32

2005-06-13 Thread Richard Mixon (qwest)
Are you actually running out of memory? Or is the heap just growing?

Garbage collection is a bit arbitrary and may not occur until there is a
need.

 HTH - Richard 

-Original Message-
From: Ed Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 13, 2005 4:39 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32

Thanks, Robson, for the reply.

I have all the latest versions of everything:
Tomcat: 5.5.9
JDSK: 1.5.0.03
JDBC: 3.18a
Isapi Redirector: 1.2.13

There is no website/database activity, just tomcat running.  I believe
it's related to the other posting I made about
every-10-seconds-tomcat-scans-directories.

I believe I have it narrowed down to java.io.File.DeleteOnExit that
tomcat uses in executePartialPut in DefaultServlet.java.  Apparently,
this java routine has a known problem on Win32 systems.

I've been asked by one of the tomcat guys to get some hard evidence, but
I don't have time to tear the tomcat source code apart looking for this
and was hoping some of the other users out there are seeing the same
problem.

Regards all,
Ed


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat keeps growing in size on Win32

2005-06-13 Thread Richard Mixon (qwest)
Are you actually running out of memory? Or is the heap just growing?

Garbage collection is a bit arbitrary and may not occur until there is a
need.

 HTH - Richard 

-Original Message-
From: Ed Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 13, 2005 4:39 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32

Thanks, Robson, for the reply.

I have all the latest versions of everything:
Tomcat: 5.5.9
JDSK: 1.5.0.03
JDBC: 3.18a
Isapi Redirector: 1.2.13

There is no website/database activity, just tomcat running.  I believe
it's related to the other posting I made about
every-10-seconds-tomcat-scans-directories.

I believe I have it narrowed down to java.io.File.DeleteOnExit that
tomcat uses in executePartialPut in DefaultServlet.java.  Apparently,
this java routine has a known problem on Win32 systems.

I've been asked by one of the tomcat guys to get some hard evidence, but
I don't have time to tear the tomcat source code apart looking for this
and was hoping some of the other users out there are seeing the same
problem.

Regards all,
Ed


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat keeps growing in size on Win32

2005-06-13 Thread Ed Hamilton
Richard:

Looking at Tomcat with the task manager, it grows unchecked from a boot
value of about 45MB to however big I let it go; biggest I saw was 250MB
after about 6 days. At that point it's affecting system performance and I
have to reboot.  I'm pretty sure the GC would have run in there somewhere.

So, yes, the heap is growing, if that is what the task manager sees as
Tomcat's memory usage climbing (I think so); it will do so until I run out
of memory - I haven't let it get that far, though.


Thanks,
Ed




-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 5:15 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32


Are you actually running out of memory? Or is the heap just growing?

Garbage collection is a bit arbitrary and may not occur until there is a
need.

 HTH - Richard



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat keeps growing in size on Win32

2005-06-13 Thread Richard Mixon (qwest)
Ed.

Why don't you set a maximum heap size and see if it garbage collects
when it hits that size. Sounds like your application does not need that
much memory so try setting it to something like either:
  JAVA_OPTS=-Xms64m -Xmx128m 
Or 
  CATALINA_OPTS=-Xms64m -Xmx128m
This assumes you are starting Tomcat using the bin/catalina.bat script.

This will start it off with 64MB and let it grow to about 128MB
(probably a bit more in reality). It should garbage collect at that
point. If you are running Java 1.5 you can use the included Jconsole
tool to monitor memory usage. It will show you a saw tooth pattern if
the garbage collection is working properly.

HTH - Richard

-Original Message-
From: Ed Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 13, 2005 6:47 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32

Richard:

Looking at Tomcat with the task manager, it grows unchecked from a boot
value of about 45MB to however big I let it go; biggest I saw was 250MB
after about 6 days. At that point it's affecting system performance and
I have to reboot.  I'm pretty sure the GC would have run in there
somewhere.

So, yes, the heap is growing, if that is what the task manager sees as
Tomcat's memory usage climbing (I think so); it will do so until I run
out of memory - I haven't let it get that far, though.


Thanks,
Ed




-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 5:15 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32


Are you actually running out of memory? Or is the heap just growing?

Garbage collection is a bit arbitrary and may not occur until there is a
need.

 HTH - Richard



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat keeps growing in size on Win32

2005-06-13 Thread Richard Mixon (qwest)
Ed.

Why don't you set a maximum heap size and see if it garbage collects
when it hits that size. Sounds like your application does not need that
much memory so try setting it to something like either:
  JAVA_OPTS=-Xms64m -Xmx128m 
Or 
  CATALINA_OPTS=-Xms64m -Xmx128m
This assumes you are starting Tomcat using the bin/catalina.bat script.

This will start it off with 64MB and let it grow to about 128MB
(probably a bit more in reality). It should garbage collect at that
point. If you are running Java 1.5 you can use the included Jconsole
tool to monitor memory usage. It will show you a saw tooth pattern if
the garbage collection is working properly.

HTH - Richard

-Original Message-
From: Ed Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 13, 2005 6:47 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32

Richard:

Looking at Tomcat with the task manager, it grows unchecked from a boot
value of about 45MB to however big I let it go; biggest I saw was 250MB
after about 6 days. At that point it's affecting system performance and
I have to reboot.  I'm pretty sure the GC would have run in there
somewhere.

So, yes, the heap is growing, if that is what the task manager sees as
Tomcat's memory usage climbing (I think so); it will do so until I run
out of memory - I haven't let it get that far, though.


Thanks,
Ed




-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 5:15 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32


Are you actually running out of memory? Or is the heap just growing?

Garbage collection is a bit arbitrary and may not occur until there is a
need.

 HTH - Richard



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]