RE: Error: ThreadPool: Pool exhausted with 100 threads.
I've gotten a similar problem with Tomcat 4.0.4. Somehow I am able to tie up all available processors (as if they were blocked and can't wake up). I've even tried interrupting the threads repeatedly to try and free them up again, but that doesn't seem to work. Anyone have experience or suggestions regarding this? -Original Message- From: Ben Litchfield [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Error: ThreadPool: Pool exhausted with 100 threads. [EmbeddedTomcatSX] 2002-09-11 14:55:12 - ThreadPool: Pool exhausted with 100 threads. I have gotten this message several times. I am running Jboss-2.4.1_Tomcat-3.2.3. The server become unresponsive at this point and needs to be restarted to fix it. Any suggestions. Ben Litchfield -- -- 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: Processor Availability
Thanks for the reply, Craig. I pretty much figured that was how it worked, but I was hoping for some kind of time out mechanism. Somehow, someway, I am able to lock up all 200 processors I defined for my Connector in TC (4.0.4, Java 1.4, Win2K). I'm guessing it is the machine that is at fault (very low powered), and that since each request potentially opens a connection to another machine, that may be the cause of the locking. Thanks! -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 4:19 PM To: Tomcat Users List Subject: Re: Processor Availability On Tue, 27 Aug 2002, Marinko, Jeff wrote: Date: Tue, 27 Aug 2002 13:45:05 -0700 From: Marinko, Jeff [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Processor Availability Greetings! Tomcat uses processors to service requests, as processors free up, they then move on and process other requests. Each processor also possesses a thread, so you can think of the set of available processors as a thread pool. My question is this: Is there any way to lock up all the processors? Sure ... if you send n+1 simultaneous requests when you've only got n available processors, you're going to run out (assuming that each request takes enough time for all of them to get submitted before the first ones start completing. Such things happen occasionally when you get spkies of request activity, but it's usually a transient condition. The analog in plain old web sites is when a site gets Slashdotted :-). Is there a maximum time before a processor becomes available again, assuming it is taking to long to process a request? The amount of time your app takes to process a request is totally up to your app. There's nothing Tomcat can do if you decide to execute a database query that takes 5 minutes because you're selecting through a million rows without using an index. The time it takes Tomcat to return the processor to the pool when a request is completed is as small as we can make it (a few milliseconds on a typical configuration). There's no motivation (or code in Tomcat) for keeping a processor unavailable any longer than it has to be. Besides processors, there might be contention for available threads and/or TCP/IP socket resources in your operating system. There are also VERY wide variations in the maximum number of threads a particular OS+JVM combination can support -- the Volano Report http://www.volano.com makes interesting reading in this regard. Any way to check how many processors are active/in use? There's nothing built in, but it would be straightforward to create a Valve that was stuck on the Engine (so it could see all requests to all webapps). Because this Valve will be executed by multiple threads at the same time, maintaining a simple counter that is incremented at the start of a request and decremented at the end would give you an active count. For the requests being processed by a particular webapp, you could do the same thing (and portably to boot) using a Filter mapped to /*. Jeff Craig -- 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]
Processor Availability
Greetings! Tomcat uses processors to service requests, as processors free up, they then move on and process other requests. My question is this: Is there any way to lock up all the processors? Is there a maximum time before a processor becomes available again, assuming it is taking to long to process a request? Any way to check how many processors are active/in use? Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
The box has 4GB of memory, and we can vary the swap space. Tomcat essentially can get as much memory as it wants, but the highest I've been able to set the JVM is -Xmx1600m, anything higher and it complains (error message was in a previous e-mail). Although I think you are correct, on Win32, 2GB is as high as we can go (unless someone can inform me otherwise). -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 6:13 PM To: Tomcat Users List Subject: Re: Checking Tomcat's Memory Sun's 1.4 server (not client) JVM can use a 4GB heap on a 64-bit SPARC box. Otherwise, I think you're pretty much stuck at 2GB. How much physical memory and swap space is installed? How much is actually available for allocation to the JVM when Tomcat gets kicked off? I also tend to adjust some of the other options. Something typical (for 1.3, some things have changed for 1.4) might be: -Xms512m -Xmx512m -XX:MaxPermSize=96m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=8 I certainly don't claim that those numbers are generally optimal, but changing them from their defaults can provide dramatic results. A certain commercial app server I've used would just up die until things were tweaked out a bit - YMMV. This might also be of interest (for Sun JVMs anyway): http://java.sun.com/docs/hotspot/index.html Sexton, George wrote: I really doubt it. I seem to recall that for Windows 32 bit applications the maximum address space of an application is 2GB. I would try reducing the second parameter to below 2GB and see what happens. I'm sure Sun has some boxes that could do this... -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 3:28 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Ah, there it is! So I would add additional JVM Option Number X with the -server, -Xms, -Xmx parameters and change JVM Option Count to account for this. I've managed to change the VM heap size through editing the catalina.bat script, however I get the following: Error occurred during initialization of VM Could not reserve enough space for object heap when I try to set my parameters at -Xms1024m -Xmx3072m (currently running at 128m and 1024m). Are there any VMs out there that can handle this kind of memory (1+ gigs to start)? Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:20 PM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName\Parameter s -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Checking Tomcat's Memory
Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
I was using requests as in total requests. I'm not talking about requests per second or transactions per second (TPS), I'm talking about the total number of requests over time (such as 20,000 requests, at any speed really). -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:47 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Hi, I've been following your thread a bit loosely, so I may have misunderstood something. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. All else aside, you expect that for a given server CPU usage will *not* increase with the number of simultaneous requests to the server??? Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
g isn't valid!?!? Grr... I got that information off of this mailing list, someone was using a similar configuration option that had g for gigabytes... Anyways, thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
Thanks for the idea, but there isn't a key/directory for HKEY_LOCAL_MACHINE\Service in either WinNT4 or Win2K registry. Not sure what the guy was talking about given the registry path does not exist... -Original Message- From: Hardt, Shannon [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:48 PM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Disclaimer: I am not running Tomcat as a service, so I can't confirm that this works. From the mailing list archive at: http://mikal.org/interests/java/tomcat/archive/view?mesg=57410 quote For Tomcat on NT as a service, you can set the -Xms and -Xmx in the registry. Its HKEY_LOCAL_MACHINE\Service\CurrentControlSet\Name of Service\Configuration. You can add new JVM Option Number X (and make sure to increment the JVM Option Count key) to contain the additional parameters. /quote Hope this helps. Shannon Hardt -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:40 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm not using jk_nt_service, although maybe I should if the service Tomcat installs cannot be configured. -Original Message- From: Etienne, Ingo (Goetzfried AG) [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:30 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Hi, if you are using jk_nt_service.exe try to modify this property in %CATALINA_HOME%\conf\jk\wrapper.properties: wrapper.cmd_line=$(wrapper.javabin) -Xrs -Djava.security.policy==$(wrapper.tomcat_policy) -Dtomcat.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start Then you have to restart the service... HTH Ingo -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 15. August 2002 21:08 To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm running Tomcat as a service. I've done echo %CATALINA_OPTS% and set just to make sure the variable is showing up. I'll try putting it in catalina.bat. Not sure why defining it as an environment variable does not work... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:57 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Hi, On unix, we put our CATALINA_OPTS settings in $CATALINA_HOME/bin/catalina.sh. Are you running tomcat as a service on NT or from the command line? If you're running from the command line, can you do echo %CATALINA_OPTS% before starting tomcat and verify the values are set correctly? Regardless of the above, I would try putting CATALINA_OPTS in catalina.bat. Can't hurt ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:49 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think
RE: OutOfMemory Error
To answer your first question, I'm assuming you only have so much memory, so if you keep allocating memory, you'll eventually run out and then you'll have problems. As long as the JVM can reclaim memory, you should be alright. For your second question, it should look something like this: JAVA -Xms128m -Xmx256m Where -Xmx256m is your maximum heap size. It gave you that error because the default is 80 megs (which I'm having trouble with), so setting the minimum above 80 megs gives you the error message. http://java.sun.com/j2se/1.4/docs/tooldocs/windows/java.html For the windows standard and non-standard options (such as -Xms and -Xmx). Hope that clears it up for you. -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:10 PM To: 'Tomcat Users List' Subject: OutOfMemory Error Hi, outofmemory problem crashes my Standalone Tomcat Server(NT 4, Tomcat 4.03). large images on the site. From reading on subject, seems I have to increase the JVM heap size. Question? I created a jsp page that shows me the Total memory and Free memory on the site. The free memory balances between a number and another getting smaller and smaller until it crashes. If I add memory, does that only mean its going to take longer before it crashes? Question? writing JAVA -Xms128m get Incompatible initial and maximum heap size Please help Pat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
Ah, there it is! So I would add additional JVM Option Number X with the -server, -Xms, -Xmx parameters and change JVM Option Count to account for this. I've managed to change the VM heap size through editing the catalina.bat script, however I get the following: Error occurred during initialization of VM Could not reserve enough space for object heap when I try to set my parameters at -Xms1024m -Xmx3072m (currently running at 128m and 1024m). Are there any VMs out there that can handle this kind of memory (1+ gigs to start)? Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:20 PM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName\Parameter s -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 1:59 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Thanks for the idea, but there isn't a key/directory for HKEY_LOCAL_MACHINE\Service in either WinNT4 or Win2K registry. Not sure what the guy was talking about given the registry path does not exist... -Original Message- From: Hardt, Shannon [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:48 PM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Disclaimer: I am not running Tomcat as a service, so I can't confirm that this works. From the mailing list archive at: http://mikal.org/interests/java/tomcat/archive/view?mesg=57410 quote For Tomcat on NT as a service, you can set the -Xms and -Xmx in the registry. Its HKEY_LOCAL_MACHINE\Service\CurrentControlSet\Name of Service\Configuration. You can add new JVM Option Number X (and make sure to increment the JVM Option Count key) to contain the additional parameters. /quote Hope this helps. Shannon Hardt -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:40 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm not using jk_nt_service, although maybe I should if the service Tomcat installs cannot be configured. -Original Message- From: Etienne, Ingo (Goetzfried AG) [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:30 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Hi, if you are using jk_nt_service.exe try to modify this property in %CATALINA_HOME%\conf\jk\wrapper.properties: wrapper.cmd_line=$(wrapper.javabin) -Xrs -Djava.security.policy==$(wrapper.tomcat_policy) -Dtomcat.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start Then you have to restart the service... HTH Ingo -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 15. August 2002 21:08 To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm running Tomcat as a service. I've done echo %CATALINA_OPTS% and set just to make sure the variable is showing up. I'll try putting it in catalina.bat. Not sure why defining it as an environment variable does not work... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:57 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Hi, On unix, we put our CATALINA_OPTS settings in $CATALINA_HOME/bin/catalina.sh. Are you running tomcat as a service on NT or from the command line? If you're running from the command line, can you do echo %CATALINA_OPTS% before starting tomcat and verify the values are set correctly? Regardless of the above, I would try putting CATALINA_OPTS in catalina.bat. Can't hurt ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:49 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid
RE: OutOfMemory Error
Because you are not indicating what .class file you want to run... Try: java -Xms128m -Xmx256 YourJavaClassHere That should do it -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 3:02 PM To: 'Tomcat Users List' Subject: RE: OutOfMemory Error Can someone tell me why when i go on the command prompt and write java -Xms128m -Xmx256m I get the Usage: java [-options] list Thanks. -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 4:24 PM To: 'Tomcat Users List' Subject: RE: OutOfMemory Error Thanks a lot, Still, I really feel stupid here, but I tried java -Xms128m -Xmx256m on the command prompt and get the Usage: java [-options] list Thanks -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 4:07 PM To: 'Tomcat Users List' Subject: RE: OutOfMemory Error To answer your first question, I'm assuming you only have so much memory, so if you keep allocating memory, you'll eventually run out and then you'll have problems. As long as the JVM can reclaim memory, you should be alright. For your second question, it should look something like this: JAVA -Xms128m -Xmx256m Where -Xmx256m is your maximum heap size. It gave you that error because the default is 80 megs (which I'm having trouble with), so setting the minimum above 80 megs gives you the error message. http://java.sun.com/j2se/1.4/docs/tooldocs/windows/java.html For the windows standard and non-standard options (such as -Xms and -Xmx). Hope that clears it up for you. -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:10 PM To: 'Tomcat Users List' Subject: OutOfMemory Error Hi, outofmemory problem crashes my Standalone Tomcat Server(NT 4, Tomcat 4.03). large images on the site. From reading on subject, seems I have to increase the JVM heap size. Question? I created a jsp page that shows me the Total memory and Free memory on the site. The free memory balances between a number and another getting smaller and smaller until it crashes. If I add memory, does that only mean its going to take longer before it crashes? Question? writing JAVA -Xms128m get Incompatible initial and maximum heap size Please help Pat -- 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]
Resend: Tomcat Connection Management/Performance
Greetings! I've been running some performance tests and have run into a slight problem. Connections are not being properly closed/timed out, and this causes a great deal of processing by Tomcat and incoming connections to be refused (as the connections reach acceptCount in server.xml). I am using a simple tool to do transactions per second (TPS), and for the most part Tomcat and my underlying servlet are performing very well (underlying servlet does not create any connections). However, after running for a while (several thousand requests), I get numerous connection refused errors. When I do a netstat -a on WinNT 4 or Win2K, I can see numerous connections between the test program/box and Tomcat sitting in a TIME_WAIT status. These connections persist even after I stop the test, and even after the connectionTimeout value I specified in server.xml. The numerous connections eventually go away, but not nearly quickly enough. Any advice on how to remedy this problem? Some details: Tomcat 4.0.4, WinNT/2K, JDK 1.3.1 and 1.4 (happens on both). In server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=100 maxProcessors=100 enableLookups=false redirectPort=8443 bufferSize=8192 acceptCount=2000 debug=0 connectionTimeout=5000/ If I'm interpreting the docs right, the connectionTimeout should be 5 seconds. Typically, the connections that are the problem don't go away for 30+ seconds, far longer than I can afford. Any suggestions would be great! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resend: Tomcat Connection Management/Performance
I'm fairly certain they are 1.0 requests. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:49 PM To: Tomcat Users List Subject: RE: Resend: Tomcat Connection Management/Performance Just out of curiosity, does your test bed do HTTP 1.0 requests, or HTTP 1.1 requests? Does it explicitly set a Connection: close header in the request if you are doing http 1.1 requests? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 3:41 PM To: 'Tomcat Users List (E-mail)' Subject: Resend: Tomcat Connection Management/Performance Greetings! I've been running some performance tests and have run into a slight problem. Connections are not being properly closed/timed out, and this causes a great deal of processing by Tomcat and incoming connections to be refused (as the connections reach acceptCount in server.xml). I am using a simple tool to do transactions per second (TPS), and for the most part Tomcat and my underlying servlet are performing very well (underlying servlet does not create any connections). However, after running for a while (several thousand requests), I get numerous connection refused errors. When I do a netstat -a on WinNT 4 or Win2K, I can see numerous connections between the test program/box and Tomcat sitting in a TIME_WAIT status. These connections persist even after I stop the test, and even after the connectionTimeout value I specified in server.xml. The numerous connections eventually go away, but not nearly quickly enough. Any advice on how to remedy this problem? Some details: Tomcat 4.0.4, WinNT/2K, JDK 1.3.1 and 1.4 (happens on both). In server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=100 maxProcessors=100 enableLookups=false redirectPort=8443 bufferSize=8192 acceptCount=2000 debug=0 connectionTimeout=5000/ If I'm interpreting the docs right, the connectionTimeout should be 5 seconds. Typically, the connections that are the problem don't go away for 30+ seconds, far longer than I can afford. Any suggestions would be great! Jeff -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resend: Tomcat Connection Management/Performance
I've verified the behavior. The connection is closed roughly 5 seconds after I request it (my timeout is set to 5 seconds, so that makes sense). Although that makes sense, since we specified a 1.1 request... I tried it using HTTP/1.0 and the connection closed immediately. I don't see any problems with this behavior. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 3:05 PM To: Tomcat Users List Subject: RE: Resend: Tomcat Connection Management/Performance This would be worth verifying. I just used telnet to play with the HTTP connector. HTTP 1.0 requests are closed immediately after the data is sent. HTTP 1.1 requests are not closed until 60 seconds have elapsed. The HTTP connector also seems to ignore the Connection: Close directive. You can verify this behavior by using telnet to connect to the specified port and doing some manual requests: GET /your_servlet_URL HTTP/1.1 Host: yourhostname.com and press enter twice. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 3:57 PM To: 'Tomcat Users List' Subject: RE: Resend: Tomcat Connection Management/Performance I'm fairly certain they are 1.0 requests. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:49 PM To: Tomcat Users List Subject: RE: Resend: Tomcat Connection Management/Performance Just out of curiosity, does your test bed do HTTP 1.0 requests, or HTTP 1.1 requests? Does it explicitly set a Connection: close header in the request if you are doing http 1.1 requests? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 3:41 PM To: 'Tomcat Users List (E-mail)' Subject: Resend: Tomcat Connection Management/Performance Greetings! I've been running some performance tests and have run into a slight problem. Connections are not being properly closed/timed out, and this causes a great deal of processing by Tomcat and incoming connections to be refused (as the connections reach acceptCount in server.xml). I am using a simple tool to do transactions per second (TPS), and for the most part Tomcat and my underlying servlet are performing very well (underlying servlet does not create any connections). However, after running for a while (several thousand requests), I get numerous connection refused errors. When I do a netstat -a on WinNT 4 or Win2K, I can see numerous connections between the test program/box and Tomcat sitting in a TIME_WAIT status. These connections persist even after I stop the test, and even after the connectionTimeout value I specified in server.xml. The numerous connections eventually go away, but not nearly quickly enough. Any advice on how to remedy this problem? Some details: Tomcat 4.0.4, WinNT/2K, JDK 1.3.1 and 1.4 (happens on both). In server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=100 maxProcessors=100 enableLookups=false redirectPort=8443 bufferSize=8192 acceptCount=2000 debug=0 connectionTimeout=5000/ If I'm interpreting the docs right, the connectionTimeout should be 5 seconds. Typically, the connections that are the problem don't go away for 30+ seconds, far longer than I can afford. Any suggestions would be great! Jeff -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Connection Management/Performance
Greetings! I've been running some performance tests and have run into a slight problem. Connections are not being properly closed/timed out, and this causes a great deal of processing by Tomcat and incoming connections to be refused (as the connections reach acceptCount in server.xml). I am using a simple tool to do transactions per second (TPS), and for the most part Tomcat and my underlying servlet are performing very well (underlying servlet does not create any connections). However, after running for a while (several thousand requests), I get numerous connection refused errors. When I do a netstat -a on WinNT 4 or Win2K, I can see numerous connections between the test program/box and Tomcat sitting in a TIME_WAIT status. These connections persist even after I stop the test, and even after the connectionTimeout value I specified in server.xml. The numerous connections eventually go away, but not nearly quickly enough. Any advice on how to remedy this problem? Some details: Tomcat 4.0.4, WinNT/2K, JDK 1.3.1 and 1.4 (happens on both). In server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=false redirectPort=8443 bufferSize=8192 acceptCount=2000 debug=0 connectionTimeout=5000/ If I'm interpreting the docs right, the connectionTimeout should be 5 seconds. Typically, the connections that are the problem don't go away for 30+ seconds, far longer than I can afford. Any suggestions would be great! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Configuration for High TPS
I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuration for High TPS
I knew I forgot a detail Running Tomcat 4.0.3 (or 4.0.4, I'll likely upgrade to that version soon). Quick follow up on this. I'm testing a servlet I've written that does some caching, and is very quick once it has cached all of its data. During the first run, I test it going 40 TPS (over several thousand requests). Then I start upping the TPS (same set of requests), and I plan to stop at 200 TPS. Now here's an intresting problem. My tool has reported on several runs that it cannot connect within only a second or two of starting the tool. With an accept count of over 1000, I find this rather odd as it should take at least 5 seconds at 200 TPS to fill an acceptCount of 1000 (typically the lowest I've set acceptCount). I normally run into can't connect errors early during a test run, when my servlet is still caching its data (still working on a way to better handle that problem also). Any insight would be appreciated. Thanks! Jeff -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:23 AM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- 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: Configuration for High TPS
Where can I find documentation on the Coyote connector (such as the exact class name)? What is really bothering me (currently), is once I start getting connection errors, my CPU usage (roughly) doubles, and I get connection errors much more easily (as if acceptCount was reduced somehow). Any ideas on the cause/solution for this? -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:31 AM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS what version of tomcat are you running? In the 4+ versions the Coyote HTTP connector is supposed to perform better. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:23 PM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuration for High TPS
I have been looking through those online docs looking for any configuration info that might be useful, but I'm using 4.0.3, so I've been reading the 4.0 docs. It doesn't appear this is available in 4.0 (as it is under the 4.1 docs). Thanks for the link though! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:52 AM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html John Turner [EMAIL PROTECTED] -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 1:50 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS Where can I find documentation on the Coyote connector (such as the exact class name)? What is really bothering me (currently), is once I start getting connection errors, my CPU usage (roughly) doubles, and I get connection errors much more easily (as if acceptCount was reduced somehow). Any ideas on the cause/solution for this? -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:31 AM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS what version of tomcat are you running? In the 4+ versions the Coyote HTTP connector is supposed to perform better. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:23 PM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuration for High TPS
I was aware of that, but I thought I might want to leave that on for others using Tomcat. I'll turn it off for the tests, thanks. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 11:01 AM To: Tomcat Users List Subject: RE: Configuration for High TPS You might want to set enableLookups=false. You realize, that's doing a reverse DNS lookup for every connection don't you? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 09 August, 2002 11:23 AM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuration for High TPS
It can do at least 150... :-) -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 11:07 AM To: Tomcat Users List Subject: RE: Configuration for High TPS Can your DNS server handle 200 reverse lookups per second? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 09 August, 2002 12:04 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS I was aware of that, but I thought I might want to leave that on for others using Tomcat. I'll turn it off for the tests, thanks. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 11:01 AM To: Tomcat Users List Subject: RE: Configuration for High TPS You might want to set enableLookups=false. You realize, that's doing a reverse DNS lookup for every connection don't you? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 09 August, 2002 11:23 AM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Connection/acceptCount Problem
I've mentioned this before in my Configuration e-mail, but it appears important enough for me to mention it again (as there hasn't been a response, and it is a pretty serious problem IMO). When I run tests at a high TPS, I might encounter a can't connect error (looks like I've reached the acceptCount limit). That's fine with me, so I stop the test and get ready to start another. When I start the next test (I usually wait a few seconds, let tomcat's CPU usage drop off), I immediately start getting can't connect errors, which should not be possible in the amount of time I'm getting them (TPS of 100, acceptCount 1000, that should be 10 seconds before I should get these errors, right?) My only fix for this problem is to shutdown and restart Tomcat, which is not really a solution. Is this a known problem or bug? Possible I misconfigured something? Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuration for High TPS
I plan to do pre-caching later. Currently my first test run is the unlucky user, which I'm calling a cold start and seeing how well it performs from a clear cache. No, I'm running TC stand-alone currently. Running it with Apache will improve performance? I'll look into it, but for now I'm running stand-alone. -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 11:32 AM To: Tomcat Users List Subject: RE: Configuration for High TPS Have you integrated Tomcat with another webserver for the static content, assuming you have some. That would more than likely improve performance. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:52 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html John Turner [EMAIL PROTECTED] -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 1:50 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS Where can I find documentation on the Coyote connector (such as the exact class name)? What is really bothering me (currently), is once I start getting connection errors, my CPU usage (roughly) doubles, and I get connection errors much more easily (as if acceptCount was reduced somehow). Any ideas on the cause/solution for this? -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:31 AM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS what version of tomcat are you running? In the 4+ versions the Coyote HTTP connector is supposed to perform better. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:23 PM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- 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] -- 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] -- 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: Connection/acceptCount Problem
JDK: 1.4 and 1.3.1 (currently 1.4) OS: WinNT 4, no service packs on test machine enableLookups: Maybe slight improvement. I already stated it could handle 150 TPS with it set to true. test tool: custom program. I did not write it, only using it. Not running IIS, but I'm pretty sure it is not the tool. Currently testing Tomcat versus some custom C++ code (using the same tool for both), and the connection problem does not happen with the C++ code. Like I said before, I'm pretty sure it's Tomcat. Once the problem starts happening, Tomcat's CPU usage nearly doubles when running relatively low TPS values (like 40). -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 11:50 AM To: Tomcat Users List Subject: RE: Connection/acceptCount Problem You really aren't giving enough detail in your messages. You are trying to treat a complex problem (hundreds of transactions per second) as a simple, something is wrong with one thing issue. Scaling performance to these levels is usually a combination of factors. There are rarely magic bullets when it comes to things like this. What JDK are you using? Have you tried using different JDKs? What operating system are you using? You said WinNT in your initial post. Is that WinNT 4? What service packs have been applied? You never posted a response as to whether setting enableLookups=false made any difference. What test tool are you using? Are you sure the issue is in Tomcat, and not in the test tool/station? I assume you have IIS installed. Have you tried using the same test tool to put 200 connections per second to IIS? Have you tried scaling your transactions per second upwards and observing the behavior at different loads? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 09 August, 2002 12:32 PM To: [EMAIL PROTECTED] Subject: Connection/acceptCount Problem I've mentioned this before in my Configuration e-mail, but it appears important enough for me to mention it again (as there hasn't been a response, and it is a pretty serious problem IMO). When I run tests at a high TPS, I might encounter a can't connect error (looks like I've reached the acceptCount limit). That's fine with me, so I stop the test and get ready to start another. When I start the next test (I usually wait a few seconds, let tomcat's CPU usage drop off), I immediately start getting can't connect errors, which should not be possible in the amount of time I'm getting them (TPS of 100, acceptCount 1000, that should be 10 seconds before I should get these errors, right?) My only fix for this problem is to shutdown and restart Tomcat, which is not really a solution. Is this a known problem or bug? Possible I misconfigured something? Jeff -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuration for High TPS
Thanks Mark! That's some good advice. I haven't moved on to tweaking the JVM yet, I know there are some options I can use to increase performance, but I'm not to that point yet. I'm sticking with the standalone for simplicity. I'll likely turn this over to someone else, and the fewer parts, the better. We examined using Apache and JServ, and a coworker informed me the installation wasn't that straightforward. The logging tip is a good one, thanks! -Original Message- From: Mark Annal [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 11:58 AM To: Tomcat Users List Subject: RE: Configuration for High TPS We ran some high TPS testing recently using a Sun 220R running Solaris 8. We were running an Apache/Tomcat combination using the mod_webapp connector. Just running a dumb simple servlet we were topping out at 165 tps and 80% CPU. We tried repeating the test using Tomcat standalone trying to figure out where the bottleneck was. We still topped out at 165 tps despite everything we tried to tweak. Our CPU was drastically reduced though to 40%. After running some e-mails through this list, the consensus was that we needed to tweak with our JVM as this was probably the cause of our ceiling. Not the web server configuration and not the horsepower on the machine. Actually, in standalone mode, we could not drive our CPU load beyond 40%. So far, we haven't had a chance to research this further and our production app is not pushing any limits just yet so its on the back burner. By the way, check how much stuff your Tomcat installation is logging. The default configuration is pretty verbose and this consumes large amounts of horsepower writing it all to disk. WinNT isn't overly good at walking and chewing gum and a lot of disk activity can drain resources pretty quickly. _ Mark Annal e-mail: [EMAIL PROTECTED] TARGUSinfo phone : (585) 598-7011 255 Woodcliff Drive fax : (585) 598-7001 Fairport, NY 14450 web : www.targusinfo.com _ -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:32 PM To: Tomcat Users List Subject: RE: Configuration for High TPS Have you integrated Tomcat with another webserver for the static content, assuming you have some. That would more than likely improve performance. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:52 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html John Turner [EMAIL PROTECTED] -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 1:50 PM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS Where can I find documentation on the Coyote connector (such as the exact class name)? What is really bothering me (currently), is once I start getting connection errors, my CPU usage (roughly) doubles, and I get connection errors much more easily (as if acceptCount was reduced somehow). Any ideas on the cause/solution for this? -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:31 AM To: 'Tomcat Users List' Subject: RE: Configuration for High TPS what version of tomcat are you running? In the 4+ versions the Coyote HTTP connector is supposed to perform better. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:23 PM To: Tomcat Users List Subject: Configuration for High TPS I'm attempting to configure Tomcat for a test environment to handle a high number of transactions per second (TPS) and would like any advice others may like to contribute. The machine is a fairly powerful dual processor machine (1+ GHz) running WinNT. I'm using a tool to send requests, where I can specify the TPS and number of requests total to send. I'm running the following with ok results, but I'm interested in any suggestions or better explanations of some of the fields: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=200 maxProcessors=200 enableLookups=true redirectPort=8443 acceptCount=2000 debug=0 connectionTimeout=6/ Perhaps my biggest problem is the number of connections Tomcat accepts fills up rather quickly, some of the connections my tool generates are refused (presumably due to the acceptCount limit being reached, and I have increased it a couple times). Any advice would be appreciated! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL
RE: Servlet not working
The code looks alright... Do the example servlets work? Try putting the .class file in with the examples and try using it that way. .class file: Tomcat/webapps/examples/WEB-INF/classes URL: http://localhost:8080/examples/servlet/ExampleServlet (or HelloWorld just to make sure it works). Hope that helps! Jeff -Original Message- From: Laura Findley [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 3:08 PM To: Tomcat Users List Subject: Servlet not working I typed in my first example servlet today cannot seem to get it working. I made sure all the following were done: 1) Classpath is set CATALINA_HOME=$CATALINA_HOME:/usr/java/jakarta-tomcat-4.0.4 JAVA_HOME=/usr/java/j2sdk1.4.0 PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.0/bin CLASSPATH=$CLASSPATH:/home/lfindle/java:/usr/java/jakarta-tomcat-4.0.4/commo n/lib/servlet.jar:. export CATALINA_HOME export JAVA_HOME export PATH export CLASSPATH 2) Put the servlet in /usr/java/usr/java/jakarta-tomcat-4.0.4/webapps/begjsp-ch01/WEB-INF/classes/ ExampleServlet.java Compiled it from there. Shutdown restarted Tomcat. I went to http://localhost:8080/begjsp-ch01/servlet/ExampleServlet get 404 Error message. Does anyone have any suggestions? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Configuring Tomcat for Numerous Connections/Transactions
Greetings! I'm fairly new to configuring Tomcat, so I was hoping for a little advice or pointers to specific documentation. I'm running a server that has to service numerous connection/transactions per second. Aside from setting minProcesses and maxProcesses to higher values (than the default), any advice for handling numerous connections? Specifically, it has to handle upwards of 75 transactions per second and the box is quite capable of this, just looking for some good configuration advice. Thanks! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuring Tomcat for Numerous Connections/Transactions
Dual 1 GHz Intel machine, running WinNT (or 2K). No database involved. That help? Thanks! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 12:25 PM To: 'Tomcat Users List' Subject: RE: Configuring Tomcat for Numerous Connections/Transactions Server platform? OS? Is there a database involved? If so, which one? John Turner [EMAIL PROTECTED] -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 3:19 PM To: Tomcat Users List Subject: Configuring Tomcat for Numerous Connections/Transactions Greetings! I'm fairly new to configuring Tomcat, so I was hoping for a little advice or pointers to specific documentation. I'm running a server that has to service numerous connection/transactions per second. Aside from setting minProcesses and maxProcesses to higher values (than the default), any advice for handling numerous connections? Specifically, it has to handle upwards of 75 transactions per second and the box is quite capable of this, just looking for some good configuration advice. Thanks! Jeff -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Resend (again): 4.0.3: Servlets Loaded Twice?
In reference to servlets loading twice or init() being called twice... Craig R. McClanahan [[EMAIL PROTECTED]] wrote: // If you are getting servlets loaded twice, your configuration is messed up. The most likely way to cause this to happen is to have a directory under webapps (so that it gets automatically deployed) plus a Context element in server.xml that points at the same directory, but with another context path. What happens here is that you're initializing two webapps from the same directory -- and the initialization happens for each of them. // This turns out to be my problem. I define the context in server.xml and all I have in my webapps web.xml file is a servlet mapping and an init-param. I've been looking in the archives for this mailing list, but I haven't found a solution to this problem. Actually, I find *several* references to an e-mail that addresses this problem, yet as far as I can tell they refer to: http://mikal.org/interests/java/tomcat/archive/view?mesg=54195 However, this does not tell me steps I need to take to correct the problem. Thanks for helping to identify the cause of the problem, but any advice on the steps to solve it? A config change in web.xml? If the answer is in the archives, how about the search words I need to use to find it (or maybe a link)? Thanks! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resend (again): 4.0.3: Servlets Loaded Twice?
If you are getting servlets loaded twice, your configuration is messed up. The most likely way to cause this to happen is to have a directory under webapps (so that it gets automatically deployed) plus a Context element in server.xml that points at the same directory, but with another context path. What happens here is that you're initializing two webapps from the same directory -- and the initialization happens for each of them. Turns out this describes my problem. I was following the examples context (which must end up reloading servlets twice as well, right?) and an onjava article I found online...I guess these weren't quite as accurate as I had hoped for. Any suggestions about fixing this problem? Thanks! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Resend: 4.0.3: Servlets Loaded Twice?
Resending since I did not see a response... I'd like to do a lot of start up initialization, but if Tomcat forces the servlet to do this two times, it might not be worth it. Just a quick question... I've noticed that all Servlets are loaded twice on Tomcat. I'm running 4.0.3 on Win2K, and just by looking at the output I can see the same servlet is loaded twice in quick succession (also, HttpServlet.init gets called twice, but that's from loading twice). Is this a known bug/feature? Any way to get a servlet to load only once (such as those servlets that have a great deal of initialization)? Thanks! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
4.0.3: Servlets Loaded Twice?
Just a quick question... I've noticed that all Servlets are loaded twice on Tomcat. I'm running 4.0.3 on Win2K, and just by looking at the output I can see the same servlet is loaded twice in quick succession (also, HttpServlet.init gets called twice, but that's from loading twice). Is this a known bug/feature? Any way to get a servlet to load only once (such as those servlets that have a great deal of initialization)? Thanks! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Question about home page path
I would like an answer to a similar question myself. Except for a servlet instead of a jsp or html file. I know this can be done to some extent using servlet tags in the web.xml file, but any info would be great! Later. -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 1:15 PM To: [EMAIL PROTECTED] Subject: Question about home page path We all know how fads come and go. Right now, one of the fads among large websites seems to be hide all path info - at least on the home page. Is there any (easy) way to accomplish this in Tomcat? Basically, I want to have http://www.mydomain.com show up in home page, even though /myappdir/index.jsp is being served up. Thanks. -- 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]