Re: How to specify min/max memory on Tomcat 3.3?
Using the standard scripts, you would pass the options via the TOMCAT_OPTS environment variable. The actual options depends on the JVM vendor, but for the Sun JVM you would do something like: TOMCAT_OPTS=-Xms128M -Xmx512M Tomcat just uses the default values for the JVM. nyhgan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is there anyway to specify the minimum and maximum memory on Tomcat 3.3? What is the default maximum memory? Thanks! nyhgan. - Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify min/max memory on Tomcat 3.3?
Hi, Is there anyway to specify the minimum and maximum memory on Tomcat 3.3? What is the default maximum memory? Thanks! nyhgan. - Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone.
Re: Memory Usage - Tomcat 5.0.25
Nandish Rudra wrote: Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on GNU Linux 2.4.20-8 setup. this happens with both tomcat 5.0.25 and 5.0.27 Any ideas why something like this could be happening. Nandish Rudra ECI Conference call Service LLC. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:17 PM To: Tomcat Users List (E-mail) Subject: Memory Usage - Tomcat 5.0.25 Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Try looking at jvmstat (http://developers.sun.com/dev/coolstuff/jvmstat/) My own tests with show that its the permanent space of objects that gets filled up and not reclaimed after each reload. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Usage - Tomcat 5.0.25
Hi, LONG-snip / Does anyone have any idea as to why this is happening? Try looking at jvmstat (http://developers.sun.com/dev/coolstuff/jvmstat/) My own tests with show that its the permanent space of objects that gets filled up and not reclaimed after each reload. Yup, that's as expected. Yoav Shapira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Memory Usage - Tomcat 5.0.25
Hi, Yes the objects are GC'd but memory stays. If you look through yesterday's posts you will see emails that helped me solve the issue on Windows machine, but the issue is still alive with RedHat 9.0. I am in the process probing the linux boex's mepry to see what the is going on. Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 8:54 PM To: Tomcat Users List Subject: Re: FW: Memory Usage - Tomcat 5.0.25 Nandish Rudra wrote: Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on RedHat 9 setup. this happens with both tomcat 5.0.25 and 5.0.27 I'm a bit confused. Are you saying that the objects are GC'd on redhat 9 but the jvm is still big, or are you saying that the objects were never GC'd? - 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: FW: Memory Usage - Tomcat 5.0.25
What memory are you looking at, what ps returns? What does Runtime.freeMemory() and Runtime.totalMemory() return? Nandish Rudra wrote: Hi, Yes the objects are GC'd but memory stays. If you look through yesterday's posts you will see emails that helped me solve the issue on Windows machine, but the issue is still alive with RedHat 9.0. I am in the process probing the linux boex's mepry to see what the is going on. Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 8:54 PM To: Tomcat Users List Subject: Re: FW: Memory Usage - Tomcat 5.0.25 Nandish Rudra wrote: Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on RedHat 9 setup. this happens with both tomcat 5.0.25 and 5.0.27 I'm a bit confused. Are you saying that the objects are GC'd on redhat 9 but the jvm is still big, or are you saying that the objects were never GC'd? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Memory Usage - Tomcat 5.0.25
Hello QM, Thanks for your reply, it really cleared some things. First, tomcat has two levels for memory - allocated vs. used. While allocated increases with every spike by some amout and stays there, the used memor fluctuates. If I set the memory bounds for JVM by the mechanism you have said than once the allocated reaches that level, tomcat will crash(out of memory exception). Now, since all of the allcotaed memory is not being used, is there a way to control the allocated memory, as in, make it fluctuate with used memory. Regards, Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 8:38 PM To: Tomcat Users List Subject: Re: FW: Memory Usage - Tomcat 5.0.25 On Tue, Aug 10, 2004 at 04:54:26PM -0400, Nandish Rudra wrote: : I am writing about this error from yesterday. I used JProfiler to monitor my : memory usage. And am now sure that each and every static object is trashed : when the application is undeployed and the profiler shows that memory is : free and all instance of the objects are GC'd. Something else to consider: the memory for the JVM process isn't just the heap. The process maintains some memory for itself, outside of the designated heap ranges set with -Xmx and -Xms, for housekeeping and such. (This is often news to even experienced J2EE developers.) That may very well be what you're seeing. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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: FW: Memory Usage - Tomcat 5.0.25
Hello guys, I have finally figured how to make JVM work the way I want it to. Setting some of the following options helps control the allocated memory size by huge amounts. I would strongly recommend using them. echo Setting JAVA_OPTS set JAVA_OPTS=-Xmn32M -Xmx128M -XX:MaxHeapFreeRatio=30 -XX:+UseParallelGC echo Using JAVA_OPTS: %JAVA_OPTS% Related link would be : http://java.sun.com/docs/hotspot/VMOptions.html Now the problem is these work on a Windows box when placed in catalina.bat but fail on a redHat 9 (Kernel 2.4.20-8)machine, in two ways - 1. When I place it in catalina.sh tomcat fails to start. 3. When I place startup.sh, tomcat starts but the windows behavior is not imitated. Any suggestion, Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 11:09 AM To: 'Tomcat Users List' Subject: RE: FW: Memory Usage - Tomcat 5.0.25 Hello QM, Thanks for your reply, it really cleared some things. First, tomcat has two levels for memory - allocated vs. used. While allocated increases with every spike by some amout and stays there, the used memor fluctuates. If I set the memory bounds for JVM by the mechanism you have said than once the allocated reaches that level, tomcat will crash(out of memory exception). Now, since all of the allcotaed memory is not being used, is there a way to control the allocated memory, as in, make it fluctuate with used memory. Regards, Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 8:38 PM To: Tomcat Users List Subject: Re: FW: Memory Usage - Tomcat 5.0.25 On Tue, Aug 10, 2004 at 04:54:26PM -0400, Nandish Rudra wrote: : I am writing about this error from yesterday. I used JProfiler to monitor my : memory usage. And am now sure that each and every static object is trashed : when the application is undeployed and the profiler shows that memory is : free and all instance of the objects are GC'd. Something else to consider: the memory for the JVM process isn't just the heap. The process maintains some memory for itself, outside of the designated heap ranges set with -Xmx and -Xms, for housekeeping and such. (This is often news to even experienced J2EE developers.) That may very well be what you're seeing. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: Memory Usage - Tomcat 5.0.25
Nandish Rudra wrote: Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on RedHat 9 setup. this happens with both tomcat 5.0.25 and 5.0.27 I'm a bit confused. Are you saying that the objects are GC'd on redhat 9 but the jvm is still big, or are you saying that the objects were never GC'd? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on GNU Linux 2.4.20-8 setup. this happens with both tomcat 5.0.25 and 5.0.27 Any ideas why something like this could be happening. Nandish Rudra ECI Conference call Service LLC. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:17 PM To: Tomcat Users List (E-mail) Subject: Memory Usage - Tomcat 5.0.25 Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
FW: Memory Usage - Tomcat 5.0.25
Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on RedHat 9 setup. this happens with both tomcat 5.0.25 and 5.0.27 Any ideas why something like this could be happening. Nandish Rudra ECI Conference call Service LLC. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:17 PM To: Tomcat Users List (E-mail) Subject: Memory Usage - Tomcat 5.0.25 Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: FW: Memory Usage - Tomcat 5.0.25
On Tue, Aug 10, 2004 at 04:54:26PM -0400, Nandish Rudra wrote: : I am writing about this error from yesterday. I used JProfiler to monitor my : memory usage. And am now sure that each and every static object is trashed : when the application is undeployed and the profiler shows that memory is : free and all instance of the objects are GC'd. Something else to consider: the memory for the JVM process isn't just the heap. The process maintains some memory for itself, outside of the designated heap ranges set with -Xmx and -Xms, for housekeeping and such. (This is often news to even experienced J2EE developers.) That may very well be what you're seeing. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Another important detail to note is that, this behaviour is not seen, in a same setup, on a Windows 2000 machine. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
It took the message a while to showup on the list so resent it with some modification. please disregard the first message. The problem does happen on Windows. I was looking at the wrong process. NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Usage - Tomcat 5.0.25
Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:17 PM To: Tomcat Users List (E-mail) Subject: Memory Usage - Tomcat 5.0.25 Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Usage - Tomcat 5.0.25
Hello Yaov, You are correct I do have a few static varibles that point to running threads and some other objects. When the application is shutdown I ensure that each thread is destroyed and all static varibales are set to null, including thread identifiers, this should let my call to GC clear the memory. You are also right in saying that i should not depend on undeploy to reclaim all memory that the webapp was using, and I don't. Like I mentioned I do make sure all static variables get set to null before the application shuts down. It would be understandable if not all memory utilized by the webapp is reclaimed, but in my case absolutely no memory is being reclaimed. For example, say, i start tomcat and it starts with 30M initial memory usage without the application. Now when i deploy the application the size jumps by 8M to 38M. As the app is undeploy and re-deploy the memory usage jumps from 38M to 46-47M. Now this, if I am not wrong, is not how things should be. I would appreciate anymore suggestion that you or anyone may have. Regards, Nandish -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:17 PM To: Tomcat Users List (E-mail) Subject: Memory Usage - Tomcat 5.0.25 Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: How much memory does Tomcat really use?
Howdy, You can run tomcat 4.x and 5.x with less than 8MB of RAM. It all depends on what webapps you have configured, connectors, min/maxProcessors, etc. The more general question of heap size vs. overall OS process size is far more difficult to answer. The answer is highly variable from one OS to another and from one OS version to another. Generally speaking, as the size of the heap is larger the ratio of the heap to the process size nears 1. In theory it can never reach 1, it's at best slightly less. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mikael Aronsson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:27 PM To: Tomcat Users List Subject: Re: How much memory does Tomcat really use? A basic out of the box Tomcat 5.0.12 is pretty happy with around 30MB on a windows machine, but it's always tricky to say how much memory it will use as it depends on lots of other things, how you configure it and the kind of applications you run on it, but 40-50MB could be an ok guess on Windows. Mikael - Original Message - From: Frank T. Murphy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:08 PM Subject: How much memory does Tomcat really use? Does anyone have a handle on how much memory is used by java in running tomcat? I set the ms and mx values but it always seems that the process overall takes up much more memory. I asume it's overhead with the JVM talking to the operating system. I'm trying to get a handle on how to size various servers. I went through Sun's developer forums and I've seen this question asked several times with no response. I work in bothe the Solaris and windows environment. Thanks - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How much memory does Tomcat really use?
Does anyone have a handle on how much memory is used by java in running tomcat? I set the ms and mx values but it always seems that the process overall takes up much more memory. I asume it's overhead with the JVM talking to the operating system. I'm trying to get a handle on how to size various servers. I went through Sun's developer forums and I've seen this question asked several times with no response. I work in bothe the Solaris and windows environment. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How much memory does Tomcat really use?
A basic out of the box Tomcat 5.0.12 is pretty happy with around 30MB on a windows machine, but it's always tricky to say how much memory it will use as it depends on lots of other things, how you configure it and the kind of applications you run on it, but 40-50MB could be an ok guess on Windows. Mikael - Original Message - From: Frank T. Murphy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:08 PM Subject: How much memory does Tomcat really use? Does anyone have a handle on how much memory is used by java in running tomcat? I set the ms and mx values but it always seems that the process overall takes up much more memory. I asume it's overhead with the JVM talking to the operating system. I'm trying to get a handle on how to size various servers. I went through Sun's developer forums and I've seen this question asked several times with no response. I work in bothe the Solaris and windows environment. Thanks - 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: Memory usage Tomcat 4.1.24
The recently installed Tomcat 4.1.24 on startup takes about 60M of memory. Is it my configuration. I have not noticed previous versions consuming so much. I have 6 or so applications in webapps - mainly struts - documentaion, examples etc. Using j2sdk1.4.0. Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to increase the stack memory for tomcat ?
Hi All I want to increase the stack size allocated to my tomcat process. Is there any configuration file where i can change this ? Besides is there any way i can configure the stack size for per Web applications ? I am using Tomcat version 3.3.1 Thanks for any help/pointers. -Surendra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to increase the stack memory for tomcat ?
Howdy, Really? The stack, no the heap? You're sure? Why? Try -Xss a parameter into your java command line. Yoav Shapira Millennium ChemInformatics -Original Message- From: Surendra Kumar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 8:52 AM To: Tomcat Users List Subject: How to increase the stack memory for tomcat ? Hi All I want to increase the stack size allocated to my tomcat process. Is there any configuration file where i can change this ? Besides is there any way i can configure the stack size for per Web applications ? I am using Tomcat version 3.3.1 Thanks for any help/pointers. -Surendra - 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: How to increase the stack memory for tomcat ?
If I want to increase the memory size of each process or session, how can I do for Tomcat only or Apache+Tomcat? --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Really? The stack, no the heap? You're sure? Why? Try -Xss a parameter into your java command line. Yoav Shapira Millennium ChemInformatics -Original Message- From: Surendra Kumar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 8:52 AM To: Tomcat Users List Subject: How to increase the stack memory for tomcat ? Hi All I want to increase the stack size allocated to my tomcat process. Is there any configuration file where i can change this ? Besides is there any way i can configure the stack size for per Web applications ? I am using Tomcat version 3.3.1 Thanks for any help/pointers. -Surendra - 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] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to increase the stack memory for tomcat ?
Howdy, The JVM doesn't allocate memory to your process or session. It allocates memory on the heap which is shared by your processes and sessions. See the documentation for java's -Xms and -Xmx runtime options at http://java.sun.com/docs/hotspot/VMOptions.html You can set these options for tomcat by setting the JAVA_OPTS variable in $CATALINA_HOME/bin/catalina.sh. And please don't hijack discussion threads on these mailing lists: post your question in a new discussion thread ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Ming Zhao [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 10:24 AM To: Tomcat Users List Subject: RE: How to increase the stack memory for tomcat ? If I want to increase the memory size of each process or session, how can I do for Tomcat only or Apache+Tomcat? --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Really? The stack, no the heap? You're sure? Why? Try -Xss a parameter into your java command line. Yoav Shapira Millennium ChemInformatics -Original Message- From: Surendra Kumar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 8:52 AM To: Tomcat Users List Subject: How to increase the stack memory for tomcat ? Hi All I want to increase the stack size allocated to my tomcat process. Is there any configuration file where i can change this ? Besides is there any way i can configure the stack size for per Web applications ? I am using Tomcat version 3.3.1 Thanks for any help/pointers. -Surendra - 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] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - 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: Memory Mgmt Tomcat
Several replies... From: Mike Bachrynowski [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 7:02 AM Subject: RE: Memory Mgmt Tomcat We run high volume, load balanced and multiple web, servlet, application and database servers on physically different machines. One of the problem areas is persistence of sessions. Even if the application knows that a session is never going to be used again it hangs around and uses memory until such time as Java garbage collection cuts in. To me, this is one of the most major issues of Java Servlet engines in general. When you have a Session with a long lifetime (15-30 minutes), you are pretty much guaranteed that the Session object and its dependents are going to thrown into the Old space on any reasonably active server. This can be considered a Bad Thing as generational collectors tend to make it cheap to GC the younger generations of objects, where a vast majority of objects are created and thrown away. The older the objects get, the more entrenched they become and, potentially, the harder (more expensive) they are to GC. The logic behind this is that many systems will have several essentially static objects that are simply never going to go away during the life of the program (say, for example, the java.lang.String class). As a generational collector works through its heap of objects, it finds objects in the first generation that never seem to Go Away and get freed. Eventually, the collector will basicly tire of constant;y seeing this object and move into a older generation, which gets swept less often than the younger generations. A simplistic view is that you have, say, 3 pools of memory. As the first pool fills up you go through it and discard the freed objects. After several interations, you find that there are a bunch of objects that are always there. Rather than constantly scanning those objects, you throw them into another pool. When THAT pool fills up, you do the same thing, and so on. The idea is to make the routine sweep of real garbage, (i.e. simple work objects) as quick as possible. Now, the problem with Sessions is that they have an extended lifetime. By their very nature, Sessions are pretty much implicitly garbage, as they only represent the lifespan of the users actual interaction with the application. That means that sooner or later, the user will Go Away, and the Session will have served its pupose and can be collected. The problem of course is that there really isn't a way to enforce having a user log off of an application. Most simply drift away never to return, putting the application on hold until the Session times out, typically in 15-30 minutes for many apps. During that idle time, these Sessions are buried into these older generation for objects. 30 minutes is a long time to the Garbage Collector. After 30 minutes, it is easy to see how the JVM can make the assumption that SessionID 12345 is as important to the application as java.lang.String, and promote it to the same level in the heap. So, while the young generation is designed to be quickly and rapidly flushed through, the old generation can be more time consuming to process, mostly because of its size and the number of objects. If you have objects that are too old for the younger generation, but not really old enough for the older generation, you end up with sort of a GC thrashing scenario where you are filling the older generation faster than necessary and causing more expensive GCs to happen. Some of this can be tuned away with the GC parameters on the JVMs but that's as much art as it is science. The other problem regarding Sessions is also the simple fact that even with a well tuned GC, they're still going to live with your application for at least the amount of time that the Session times out. What this means is that should your site get a sudden surge in traffic, your site will have to live with that traffic potentially long after the traffic has left. Like that big cloud of black smoke that a bus leaves as is accelerates away from the bus stop. The bus is gone, but the stink lingers. Mike has done some good work in identfying those requests which simply don't need the Sessions. In our application, were pretty much doomed once the user logs in (which they have to do to do anything). So, even the most casual quick glance in our system can cause horrible repercussions within the memory, unless they thoughfully hit the Log Out Button, but even that gets real ugly because of how web apps work. Long term, though, it's simply a matter that you should strive to keep your sessions small. I don't know if Tomcat can persist the Sessions to disk and deactive them before they time out (like after 5 minutes) in order to free up some long term memory. No doubt, this can be done directly in code, but...it's a tricky thing. I know, this is a meaningless post with no real concrete help, but just some observations. Anyway, to move on... From: Hari Venkatesan [mailto
Memory Mgmt Tomcat
Hi! I think the answer give to Nate should help, but just in case some one knows how to do performance tuning of Tomcat when heavy objects are being used, for effective 'memory management' then please put some light on the topic. Thanks, Rommel. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:30 PM To: Tomcat Users List Subject: RE: Resources for a Context Howdy, Can you please illustrate a possible use for this feature before you start coding it? A use case which can't be addressed by the servlet spec, that is. Right now, I doubt such a contribution would be accepted into tomcat's core, so you may not want to waste time writing it at all ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Keyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 5:10 PM To: Tomcat Users List Subject: RE: Resources for a Context I would be happy to make any modifications that would be required. I've spent a bit of time looking around at the source already, but I'm not sure what the best approach would be. It would be nice if it could be done in a plugin kind of way, but after looking around a bit, it seems that the concept of a single physical directory as a docbase is pretty ingrained (comments?). So far, I've looked at the following: 1. Writing a new catalina Context implementation 2. Writing a new jndi DirContext implementation, that would be configurable to take multiple directories Of those two, I think #2 makes the most sense, but I have doubts as to whether it would solve the problem. What I'm afraid of is that the changes required are peppered throughout the Tomcat codebase. Any pointers that you could give me to get me started in the right direction initially would be hugely appreciated. The only reason that I'm spending so much energy on this is that for very large web applications that are not structured as a webapp, which I think is rather common, it would be a HUGE aid in debugging to be able to pull something like this off. The code/compile/debug cycle gets a bit cumbersome when one is constantly redeploying large apps. I think for deployment the spec works just fine. Thanks again for your help, and all of your excellent work. Dave Keyes -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:24 PM To: Tomcat Users List Subject: RE: Resources for a Context On Wed, 22 Jan 2003, David Keyes wrote: Date: Wed, 22 Jan 2003 15:53:22 -0500 From: David Keyes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Resources for a Context So what mechanism would you suggest for making MORE than one Resources directory available for a Context? * Modify Tomcat to support multiple resources directories (It's open source :-). Note that you're violating the letter and spirit of the servlet spec's requirements on webapp organization, so it would be problematic accepting such a change back into Tomcat's core. * Use symbolic links (which doesn't help Windows users much). * Build deployment scripts that copy everything you need in the webapp together. Craig -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Memory Mgmt Tomcat
Howdy, The reason no one answered your original question is because it's kind of ridiculous ;) I don't mean that in an offensive way. I do mean: - Java has its own garbage collector. Tomcat doesn't need to implement its own. There is much information on this topic on java.sun.com and other general java forums. - Many many many threads have gone on this list regarding garbage collection and how to tune for it. Search the list archives for more details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:11 AM To: Tomcat Users List Subject: Memory Mgmt Tomcat Hi! I think the answer give to Nate should help, but just in case some one knows how to do performance tuning of Tomcat when heavy objects are being used, for effective 'memory management' then please put some light on the topic. Thanks, Rommel. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:30 PM To: Tomcat Users List Subject: RE: Resources for a Context Howdy, Can you please illustrate a possible use for this feature before you start coding it? A use case which can't be addressed by the servlet spec, that is. Right now, I doubt such a contribution would be accepted into tomcat's core, so you may not want to waste time writing it at all ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Keyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 5:10 PM To: Tomcat Users List Subject: RE: Resources for a Context I would be happy to make any modifications that would be required. I've spent a bit of time looking around at the source already, but I'm not sure what the best approach would be. It would be nice if it could be done in a plugin kind of way, but after looking around a bit, it seems that the concept of a single physical directory as a docbase is pretty ingrained (comments?). So far, I've looked at the following: 1. Writing a new catalina Context implementation 2. Writing a new jndi DirContext implementation, that would be configurable to take multiple directories Of those two, I think #2 makes the most sense, but I have doubts as to whether it would solve the problem. What I'm afraid of is that the changes required are peppered throughout the Tomcat codebase. Any pointers that you could give me to get me started in the right direction initially would be hugely appreciated. The only reason that I'm spending so much energy on this is that for very large web applications that are not structured as a webapp, which I think is rather common, it would be a HUGE aid in debugging to be able to pull something like this off. The code/compile/debug cycle gets a bit cumbersome when one is constantly redeploying large apps. I think for deployment the spec works just fine. Thanks again for your help, and all of your excellent work. Dave Keyes -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:24 PM To: Tomcat Users List Subject: RE: Resources for a Context On Wed, 22 Jan 2003, David Keyes wrote: Date: Wed, 22 Jan 2003 15:53:22 -0500 From: David Keyes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Resources for a Context So what mechanism would you suggest for making MORE than one Resources directory available for a Context? * Modify Tomcat to support multiple resources directories (It's open source :-). Note that you're violating the letter and spirit of the servlet spec's requirements on webapp organization, so it would be problematic accepting such a change back into Tomcat's core. * Use symbolic links (which doesn't help Windows users much). * Build deployment scripts that copy everything you need in the webapp together. Craig -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Memory Mgmt Tomcat
Thanks! Thats the lead I was looking for... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:37 PM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Howdy, The reason no one answered your original question is because it's kind of ridiculous ;) I don't mean that in an offensive way. I do mean: - Java has its own garbage collector. Tomcat doesn't need to implement its own. There is much information on this topic on java.sun.com and other general java forums. - Many many many threads have gone on this list regarding garbage collection and how to tune for it. Search the list archives for more details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:11 AM To: Tomcat Users List Subject: Memory Mgmt Tomcat Hi! I think the answer give to Nate should help, but just in case some one knows how to do performance tuning of Tomcat when heavy objects are being used, for effective 'memory management' then please put some light on the topic. Thanks, Rommel. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:30 PM To: Tomcat Users List Subject: RE: Resources for a Context Howdy, Can you please illustrate a possible use for this feature before you start coding it? A use case which can't be addressed by the servlet spec, that is. Right now, I doubt such a contribution would be accepted into tomcat's core, so you may not want to waste time writing it at all ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Keyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 5:10 PM To: Tomcat Users List Subject: RE: Resources for a Context I would be happy to make any modifications that would be required. I've spent a bit of time looking around at the source already, but I'm not sure what the best approach would be. It would be nice if it could be done in a plugin kind of way, but after looking around a bit, it seems that the concept of a single physical directory as a docbase is pretty ingrained (comments?). So far, I've looked at the following: 1. Writing a new catalina Context implementation 2. Writing a new jndi DirContext implementation, that would be configurable to take multiple directories Of those two, I think #2 makes the most sense, but I have doubts as to whether it would solve the problem. What I'm afraid of is that the changes required are peppered throughout the Tomcat codebase. Any pointers that you could give me to get me started in the right direction initially would be hugely appreciated. The only reason that I'm spending so much energy on this is that for very large web applications that are not structured as a webapp, which I think is rather common, it would be a HUGE aid in debugging to be able to pull something like this off. The code/compile/debug cycle gets a bit cumbersome when one is constantly redeploying large apps. I think for deployment the spec works just fine. Thanks again for your help, and all of your excellent work. Dave Keyes -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:24 PM To: Tomcat Users List Subject: RE: Resources for a Context On Wed, 22 Jan 2003, David Keyes wrote: Date: Wed, 22 Jan 2003 15:53:22 -0500 From: David Keyes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Resources for a Context So what mechanism would you suggest for making MORE than one Resources directory available for a Context? * Modify Tomcat to support multiple resources directories (It's open source :-). Note that you're violating the letter and spirit of the servlet spec's requirements on webapp organization, so it would be problematic accepting such a change back into Tomcat's core. * Use symbolic links (which doesn't help Windows users much). * Build deployment scripts that copy everything you need in the webapp together. Craig -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Memory Mgmt Tomcat
Howdy, No problem. If after searching the archives and reading those threads you can't find the answer to your particular situation, then ask. You'll find people will eagerly offer tips and suggestions ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:20 AM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Thanks! Thats the lead I was looking for... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:37 PM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Howdy, The reason no one answered your original question is because it's kind of ridiculous ;) I don't mean that in an offensive way. I do mean: - Java has its own garbage collector. Tomcat doesn't need to implement its own. There is much information on this topic on java.sun.com and other general java forums. - Many many many threads have gone on this list regarding garbage collection and how to tune for it. Search the list archives for more details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:11 AM To: Tomcat Users List Subject: Memory Mgmt Tomcat Hi! I think the answer give to Nate should help, but just in case some one knows how to do performance tuning of Tomcat when heavy objects are being used, for effective 'memory management' then please put some light on the topic. Thanks, Rommel. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:30 PM To: Tomcat Users List Subject: RE: Resources for a Context Howdy, Can you please illustrate a possible use for this feature before you start coding it? A use case which can't be addressed by the servlet spec, that is. Right now, I doubt such a contribution would be accepted into tomcat's core, so you may not want to waste time writing it at all ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Keyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 5:10 PM To: Tomcat Users List Subject: RE: Resources for a Context I would be happy to make any modifications that would be required. I've spent a bit of time looking around at the source already, but I'm not sure what the best approach would be. It would be nice if it could be done in a plugin kind of way, but after looking around a bit, it seems that the concept of a single physical directory as a docbase is pretty ingrained (comments?). So far, I've looked at the following: 1. Writing a new catalina Context implementation 2. Writing a new jndi DirContext implementation, that would be configurable to take multiple directories Of those two, I think #2 makes the most sense, but I have doubts as to whether it would solve the problem. What I'm afraid of is that the changes required are peppered throughout the Tomcat codebase. Any pointers that you could give me to get me started in the right direction initially would be hugely appreciated. The only reason that I'm spending so much energy on this is that for very large web applications that are not structured as a webapp, which I think is rather common, it would be a HUGE aid in debugging to be able to pull something like this off. The code/compile/debug cycle gets a bit cumbersome when one is constantly redeploying large apps. I think for deployment the spec works just fine. Thanks again for your help, and all of your excellent work. Dave Keyes -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:24 PM To: Tomcat Users List Subject: RE: Resources for a Context On Wed, 22 Jan 2003, David Keyes wrote: Date: Wed, 22 Jan 2003 15:53:22 -0500 From: David Keyes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Resources for a Context So what mechanism would you suggest for making MORE than one Resources directory available for a Context? * Modify Tomcat to support multiple resources directories (It's open source :-). Note that you're violating the letter and spirit of the servlet spec's requirements on webapp organization, so it would be problematic accepting such a change back into Tomcat's core. * Use symbolic links (which doesn't help Windows users much). * Build deployment scripts that copy everything you need in the webapp together. Craig -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail
RE: Memory Mgmt Tomcat
Shapira, I don't think the question is ridiculous. There are a lot of people out there who have implemented tomcat in production environment and we as starters would like to know how they managed some of the delicate issues like this. Off late there have been many queries about memory management and the reason behind this is because people get bombarded with out of memory error. Personally, I have been researching the same problem for almost a week now, still without any right answers even after searching the archives. Different JVM's do memory management in its own way and that is even more confusing. You start tomcat with -verbose:gc, you can see GC kicks in even as it starts. From what I learnt from java.sun.com, a full GC kicks in only after it reaches its max heap. But you can see Full GC's in the verbose output even before the JVM reaching its max heap. This makes you believe that something is wrong somewhere and that is when people come out here to post their question to get some light from experienced users of tomcat. By the way I have gone through the entire archive about this topic and none of them give a final answer. Hari -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:20 AM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Thanks! Thats the lead I was looking for... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:37 PM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Howdy, The reason no one answered your original question is because it's kind of ridiculous ;) I don't mean that in an offensive way. I do mean: - Java has its own garbage collector. Tomcat doesn't need to implement its own. There is much information on this topic on java.sun.com and other general java forums. - Many many many threads have gone on this list regarding garbage collection and how to tune for it. Search the list archives for more details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:11 AM To: Tomcat Users List Subject: Memory Mgmt Tomcat Hi! I think the answer give to Nate should help, but just in case some one knows how to do performance tuning of Tomcat when heavy objects are being used, for effective 'memory management' then please put some light on the topic. Thanks, Rommel. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:30 PM To: Tomcat Users List Subject: RE: Resources for a Context Howdy, Can you please illustrate a possible use for this feature before you start coding it? A use case which can't be addressed by the servlet spec, that is. Right now, I doubt such a contribution would be accepted into tomcat's core, so you may not want to waste time writing it at all ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Keyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 5:10 PM To: Tomcat Users List Subject: RE: Resources for a Context I would be happy to make any modifications that would be required. I've spent a bit of time looking around at the source already, but I'm not sure what the best approach would be. It would be nice if it could be done in a plugin kind of way, but after looking around a bit, it seems that the concept of a single physical directory as a docbase is pretty ingrained (comments?). So far, I've looked at the following: 1. Writing a new catalina Context implementation 2. Writing a new jndi DirContext implementation, that would be configurable to take multiple directories Of those two, I think #2 makes the most sense, but I have doubts as to whether it would solve the problem. What I'm afraid of is that the changes required are peppered throughout the Tomcat codebase. Any pointers that you could give me to get me started in the right direction initially would be hugely appreciated. The only reason that I'm spending so much energy on this is that for very large web applications that are not structured as a webapp, which I think is rather common, it would be a HUGE aid in debugging to be able to pull something like this off. The code/compile/debug cycle gets a bit cumbersome when one is constantly redeploying large apps. I think for deployment the spec works just fine. Thanks again for your help, and all of your excellent work. Dave Keyes -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:24 PM To: Tomcat Users List Subject: RE: Resources for a Context On Wed, 22 Jan 2003, David Keyes wrote: Date: Wed, 22 Jan 2003 15:53:22 -0500 From: David Keyes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Resources for a Context So what mechanism would you suggest
RE: Memory Mgmt Tomcat
Hi! Well I am also getting the same out of memory errors, FI: I am using Oracle database. I found some info that talks about setting time-out for DB Con Poolng. Will start with this info and see how it helps. Pasting the info below for any further analysis and comments by the grp: Tomcat runs within a JVM. The JVM periodically performs garbage collection (GC) to remove java objects which are no longer being used. When the JVM performs GC execution of code within Tomcat freezes. If the maximum time configured for establishment of a dB connection is less than the amount of time garbage collection took you can get a db conneciton failure. To collect data on how long garbage collection is taking add the -verbose:gc argument to your CATALINA_OPTS environment variable when starting Tomcat.When verbose gc is enabled your $CATALINA_BASE/logs/catalina.out log file will include data for every garbage collection including how long it took.When your JVM is tuned correctly 99% of the time a GC will take less than one second. The remainder will only take a few seconds. Rarely, if ever should a GC take more than 10 seconds.Make sure that the db connection timeout is set to 10-15 seconds. For the DBCP you set this using the parameter maxWait. Thanks, Rommel. -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 8:00 PM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Shapira, I don't think the question is ridiculous. There are a lot of people out there who have implemented tomcat in production environment and we as starters would like to know how they managed some of the delicate issues like this. Off late there have been many queries about memory management and the reason behind this is because people get bombarded with out of memory error. Personally, I have been researching the same problem for almost a week now, still without any right answers even after searching the archives. Different JVM's do memory management in its own way and that is even more confusing. You start tomcat with -verbose:gc, you can see GC kicks in even as it starts. From what I learnt from java.sun.com, a full GC kicks in only after it reaches its max heap. But you can see Full GC's in the verbose output even before the JVM reaching its max heap. This makes you believe that something is wrong somewhere and that is when people come out here to post their question to get some light from experienced users of tomcat. By the way I have gone through the entire archive about this topic and none of them give a final answer. Hari -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:20 AM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Thanks! Thats the lead I was looking for... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:37 PM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Howdy, The reason no one answered your original question is because it's kind of ridiculous ;) I don't mean that in an offensive way. I do mean: - Java has its own garbage collector. Tomcat doesn't need to implement its own. There is much information on this topic on java.sun.com and other general java forums. - Many many many threads have gone on this list regarding garbage collection and how to tune for it. Search the list archives for more details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:11 AM To: Tomcat Users List Subject: Memory Mgmt Tomcat Hi! I think the answer give to Nate should help, but just in case some one knows how to do performance tuning of Tomcat when heavy objects are being used, for effective 'memory management' then please put some light on the topic. Thanks, Rommel. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:30 PM To: Tomcat Users List Subject: RE: Resources for a Context Howdy, Can you please illustrate a possible use for this feature before you start coding it? A use case which can't be addressed by the servlet spec, that is. Right now, I doubt such a contribution would be accepted into tomcat's core, so you may not want to waste time writing it at all ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Keyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 5:10 PM To: Tomcat Users List Subject: RE: Resources for a Context I would be happy to make any modifications that would be required. I've spent a bit of time looking around at the source already, but I'm not sure what the best approach would be. It would be nice if it could be done in a plugin kind of way, but after looking around a bit, it seems that the concept of a single physical directory as a docbase is pretty ingrained (comments?). So far
RE: Memory Mgmt Tomcat
When you start tomcat4.1.12 on Win2k as a service with verbose:gc, i do not see the GC output in Catalina.out. I tried and tried and finally settled down to start tomcat from command line for testing purpose. To collect data on how long garbage collection is taking add the -verbose:gc argument to your CATALINA_OPTS environment variable when starting Tomcat.When verbose gc is enabled your $CATALINA_BASE/logs/catalina.out log file will include data for every garbage collection including how long it took. Have anybody got to see GC output in catalina.out log? ? Hari -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:48 AM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Hi! Well I am also getting the same out of memory errors, FI: I am using Oracle database. I found some info that talks about setting time-out for DB Con Poolng. Will start with this info and see how it helps. Pasting the info below for any further analysis and comments by the grp: Tomcat runs within a JVM. The JVM periodically performs garbage collection (GC) to remove java objects which are no longer being used. When the JVM performs GC execution of code within Tomcat freezes. If the maximum time configured for establishment of a dB connection is less than the amount of time garbage collection took you can get a db conneciton failure. To collect data on how long garbage collection is taking add the -verbose:gc argument to your CATALINA_OPTS environment variable when starting Tomcat.When verbose gc is enabled your $CATALINA_BASE/logs/catalina.out log file will include data for every garbage collection including how long it took.When your JVM is tuned correctly 99% of the time a GC will take less than one second. The remainder will only take a few seconds. Rarely, if ever should a GC take more than 10 seconds.Make sure that the db connection timeout is set to 10-15 seconds. For the DBCP you set this using the parameter maxWait. Thanks, Rommel. -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 8:00 PM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Shapira, I don't think the question is ridiculous. There are a lot of people out there who have implemented tomcat in production environment and we as starters would like to know how they managed some of the delicate issues like this. Off late there have been many queries about memory management and the reason behind this is because people get bombarded with out of memory error. Personally, I have been researching the same problem for almost a week now, still without any right answers even after searching the archives. Different JVM's do memory management in its own way and that is even more confusing. You start tomcat with -verbose:gc, you can see GC kicks in even as it starts. From what I learnt from java.sun.com, a full GC kicks in only after it reaches its max heap. But you can see Full GC's in the verbose output even before the JVM reaching its max heap. This makes you believe that something is wrong somewhere and that is when people come out here to post their question to get some light from experienced users of tomcat. By the way I have gone through the entire archive about this topic and none of them give a final answer. Hari -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:20 AM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Thanks! Thats the lead I was looking for... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:37 PM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Howdy, The reason no one answered your original question is because it's kind of ridiculous ;) I don't mean that in an offensive way. I do mean: - Java has its own garbage collector. Tomcat doesn't need to implement its own. There is much information on this topic on java.sun.com and other general java forums. - Many many many threads have gone on this list regarding garbage collection and how to tune for it. Search the list archives for more details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:11 AM To: Tomcat Users List Subject: Memory Mgmt Tomcat Hi! I think the answer give to Nate should help, but just in case some one knows how to do performance tuning of Tomcat when heavy objects are being used, for effective 'memory management' then please put some light on the topic. Thanks, Rommel. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:30 PM To: Tomcat Users List Subject: RE: Resources for a Context Howdy, Can you please illustrate a possible use for this feature before you start coding it? A use case which can't be addressed by the servlet spec
RE: Memory Mgmt Tomcat
We run high volume, load balanced and multiple web, servlet, application and database servers on physically different machines. One of the problem areas is persistence of sessions. Even if the application knows that a session is never going to be used again it hangs around and uses memory until such time as Java garbage collection cuts in. This is good in that the application does not have to worry about operational issues but garbage collection is not too intelligent, it can only do so much. In some of our Java servlets (the heavy processing ones) the application explicitly kills the sessions when the application knows who the visitor is and knows whether the session can be disgarded immediately. The vast majority of visits do not require sessions. The most visits are from robots from partners. The next most visits are from robots from search engines. The next most visits are from humans who have not registered. The next most visits are from humans who have registered but who do not need state information. Finally there are a relatively few visitors who have registered and who require state information and hooray actually buy services. We had a 15 minute session time-out but before explicit session killing at peak times session numbers built up, free memory fell to danger levels slowing up the system and so the servers had to be bounced. After explicit session killing we have not seen the problem again. Static elements are being served by Apache so the only elements that required to be served by the servlet servers are those that require dynamic content (which are those that link to back-office applications). Even those that require dynamic content only a few requests in the vast numbers of requests require state information. Applications can be written using various techniques to further minimise the need for persistent sessions...this is especially useful to maintain state even if the visitor leaves the browser open on a particular page, goes to lunch, retains and expects to pick up exactly where they left off (long past the session timeout has expired). Opinions ?!? Mike -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: 23 January 2003 14:30 To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Shapira, I don't think the question is ridiculous. There are a lot of people out there who have implemented tomcat in production environment and we as starters would like to know how they managed some of the delicate issues like this. Off late there have been many queries about memory management and the reason behind this is because people get bombarded with out of memory error. Personally, I have been researching the same problem for almost a week now, still without any right answers even after searching the archives. Different JVM's do memory management in its own way and that is even more confusing. You start tomcat with -verbose:gc, you can see GC kicks in even as it starts. From what I learnt from java.sun.com, a full GC kicks in only after it reaches its max heap. But you can see Full GC's in the verbose output even before the JVM reaching its max heap. This makes you believe that something is wrong somewhere and that is when people come out here to post their question to get some light from experienced users of tomcat. By the way I have gone through the entire archive about this topic and none of them give a final answer. Hari -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:20 AM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Thanks! Thats the lead I was looking for... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:37 PM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Howdy, The reason no one answered your original question is because it's kind of ridiculous ;) I don't mean that in an offensive way. I do mean: - Java has its own garbage collector. Tomcat doesn't need to implement its own. There is much information on this topic on java.sun.com and other general java forums. - Many many many threads have gone on this list regarding garbage collection and how to tune for it. Search the list archives for more details. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rommel Sharma [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:11 AM To: Tomcat Users List Subject: Memory Mgmt Tomcat Hi! I think the answer give to Nate should help, but just in case some one knows how to do performance tuning of Tomcat when heavy objects are being used, for effective 'memory management' then please put some light on the topic. Thanks, Rommel. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 7:30 PM To: Tomcat Users List Subject: RE: Resources for a Context Howdy, Can you please illustrate
RE: Memory Mgmt Tomcat
Howdy, A few things. First, you original question: To collect data on how long garbage collection is taking add the -verbose:gc argument to your CATALINA_OPTS environment variable when starting Tomcat.When verbose gc is enabled your $CATALINA_BASE/logs/catalina.out log file will include data for every garbage collection including how long it took. Have anybody got to see GC output in catalina.out log? ? Yes. Every single time I've followed the above instructions, I see verbose gc in my catalina.out file. If I use JDK 1.4 with the loggc:file option, it goes to that file. If I omit that option and enable swallowOutput for the Logger in server.xml, the verbose gc information goes there. I've had no problems with this at all. In fact I've tested this functionality on every point release from 4.0.1 to now. All my attempts are on linux and Solaris platforms. I wouldn't run anything serious on a Windows box any time soon. It may be that some of the above doesn't work on windows, or when running tomcat on windows as a service, which you mentioned is your deployment setup. There are a lot of people out there who have implemented tomcat in production environment and we as starters would like to know how they managed some of the delicate issues like this. Assuming you mean deployed instead of implemented, I agree. But I think the above number is far exceeded by the number of people who believe there are magic garbage collection tuning settings that'll make all the GC problems go away. Off late there have been many queries about memory management and the reason behind this is because people get bombarded with out of memory error. Not just of late. For a long long time now. And not just on the tomcat lists either. It's a difficult topic that many people struggle with. now, still without any right answers even after searching the archives. See above: the right answer is one only you can find for your own particular app. There's no magic GC combination that'll perfectly tune your JVM. What worked for others may not work for you. Different JVM's do memory management in its own way and that is even more confusing. It may be confusing. But in fact, as someone who's written a JVM, memory management and efficient collection are distinguishing factors. It's a key value added if you can do it well: hence JRockit and others. You start tomcat with -verbose:gc, you can see GC kicks in even as it Yup. All the time. This is normal and expected. They're usually incremental or young generation GCs. starts. From what I learnt from java.sun.com, a full GC kicks in only after it reaches its max heap. But you can see Full GC's in the verbose output even before the JVM reaching its max heap. No, that's not true at all. A full GC may kick in long before max heap is allocated. In fact, the JVM will usually try to never even get close. By default the minimum percentage of the heap it'll try to keep free is 40%. You can tune this with XX:MaxHeapFreeRatio=Maximum and -XX:MinHeapFreeRation=Minimum By the way I have gone through the entire archive about this topic and none of them give a final answer. Again, what's a final answer? What sort of answer would you have liked to see that wasn't in the archives? It may be that the only final answer is: - Come up with performance goals - Come up with performance tests - Run tests, record results - If goals are met, stop, else - Modify one GC parameter - Run tests, records results - Repeat until goals are met. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Memory Mgmt Tomcat
Hai, Thanks you very much for spending the time and answering some of my (our) problems in much detail. Appreciate it. I will try to put in my efforts on the direction you have shown. Again Appreciate your time Hari -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 10:24 AM To: Tomcat Users List Subject: RE: Memory Mgmt Tomcat Howdy, A few things. First, you original question: To collect data on how long garbage collection is taking add the -verbose:gc argument to your CATALINA_OPTS environment variable when starting Tomcat.When verbose gc is enabled your $CATALINA_BASE/logs/catalina.out log file will include data for every garbage collection including how long it took. Have anybody got to see GC output in catalina.out log? ? Yes. Every single time I've followed the above instructions, I see verbose gc in my catalina.out file. If I use JDK 1.4 with the loggc:file option, it goes to that file. If I omit that option and enable swallowOutput for the Logger in server.xml, the verbose gc information goes there. I've had no problems with this at all. In fact I've tested this functionality on every point release from 4.0.1 to now. All my attempts are on linux and Solaris platforms. I wouldn't run anything serious on a Windows box any time soon. It may be that some of the above doesn't work on windows, or when running tomcat on windows as a service, which you mentioned is your deployment setup. There are a lot of people out there who have implemented tomcat in production environment and we as starters would like to know how they managed some of the delicate issues like this. Assuming you mean deployed instead of implemented, I agree. But I think the above number is far exceeded by the number of people who believe there are magic garbage collection tuning settings that'll make all the GC problems go away. Off late there have been many queries about memory management and the reason behind this is because people get bombarded with out of memory error. Not just of late. For a long long time now. And not just on the tomcat lists either. It's a difficult topic that many people struggle with. now, still without any right answers even after searching the archives. See above: the right answer is one only you can find for your own particular app. There's no magic GC combination that'll perfectly tune your JVM. What worked for others may not work for you. Different JVM's do memory management in its own way and that is even more confusing. It may be confusing. But in fact, as someone who's written a JVM, memory management and efficient collection are distinguishing factors. It's a key value added if you can do it well: hence JRockit and others. You start tomcat with -verbose:gc, you can see GC kicks in even as it Yup. All the time. This is normal and expected. They're usually incremental or young generation GCs. starts. From what I learnt from java.sun.com, a full GC kicks in only after it reaches its max heap. But you can see Full GC's in the verbose output even before the JVM reaching its max heap. No, that's not true at all. A full GC may kick in long before max heap is allocated. In fact, the JVM will usually try to never even get close. By default the minimum percentage of the heap it'll try to keep free is 40%. You can tune this with XX:MaxHeapFreeRatio=Maximum and -XX:MinHeapFreeRation=Minimum By the way I have gone through the entire archive about this topic and none of them give a final answer. Again, what's a final answer? What sort of answer would you have liked to see that wasn't in the archives? It may be that the only final answer is: - Come up with performance goals - Come up with performance tests - Run tests, record results - If goals are met, stop, else - Modify one GC parameter - Run tests, records results - Repeat until goals are met. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Running out of memory with Tomcat 3.3.1 and Java 1.3.1_01
Hello, I've got a problem with the Tomcat 3.3.1 under Solaris 8 and Java 1.3.1_01. We use a 4 processor machine and 2GB RAM and restart the tomcat every night, cause over the day the allocated memory increases up to 2GB (sometimes more, so it's restarted manually). Starting the garbage collection (gc) only frees a part of the memory so after each start of the gc a little part of the memory is missing. Another effect is, the gc needs more and more time to garbage - so the server hangs and clients have a timeout. At the end it is better to restart the server or quicker to reboot the server. Where is the problem? - JVM - Tomcat - Servlets (no use of JSP) - some of our Servlets have a deep class hierarchy - other middle tier like jdbc-driver, mail-components Thanks in advance Frank Frank Mau mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Memory with Tomcat
Hi, I have a big problem with memory. Tomcat take all memory after hours. I have apache 1.3.22 with mod-webapp and tomcat 4.0.1. Does it possible to optimize java. Can you have idea ? Thank a lots. -- */Sylvain Boily/* /Administrateur Linux/ cid:[EMAIL PROTECTED] /*Adresse :* 39, bd Anatole France - 93200 St-Denis - France/ /*tel :*0148131814/ /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *web:*http://www.linkbynet.fr/
RE: Excessive high usage of memory by Tomcat on NT
out of curiosity, are you running tomcat as a service? -Original Message- From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 22, 2002 12:18 AM To: Tomcat Subject: Excessive high usage of memory by Tomcat on NT Hello all: We are facing the problem of excessive memory usage by our servlets (that call JNI functions). The memory usage seems to touch 50+ MB in 2000 Server but it drops down to 30 MB soon. But, this does not happen in NT. The memory keeps on increasing and there is a point in time when Tomcat occupies *all* the available memory. We are taking care of *garbage collecting* the objects frequently(by calling Runtime.gc()). Is there any other way by which we can have some kind of control over the usage of memory? Do we have to install a patch for NT (if something like this is available)? NT Server: -- PIII 500 MHz, 256MB RAM, 40GB HDD 2000 Server: PIII 700 MHz, 128MB RAM, 20GB HDD Tomcat: --- Version 3.2.1 JDK: Sun's JDK 1.3 Any suggestions, pointers are appreciated. Thanks Manish -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Excessive high usage of memory by Tomcat on NT
No, we are not running Tomcat as a service on NT. -Original Message- From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:04 AM To: 'Tomcat Users List' Subject: RE: Excessive high usage of memory by Tomcat on NT out of curiosity, are you running tomcat as a service? -Original Message- From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 22, 2002 12:18 AM To: Tomcat Subject: Excessive high usage of memory by Tomcat on NT Hello all: We are facing the problem of excessive memory usage by our servlets (that call JNI functions). The memory usage seems to touch 50+ MB in 2000 Server but it drops down to 30 MB soon. But, this does not happen in NT. The memory keeps on increasing and there is a point in time when Tomcat occupies *all* the available memory. We are taking care of *garbage collecting* the objects frequently(by calling Runtime.gc()). Is there any other way by which we can have some kind of control over the usage of memory? Do we have to install a patch for NT (if something like this is available)? NT Server: -- PIII 500 MHz, 256MB RAM, 40GB HDD 2000 Server: PIII 700 MHz, 128MB RAM, 20GB HDD Tomcat: --- Version 3.2.1 JDK: Sun's JDK 1.3 Any suggestions, pointers are appreciated. Thanks Manish -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Excessive high usage of memory by Tomcat on NT
Hello all: We are facing the problem of excessive memory usage by our servlets (that call JNI functions). The memory usage seems to touch 50+ MB in 2000 Server but it drops down to 30 MB soon. But, this does not happen in NT. The memory keeps on increasing and there is a point in time when Tomcat occupies *all* the available memory. We are taking care of *garbage collecting* the objects frequently(by calling Runtime.gc()). Is there any other way by which we can have some kind of control over the usage of memory? Do we have to install a patch for NT (if something like this is available)? NT Server: -- PIII 500 MHz, 256MB RAM, 40GB HDD 2000 Server: PIII 700 MHz, 128MB RAM, 20GB HDD Tomcat: --- Version 3.2.1 JDK: Sun's JDK 1.3 Any suggestions, pointers are appreciated. Thanks Manish -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Excessive high usage of memory by Tomcat on NT
One solution may be to upgrade to a later JDK and tomcat. Not sure if that will help but I know that there is a 3.2.4 release of tomcat and earlier versions may have issues with NT. -Original Message- From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 22, 2002 4:18 PM To: Tomcat Subject: Excessive high usage of memory by Tomcat on NT Hello all: We are facing the problem of excessive memory usage by our servlets (that call JNI functions). The memory usage seems to touch 50+ MB in 2000 Server but it drops down to 30 MB soon. But, this does not happen in NT. The memory keeps on increasing and there is a point in time when Tomcat occupies *all* the available memory. We are taking care of *garbage collecting* the objects frequently(by calling Runtime.gc()). Is there any other way by which we can have some kind of control over the usage of memory? Do we have to install a patch for NT (if something like this is available)? NT Server: -- PIII 500 MHz, 256MB RAM, 40GB HDD 2000 Server: PIII 700 MHz, 128MB RAM, 20GB HDD Tomcat: --- Version 3.2.1 JDK: Sun's JDK 1.3 Any suggestions, pointers are appreciated. Thanks Manish -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Setting the alocated memory to Tomcat 4.0.1
Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Setting the alocated memory to Tomcat 4.0.1
- Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, for example, update the following: * _STARTJAVA * %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start and add java -Xmsn/-Xmxn into them. Bo Dec.06, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SV: Setting the alocated memory to Tomcat 4.0.1
Hi Bo! Thank´s for your reply, but I seem to have no luck with this. Have done a little jsp file that prints out the free memory and total memory of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply, I´ve just added -Xms -Xmx to the end of the line: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start So the result is: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start -Xms100663296 -Xmx134217728 What do say is this approach right or wrong? Best regards Niclas Rothman -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:10 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, for example, update the following: * _STARTJAVA * %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start and add java -Xmsn/-Xmxn into them. Bo Dec.06, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: SV: Setting the alocated memory to Tomcat 4.0.1
Hi, Try: set CATALINA_OPTS=-Xms=size -Xmx-size and then start tomcat. This should set the desired options. Note: I haven't tried this on Win32, but works find on *NIX. -rl On Thu, 2001-12-06 at 13:27, Niclas Rothman wrote: Hi Bo! Thank´s for your reply, but I seem to have no luck with this. Have done a little jsp file that prints out the free memory and total memory of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply, I´ve just added -Xms -Xmx to the end of the line: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start So the result is: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start -Xms100663296 -Xmx134217728 What do say is this approach right or wrong? Best regards Niclas Rothman -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:10 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, for example, update the following: * _STARTJAVA * %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start and add java -Xmsn/-Xmxn into them. Bo Dec.06, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Setting the alocated memory to Tomcat 4.0.1
Hi Niclas, I am not sure because I didn't ever use -Xms/-Xmx to customize catalina.bat, I guess there are two reasons: - did you update all _RUNJAVA/_STARTJAVA... start in catalina.bat? in the the following(from TC4.0), there are 4 _RUNJAVA/_STARTJAVA... start. :doRun if %2 == -security goto doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStart if %2 == -security goto doStartSecure %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStartSecure echo Using Security Manager %_STARTJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup - does anybody know if -Xms/-Xmx will increase allocated memory in every JVM/OS combination? or it only work in some of them? Thanks in advance! Bo Dec.06, 2001 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 1:27 PM Subject: SV: Setting the alocated memory to Tomcat 4.0.1 Hi Bo! Thank´s for your reply, but I seem to have no luck with this. Have done a little jsp file that prints out the free memory and total memory of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply, I´ve just added -Xms -Xmx to the end of the line: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start So the result is: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start -Xms100663296 -Xmx134217728 What do say is this approach right or wrong? Best regards Niclas Rothman -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:10 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, for example, update the following: * _STARTJAVA * %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start and add java -Xmsn/-Xmxn into them. Bo Dec.06, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SV: Setting the alocated memory to Tomcat 4.0.1
Okey Bo! It works now if I startup the Tomcat throug startup.bat but it still doesn´t work when I try to start the beast as a NT service. Any further suggestions? Niclas -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:50 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 Hi Niclas, I am not sure because I didn't ever use -Xms/-Xmx to customize catalina.bat, I guess there are two reasons: - did you update all _RUNJAVA/_STARTJAVA... start in catalina.bat? in the the following(from TC4.0), there are 4 _RUNJAVA/_STARTJAVA... start. :doRun if %2 == -security goto doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStart if %2 == -security goto doStartSecure %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStartSecure echo Using Security Manager %_STARTJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup - does anybody know if -Xms/-Xmx will increase allocated memory in every JVM/OS combination? or it only work in some of them? Thanks in advance! Bo Dec.06, 2001 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 1:27 PM Subject: SV: Setting the alocated memory to Tomcat 4.0.1 Hi Bo! Thank´s for your reply, but I seem to have no luck with this. Have done a little jsp file that prints out the free memory and total memory of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply, I´ve just added -Xms -Xmx to the end of the line: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start So the result is: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start -Xms100663296 -Xmx134217728 What do say is this approach right or wrong? Best regards Niclas Rothman -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:10 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, for example, update the following: * _STARTJAVA * %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start and add java -Xmsn/-Xmxn into them. Bo Dec.06, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Setting the alocated memory to Tomcat 4.0.1
Hi Niclas, You should really do this using the environment variable CATALINA_OPTS. That's what it's designed for. Set up an environment variable called CATALINA_OPTS and set it's value to -Xmssize -Xmxsize. The easiest way to do this is by right-clicking on your My Computer icon and then selecting the Environment tab. Thanks, --jeff - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 11:30 AM Subject: SV: Setting the alocated memory to Tomcat 4.0.1 Okey Bo! It works now if I startup the Tomcat throug startup.bat but it still doesn´t work when I try to start the beast as a NT service. Any further suggestions? Niclas -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:50 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 Hi Niclas, I am not sure because I didn't ever use -Xms/-Xmx to customize catalina.bat, I guess there are two reasons: - did you update all _RUNJAVA/_STARTJAVA... start in catalina.bat? in the the following(from TC4.0), there are 4 _RUNJAVA/_STARTJAVA... start. :doRun if %2 == -security goto doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStart if %2 == -security goto doStartSecure %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStartSecure echo Using Security Manager %_STARTJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup - does anybody know if -Xms/-Xmx will increase allocated memory in every JVM/OS combination? or it only work in some of them? Thanks in advance! Bo Dec.06, 2001 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 1:27 PM Subject: SV: Setting the alocated memory to Tomcat 4.0.1 Hi Bo! Thank´s for your reply, but I seem to have no luck with this. Have done a little jsp file that prints out the free memory and total memory of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply, I´ve just added -Xms -Xmx to the end of the line: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start So the result is: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start -Xms100663296 -Xmx134217728 What do say is this approach right or wrong? Best regards Niclas Rothman -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:10 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, for example, update the following: * _STARTJAVA * %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start and add java -Xmsn/-Xmxn into them. Bo Dec.06, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED
RE: Setting the alocated memory to Tomcat 4.0.1
I am using tomcat 3.2.1. I tried add an environment variable TOMCAT_OPTS and make value to be -Xmx348m;-Xms256m It seemed worked. If you find any other way, please let me know. Susan Zeng -Original Message- From: Bo Xu [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 12:10 PM To: Tomcat Users List Subject: Re: Setting the alocated memory to Tomcat 4.0.1 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, for example, update the following: * _STARTJAVA * %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start and add java -Xmsn/-Xmxn into them. Bo Dec.06, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Setting the alocated memory to Tomcat 4.0.1
I wonder if you could send me the code to prints out the free memory and total memory in jsp. Thank you very much. Susan Zeng -Original Message- From: Niclas Rothman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 12:27 PM To: 'Tomcat Users List' Subject: SV: Setting the alocated memory to Tomcat 4.0.1 Hi Bo! Thank´s for your reply, but I seem to have no luck with this. Have done a little jsp file that prints out the free memory and total memory of the JVM and doesn´t seem to change. Maybe I´ve missunderstood your reply, I´ve just added -Xms -Xmx to the end of the line: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start So the result is: %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start -Xms100663296 -Xmx134217728 What do say is this approach right or wrong? Best regards Niclas Rothman -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:10 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:52 PM Subject: Setting the alocated memory to Tomcat 4.0.1 Hi everybody! I´m using Tomcat 4.0.1 and the version with the Windows NT service. Does anybody know where to set the size for the memory to allocate to the Tomcat (-Xms -Xmx), can´t find any documentation about this. Best reqards Niclas Rothman I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, for example, update the following: * _STARTJAVA * %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start and add java -Xmsn/-Xmxn into them. Bo Dec.06, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Out of Memory error - Tomcat 3.2.1
Wondering if anyone has any idea about this issue. Would appreciate a reply.. Yours, Somik - Original Message - From: Somik Raha To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 11:17 AM Subject: Out of Memory error - Tomcat 3.2.1 Hi, I am using Tomcat 3.2.1 with Apache. I find a strange phenomenon - whenever an http request is made, a tomcat thread is created. But when the servlet finishes, the thread is not destroyed. This results in a big problem - after sometime, an OutOfMemory exception is thrown - with the message "Unable to create Native Thread". Doing "pstree -ap" shows more than a thousand threads under the tomcat process (there are only a few servlets). I have checked my servlets, none of them have threads that dont end. I checked the Tomcat page, and it says I ought to upgrade to 3.2.3, as there are a lot of performance fixes. Is this one of them ? I want to make sure this is the problem, or the problem lies elsewhere.. Will appreciate help on this issue. Thanks. Regards, Somik **Somik RahaRD TeamKizna CorporationHiroo ON Bldg. 2F, 5-19-9 Hiroo,Shibuya-ku, Tokyo, 150-0012, JAPANPhone : +81-3-5475-2646Fax : +81-3-5449-4870**
RE: Out of Memory error - Tomcat 3.2.1
1. You're posting a message in non-plain text format, which is in violation of this list's rules (you did read the list's FAQ, didn't you?). Your message is thus likely being ignored. Post in plain text as required and someone will probably respond. 2. Your original message was posted 4 hours ago. This is a voluntary public mailing list, not a paid tech support with fixed time response. Give it some time before posting a follow-up. Regards, Emir. DISCLAIMER: The content of the preceding message is exclusively the personal opinion of the author, i.e. myself. Under no circumstances should the content be attributed to my employer.
Re: Out of Memory error - Tomcat 3.2.1
1. You're posting a message in non-plain text format, which is in violation of this list's rules (you did read the list's FAQ, didn't you?). Your message is thus likely being ignored. Post in plain text as required and someone will probably respond. Oops! Very sorry about that. Regards, Somik - Original Message - From: Emir Alikadic (ADNOC IST) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 3:57 PM Subject: RE: Out of Memory error - Tomcat 3.2.1 1. You're posting a message in non-plain text format, which is in violation of this list's rules (you did read the list's FAQ, didn't you?). Your message is thus likely being ignored. Post in plain text as required and someone will probably respond. 2. Your original message was posted 4 hours ago. This is a voluntary public mailing list, not a paid tech support with fixed time response. Give it some time before posting a follow-up. Regards, Emir. DISCLAIMER: The content of the preceding message is exclusively the personal opinion of the author, i.e. myself. Under no circumstances should the content be attributed to my employer. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Out of Memory error - Tomcat 3.2.1
Hi, Sorry for posting earlier in Rich Text. I am using Tomcat 3.2.1 with Apache. I find a strange phenomenon - whenever an http request is made, a tomcat thread is created. But when the servlet finishes, the thread is not destroyed. This results in a big problem - after sometime, an OutOfMemory exception is thrown - with the message "Unable to create Native Thread". Doing "pstree -ap" shows more than a thousand threads under the tomcat process (there are only a few servlets). I have checked my servlets, none of them have threads that dont end. I checked the Tomcat page, and it says I ought to upgrade to 3.2.3, as there are a lot of performance fixes. Is this one of them ? I want to make sure this is the problem, or the problem lies elsewhere.. Will appreciate help on this issue. Thanks. Regards, Somik
Re: Out of Memory error - Tomcat 3.2.1
Somik, Are there really more than 1000 threads? When I start tomcat I get about 35 threads... are you running a standardish configuration or have you changed things? When you say you've checked your servlets and none of them have threads that dont end - are you sure? maybe post one of your servlets so people can check it. cheesr dim On Tue, 31 Jul 2001, Somik Raha wrote: Hi, Sorry for posting earlier in Rich Text. I am using Tomcat 3.2.1 with Apache. I find a strange phenomenon - whenever an http request is made, a tomcat thread is created. But when the servlet finishes, the thread is not destroyed. This results in a big problem - after sometime, an OutOfMemory exception is thrown - with the message Unable to create Native Thread. Doing pstree -ap shows more than a thousand threads under the tomcat process (there are only a few servlets). I have checked my servlets, none of them have threads that dont end. I checked the Tomcat page, and it says I ought to upgrade to 3.2.3, as there are a lot of performance fixes. Is this one of them ? I want to make sure this is the problem, or the problem lies elsewhere.. Will appreciate help on this issue. Thanks. Regards, Somik
Re: Out of Memory error - Tomcat 3.2.1
Hi Dmitri, Thanks for writing. Are there really more than 1000 threads? When I start tomcat I get about 35 threads... are you running a standardish configuration or have you changed things? When I start tomcat, I get around the same threads as you. When the servlets get accessed, the thread count starts increasing. Are there really more than 1000 threads? When I start tomcat I get about 35 threads... are you running a standardish configuration or have you changed things? Hmm.. This could be a possibility.. The person who installed might have changed something.. When you say you've checked your servlets and none of them have threads that dont end - are you sure? My observation is this : On the server giving trouble, not all servlets show this problem. Our main servlet gives this trouble. Here's why I think the thread in the servlet is ending correctly. The last line of the thread has a print statement which executes and I see the display. Also, the last line of doPost has a print statement and that executes as well. Also, the same webapp runs on another machine with Tomcat 3.1, and there are no problems on that machine. So I think it could be as you suggest, a setup issue. It is probably not a bug in Tomcat, for this would be a very major bug - it brings down our server within a few hours. I am planning on replacing this with Tomcat 3.2.3 this weekend. But I wanted to investigate in the meantime to find out why its happening. The servlet in question talks to a server thru TCP-IP, and finally closes the connection before completing (which I have verified from the server). There dont seem to be any resources doing anything... I am thinking of doing a server-side profiling using JProbe to see whats going on. Any ideas (is there any way to get more info about the threads that Tomcat creates) ? Regards, Somik _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Out of Memory error - Tomcat 3.2.1
Somik, On Tue, 31 Jul 2001, Somik Raha wrote: Any ideas (is there any way to get more info about the threads that Tomcat creates) ? From what you said it does indeed sound like a configuration problem. I had thought from your earlier email that you were creating threads yourself in the servlets, but that doesn't sound like the case. I cant suggest how to best get more info about threads in tomcat, perhaps Craig could answer that? cheesr dim
How do I assing more memory to Tomcat
Hola I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Thanks
Re: How do I assing more memory to Tomcat
The TOMCAT_OPTS are really just JVM parameters. e.g.: TOMCAT_OPTS="-Xms16m -Xmx128m -native" or TOMCAT_OPTS="-Xms16m -Xmx128m" Run 'java -X' to get the options that your JVM supports. Carlos Lpez wrote: Hola I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Thanks -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How do I assing more memory to Tomcat
Carlos Lpez wrote: I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Easy - run "java" without any parameters; I guess what you want is "java -X"... then set TOMCAT_OPTS to "-XmxsomethingMB". (if you check tomcat.bat or tomcat.sh, TOMCAT_OPTS specifies the commandline options that are used for the JVM used to start Tomcat...) -- Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at ...It might be written "Mindfuck", but it's spelt "L-A-I-N"... np: Leak - Haze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How do I assing more memory to Tomcat
Thank a lot. Where is the best place to put TOMCAT_OPS? then 16m and 128 are Megabytes.?? The machine I install tomcat to has 2Gigabytes off memory, 500 Mg are asiggn to Sybase, the server will work as dns and mail server, what would by a optimun number off bytes to assign to tomcat, we tink our site will have like 4000 user? - Original Message - From: Geoff Lane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 19, 2001 10:29 AM Subject: Re: How do I assing more memory to Tomcat The TOMCAT_OPTS are really just JVM parameters. e.g.: TOMCAT_OPTS="-Xms16m -Xmx128m -native" or TOMCAT_OPTS="-Xms16m -Xmx128m" Run 'java -X' to get the options that your JVM supports. Carlos Lpez wrote: Hola I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Thanks -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How do I assing more memory to Tomcat
I put that in a wrapper script that I use to start and stop tomcat using the script that is shipped with the tomcat stuff. I also set the CLASSPATH, JAVA_HOME, TOMCAT_HOME, etc in that script so that it is really easy to just run the script and not have to worry about setting environment variables. Carlos Lpez wrote: Thank a lot. Where is the best place to put TOMCAT_OPS? then 16m and 128 are Megabytes.?? The machine I install tomcat to has 2Gigabytes off memory, 500 Mg are asiggn to Sybase, the server will work as dns and mail server, what would by a optimun number off bytes to assign to tomcat, we tink our site will have like 4000 user? - Original Message - From: Geoff Lane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 19, 2001 10:29 AM Subject: Re: How do I assing more memory to Tomcat The TOMCAT_OPTS are really just JVM parameters. e.g.: TOMCAT_OPTS="-Xms16m -Xmx128m -native" or TOMCAT_OPTS="-Xms16m -Xmx128m" Run 'java -X' to get the options that your JVM supports. Carlos Lpez wrote: Hola I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Thanks -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: monitoring memory in Tomcat
Hi, 1) How can I encourage or unfetter Tomcat so that it will allocate itself more memory for my Java process (what is the restriction and where is it handled). You can increase the heap size of the VM running tomcat. This can be done by adding the appropriated command line option to java.exe e.g. -mx96m in the bin/tomcat script. Don't know if there is a better way. This will of course not fix your problem if you have a true mem leak although. Bye Chistian -- Christian Mallwitz INTERSHOP Communications Germany Senior Software Engineerphone: +49 3641 894 334