Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 35563 invoked from network); 15 Aug 2002 19:40:34 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Aug 2002 19:40:34 -0000 Received: (qmail 19100 invoked by uid 97); 15 Aug 2002 19:40:38 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 19058 invoked by uid 97); 15 Aug 2002 19:40:38 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 19042 invoked by uid 98); 15 Aug 2002 19:40:37 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Server-Uuid: A30EB3EE-CD20-42DB-89B9-CCAEC3F48615 Message-ID: From: "Marinko, Jeff" To: "'Tomcat Users List'" Subject: RE: Checking Tomcat's Memory Date: Thu, 15 Aug 2002 12:40:02 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1142DC1E2968455-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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:Ingo.Etienne@Dresdner-Bank.com] 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:Jeff_Marinko@intuit.com] 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:Yoav.Shapira@mpi.com] 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:Jeff_Marinko@intuit.com] >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:gsexton@mhsoftware.com] >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:Jeff_Marinko@intuit.com] >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:gsexton@mhsoftware.com] >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:Jeff_Marinko@intuit.com] >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: > >For additional commands, e-mail: > > > >-- >To unsubscribe, e-mail: > >For additional commands, e-mail: > > > > >-- >To unsubscribe, e-mail: > >For additional commands, e-mail: > > > >-- >To unsubscribe, e-mail: > >For additional commands, e-mail: > > > > >-- >To unsubscribe, e-mail: unsubscribe@jakarta.apache.org> >For additional commands, e-mail: help@jakarta.apache.org> -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: