Re: Memory Settings On Tomcat

2004-06-21 Thread David Strupl
Endre Stølsvik wrote: Why not? I don't think this is correct. See, if the class isn't referenced anymore, by not having any referenced objects of that class (by any reference), nor having the class object referenced, on the stack of any of the JVM's created Threads, then the static fields of that

RE: Memory Settings On Tomcat

2004-06-17 Thread Endre Stølsvik
On Wed, 16 Jun 2004, Shapira, Yoav wrote: | | Hola ;) | | Okay? Expected? I don't get that. Can you point me to a email-subject | of | one of those threads? Or several?! | | There are a number of issues in this space. For example, if your | servlet class keep a static reference, that can't be

RE: Memory Settings On Tomcat

2004-06-16 Thread Endre Stølsvik
On Tue, 15 Jun 2004, Shapira, Yoav wrote: | | Hola, Yo! | | I know - but Sun's VMs surely seems to follow your suggestions! | | They might, and they might not, that's the point. Other VM | implementations can choose to ignore System.gc(), or even Sun | implementations on certain platforms

RE: Memory Settings On Tomcat

2004-06-16 Thread Shapira, Yoav
Hola ;) Okay? Expected? I don't get that. Can you point me to a email-subject of one of those threads? Or several?! There are a number of issues in this space. For example, if your servlet class keep a static reference, that can't be garbage collected when the webapp is recycled. Therefore

RE: Memory Settings On Tomcat

2004-06-16 Thread Peter Lin
this might be a bit off topic, but if you want to profile your app in tomcat, Sun Research has an experimental VM called JFluid. http://research.sun.com/projects/jfluid/ it is basically the jdk1.4.2_03 vm with hooks for profiling. it might help track down GC and memory issues for those who

RE: Memory Settings On Tomcat

2004-06-15 Thread Endre Stølsvik
On Mon, 14 Jun 2004, Woodchuck wrote: | Runtime.getRuntime().maxMemory() will get you the | maximum amount of memory for your jvm. Yeah, check out maxMem, freeMem and totalMem.. Are those something along the line of what you're looking for? Endre

RE: Memory Settings On Tomcat

2004-06-15 Thread Endre Stølsvik
On Tue, 15 Jun 2004, Endre Stølsvik wrote: | On Mon, 14 Jun 2004, Woodchuck wrote: | | | Runtime.getRuntime().maxMemory() will get you the | | maximum amount of memory for your jvm. | | Yeah, check out maxMem, freeMem and totalMem.. Are those something along | the line of what you're looking for?

RE: Memory Settings On Tomcat

2004-06-15 Thread Shapira, Yoav
Hi, You might also want to try .gc() (force Garbage Collection) - run freeMemory() right before and right after .gc(), print out the diff too. Man, I expect this error from novice posters, but not from you ;) System.gc is ONLY A SUGGESTION. The more recent the JVM, the more likely it is to be

RE: Memory Settings On Tomcat

2004-06-15 Thread Endre Stølsvik
On Tue, 15 Jun 2004, Shapira, Yoav wrote: | | Hi, | | You might also want to try .gc() (force Garbage Collection) - run | freeMemory() right before and right after .gc(), print out the diff | too. | | Man, I expect this error from novice posters, but not from you ;) Oh, thanks..! ;) | System.gc

RE: Memory Settings On Tomcat

2004-06-15 Thread Shapira, Yoav
Hola, I know - but Sun's VMs surely seems to follow your suggestions! They might, and they might not, that's the point. Other VM implementations can choose to ignore System.gc(), or even Sun implementations on certain platforms (many J2ME installations ignore these calls). Well, 1.5beta2

RE: Memory Settings On Tomcat

2004-06-14 Thread Dale, Matt
:[EMAIL PROTECTED] Sent: 10 June 2004 03:15 To: Tomcat Users List Subject: RE: Memory Settings On Tomcat by the way, in case you haven't heard of it, http://mc4j.sourceforge.net/ mc4J can monitor tomcat4 and generate nice graphs. I haven't used it, but it looks nice. peter --- Michael Duffy

