Re: Tomcat 4.1x running as NT Service Issue
I told you wrong about how to set the memory limits when running as a service. You can set the memory options in the Windows registry using regedit. In regedit, open HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Apache Tomcat 4.1\Parameters Add a string value named: JVM Option Number 3 and set it's value to -Xms100m Add a string value named: JVM Option Number 4 and set it's value to -Xmx100m Change the JVM Option Count to 5 (was 3 at least on my machine. The value of this field must match the number of JVM Option Number x values). You can also write log statements to check allocated and available memory. Following is an example thread that we used. I've cut out a few parts that are specific to our application and the formatting is screwed up from cutting and pasting it, but should be close enough to get you going. public class MemoryMonitor implements Runnable { private boolean done = false; private Runtime rt = Runtime.getRuntime(); public MemoryMonitor() { Thread theThread = new Thread(this); theThread.setDaemon(true); theThread.setPriority(Thread.MIN_PRIORITY); theThread.start(); } public void run() { while (!done) { try { long freeMemory = rt.freeMemory()/1024; long totalMemory = rt.totalMemory()/1024; long memoryUsed = (totalMemory-freeMemory)/1024; long allocatedMemory = (totalMemory/1024); AppLog.info([Memory Monitor] -- +new Timestamp(System.currentTimeMillis()).toString()+ --- Memory Allocated: +(int)allocatedMemory+k); AppLog.info([Memory Monitor] -- +new Timestamp(System.currentTimeMillis()).toString()+ --- Memory Used: +(int)memoryUsed+k); rt.gc(); if(allocatedMemorytotalMemory){ } Thread.sleep( MemoryMonitorProperties.getInstance().getCheckMemoryInterval()); } catch (Exception ie) { AppLog.error(AppError.getStackTraceAsString(ie)); } } AppLog.info(MemoryMonitor terminated.); } } - Original Message - From: Robert Porter [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 11:34 PM Subject: RE: Tomcat 4.1x running as NT Service Issue I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application
RE: Tomcat 4.1x running as NT Service Issue
I dont think the java versi0on is necessarily a problem however what you need to remeber is when you install the service, you fix the settings of the JVM. If you want to control memory settings, you need to do it in the tomcat.exe command which you run to install the service. My server is down at the moment so I cant give you an example but if you look in tomcat.exe help you can see how to add java options, and one of them will need to be somthing like what was suggested below (ie -Xmx128m). As an aside, I personally wouldnt do the -Xms128m as well because this will mean that that much memory is used up irrespective of requirements. Whilst this configuration is good in a server environment, in a client where memory is more of a premium, you should only default to what you expect it to use on a minimal or average basis. cheers Pete Kiss Technologies http://www.kisstechnologies.co.uk/ 4, Percy Street London W1T 1DF Phone numbers: Phone 020 7692 9922 Fax 020 7692 9923 Robert Porter [EMAIL PROTECTED] 03/08/2003 04:49 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 5:26 AM To: Tomcat Users List Subject: RE: Tomcat 4.1x running as NT Service Issue I dont think the java versi0on is necessarily a problem however what you need to remeber is when you install the service, you fix the settings of the JVM. If you want to control memory settings, you need to do it in the tomcat.exe command which you run to install the service. My server is down at the moment so I cant give you an example but if you look in tomcat.exe help you can see how to add java options, and one of them will need to be somthing like what was suggested below (ie -Xmx128m). As an aside, I personally wouldnt do the -Xms128m as well because this will mean that that much memory is used up irrespective of requirements. Whilst this configuration is good in a server environment, in a client where memory is more of a premium, you should only default to what you expect it to use on a minimal or average basis. cheers Pete Kiss Technologies http://www.kisstechnologies.co.uk/ 4, Percy Street London W1T 1DF Phone numbers: Phone 020 7692 9922 Fax 020 7692 9923 Robert Porter [EMAIL PROTECTED] 03/08/2003 04:49 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app
RE: Tomcat 4.1x running as NT Service Issue
The settings are not controlled in the startup.bat - if you want to control them from the command line, you set the environment variable JAVA_OPTS with them. The default settings for a Sun JVM is to allow a max heap of 64m - if you try to exceed this, java.lang.OutOfMemoryException s will be thrown and by and large the whole thing will fall over. You can probably see these in the log file if you look. Again if you havent specified anything in the service setup, it will probably run with 64m of memory as well. Pete Robert Porter [EMAIL PROTECTED] 03/08/2003 14:27 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 5:26 AM To: Tomcat Users List Subject: RE: Tomcat 4.1x running as NT Service Issue I dont think the java versi0on is necessarily a problem however what you need to remeber is when you install the service, you fix the settings of the JVM. If you want to control memory settings, you need to do it in the tomcat.exe command which you run to install the service. My server is down at the moment so I cant give you an example but if you look in tomcat.exe help you can see how to add java options, and one of them will need to be somthing like what was suggested below (ie -Xmx128m). As an aside, I personally wouldnt do the -Xms128m as well because this will mean that that much memory is used up irrespective of requirements. Whilst this configuration is good in a server environment, in a client where memory is more of a premium, you should only default to what you expect it to use on a minimal or average basis. cheers Pete Kiss Technologies http://www.kisstechnologies.co.uk/ 4, Percy Street London W1T 1DF Phone numbers: Phone 020 7692 9922 Fax 020 7692 9923 Robert Porter [EMAIL PROTECTED] 03/08/2003 04:49 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior
Re: Tomcat 4.1x running as NT Service Issue
If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1x running as NT Service Issue
thanks been looking for something like that for ages! Tim Funk [EMAIL PROTECTED] 03/08/2003 16:52 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:52 AM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
well in that case the tomcat.exe included with the tomcat dist is fine once you have fixed your setup. It is simply run as a batch script, or as part of an install (you execute tomcat.exe once with the relevant parameters to install it) Pete Robert Porter [EMAIL PROTECTED] 03/08/2003 18:01 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:52 AM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
I reinstalled Tomcat using the ServiceCfg tool mentioned previously and badda boom badda bing! No more creeping memory loss, at least not over the past several hours. I set some limits on memory usage etc. Am now trying to determine what exactly, I have to pass as parameters to the tomcat.exe service installation tool. I feel like I am missing something obvious, when you install the Tomcat service with the provided tomcat.exe what happens to all the JVM parameters? Are they set in the registry? Environment, where? But, I can at last see daylight again! Thanks to all for your help! Cheers, Bob Porter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 1:04 PM To: Tomcat Users List Subject: RE: Tomcat 4.1x running as NT Service Issue well in that case the tomcat.exe included with the tomcat dist is fine once you have fixed your setup. It is simply run as a batch script, or as part of an install (you execute tomcat.exe once with the relevant parameters to install it) Pete Robert Porter [EMAIL PROTECTED] 03/08/2003 18:01 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:52 AM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - 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: Tomcat 4.1x running as NT Service Issue
Appears I spoke to soon. While memory usage is much better during the application execution, it still eventually begins a steep climb in terms of memory consumption, even with setting the various memory parameters on the JVM. What is most baffling to me is that this behavior does not occur when Tomcat is not running as a service. Anyone have any clues?? Bob Porter -Original Message- From: Robert Porter [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 5:39 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1x running as NT Service Issue I reinstalled Tomcat using the ServiceCfg tool mentioned previously and badda boom badda bing! No more creeping memory loss, at least not over the past several hours. I set some limits on memory usage etc. Am now trying to determine what exactly, I have to pass as parameters to the tomcat.exe service installation tool. I feel like I am missing something obvious, when you install the Tomcat service with the provided tomcat.exe what happens to all the JVM parameters? Are they set in the registry? Environment, where? But, I can at last see daylight again! Thanks to all for your help! Cheers, Bob Porter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 1:04 PM To: Tomcat Users List Subject: RE: Tomcat 4.1x running as NT Service Issue well in that case the tomcat.exe included with the tomcat dist is fine once you have fixed your setup. It is simply run as a batch script, or as part of an install (you execute tomcat.exe once with the relevant parameters to install it) Pete Robert Porter [EMAIL PROTECTED] 03/08/2003 18:01 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1x running as NT Service Issue Found that while googling my issue, it looks very promising, but I need something we can include in a custom setup that will be run by users. Although that tool will help in testing! Seen anything like it for deploying webapps? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 11:52 AM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue If you need to run NT as a service, use this tool to set it up. It makes life pretty nice. http://web.bvu.edu/staff/david/tcservcfg/ -Tim http://jakarta.apache.org/tomcat/faq/windows.html Robert Porter wrote: I agree with your view on memory usage on a client, but what I am not clear on is do those settings constitute a hard limit for Tomcat/JVM? And if so, what happens when the limit is exceeded, or it attempts to. What we see now is a gradual increase in memory usage over a 10 - 15 minute period, followed by an abend of the Tomcat service. If we run the Tomcat session in a window, using the stock Startup.bat file included with the binary distribution memory usage stays flat. This is what led me to wonder if some of these memory parameters to the JVM (during the install of the service) might be required. I am guessing that the stock install of the service does not set any limit on memory usage? Is this true? Thanks in advance! Cheers, Bob Porter - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1x running as NT Service Issue
I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1x running as NT Service Issue
I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [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: Tomcat 4.1x running as NT Service Issue
I am not sure why we are not running 1.4, but the image from corporate has 1.3.1 and we have been told to live with it. We are running pretty much the same configuration from what you describe but with drastically different results. I am checking on JVM settings, and I will try what you suggest. The laptops are Dell and IBM late models with 256 MB of memory and large fast drives so I don't think it's the hardware. All running W2K Pro with SQL Server 2000 Std Ed. We are using an older JDBC driver, what JDBC driver are you using? -Original Message- From: Nathan Ward [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 10:27 PM To: Tomcat Users List Subject: Re: Tomcat 4.1x running as NT Service Issue I'm not sure that this is it, but you might try setting the JVM min and max memory limits when starting Tomcat by adding the following to $CATALINA_HOME\bin\catalina.bat: set JAVA_OPS = -Xms100m -Xmx100m Default for the JVM I believe should be 64mb, but who knows. Why are you using jdk 1.3.1? Do you have existing code that is not compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under Windows 2000 Server accessing an SQL Server database on the same machine with JDK 1.4.1_01 and it is working. Nathan - Original Message - From: Robert Porter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 02, 2003 6:57 PM Subject: Tomcat 4.1x running as NT Service Issue I have scanned all the archives, and have seen some issues that are similar but not quite the same so I am posting this request. We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000 SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is hosting 2 servlets that talk to a local SQL Server 2000 database on the same machine. A VB 6 client is talking to the servlets via http post etc, and exchanging XML documents for requests and replies. Running as a Service, with JDK 1.3.1 as the JVM the service will crash after about 10 minutes of activity. Just prior to the crash, available memory will decrease to 0 and the system will slow to a crawl with a lot of disk activity, paging I imagine. Running Tomcat in a window alleviates the problem entirely, so I am assuming there are some parameters that are being passed via the Startup.bat file that are not happening with the service. Or perhaps to the JVM, I am very new to Tomcat so I am not sure how to accomplish this. However we really want to have Tomcat running as a service since this is a laptop app being deployed to hundreds of our users, and we don't want them mucking about with the Window created by running Tomcat as a windowed service. Plus, having it run as a service means it is one less thing to worry about in our application code. However we can't deploy the app if it crashes every 10 minutes. Any help or suggestions would be appreciated. RP2C Inc http://www.rp2c.com [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]