RE: Memory Settings On Tomcat

2004-06-14 Thread Peter Lin
I wish I could help you here, but I haven't used it. I know some people on the mailing list have. Hopefully one of them will respond. You probably should post a message to MC4J mailing list for asssitance. peter Dale, Matt [EMAIL PROTECTED] wrote:Hi, I downloaded this and it seems to have

RE: Memory Settings On Tomcat

2004-06-14 Thread Woodchuck
Runtime.getRuntime().maxMemory() will get you the maximum amount of memory for your jvm. --- Dale, Matt [EMAIL PROTECTED] wrote: Hi, I downloaded this and it seems to have potential. Unfortunately I cant work out where to get the heap sizing information which is one of the more important

RE: Memory Settings On Tomcat

2004-06-10 Thread Michael Duffy
of parameters to span this space? Thanks - % --- Shapira, Yoav wrote: Hi, I've got Tomcat 4.1.29 installed to run as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m

Memory Settings On Tomcat

2004-06-09 Thread Michael Duffy
I recently had a problem with a Windoze server hanging up due to memory problems. I've got Tomcat 4.1.29 installed to run as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM installed

RE: Memory Settings On Tomcat

2004-06-09 Thread Shapira, Yoav
Hi, I've got Tomcat 4.1.29 installed to run as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM It's not a good idea to set -Xmx to a higher amount than the amount of physical RAM

Re: Memory Settings On Tomcat

2004-06-09 Thread Peter Lin
installed to run as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM installed. The Windoze task manager says Tomcat is sitting at ~128MB of memory. My understanding is that Java's

RE: Memory Settings On Tomcat

2004-06-09 Thread Michael Duffy
on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM It's not a good idea to set -Xmx to a higher amount than the amount of physical RAM: the JVM will thrash once it reaches much less than 512MB. My understanding

Re: Memory Settings On Tomcat

2004-06-09 Thread Michael Duffy
PROTECTED] wrote:I recently had a problem with a Windoze server hanging up due to memory problems. I've got Tomcat 4.1.29 installed to run as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB

Re: Memory Settings On Tomcat

2004-06-09 Thread Michael Duffy
2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM installed. The Windoze task manager says Tomcat is sitting at ~128MB of memory. My understanding is that Java's garbage collection will reclaim heap-allocated memory to the JVM

Re: Memory Settings On Tomcat

2004-06-09 Thread Peter Lin
hope that helps. peter Michael Duffy wrote:I recently had a problem with a Windoze server hanging up due to memory problems. I've got Tomcat 4.1.29 installed to run as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m

RE: Memory Settings On Tomcat

2004-06-09 Thread David Muller
/serverinfo /manager/jmxproxy etc. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html Thanks, -Dave -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 8:12 AM To: Tomcat Users List Subject: Re: Memory Settings On Tomcat if you can

RE: Memory Settings On Tomcat

2004-06-09 Thread Shapira, Yoav
/manager/serverinfo /manager/jmxproxy etc. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html Thanks, -Dave -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 8:12 AM To: Tomcat Users List Subject: Re: Memory Settings On Tomcat if you

RE: Memory Settings On Tomcat

2004-06-09 Thread Michael Duffy
Tomcat 4.1.29 installed to run as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM It's not a good idea to set -Xmx to a higher amount than the amount of physical RAM: the JVM

RE: Memory Settings On Tomcat

2004-06-09 Thread Peter Lin
to run as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM It's not a good idea to set -Xmx to a higher amount than the amount of physical RAM: the JVM will thrash once it reaches much

RE: Memory Settings On Tomcat

2004-06-09 Thread Michael Duffy
as a service under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM It's not a good idea to set -Xmx to a higher amount than the amount of physical RAM: the JVM will thrash once it reaches much

RE: Memory Settings On Tomcat

2004-06-09 Thread Peter Lin
under JDK 1.4.1_05 on this Windows 2000 server. The Tomcat memory settings on startup are -Xms64m and -Xmx1024m. The server has 512MB of physical RAM It's not a good idea to set -Xmx to a higher amount than the amount of physical RAM: the JVM will thrash once it reaches much