Hi, Here are the steps to change memory parameters of Tomcat:
1. Stop Tomcat if running [ <install_dir>/bin/shutdown.sh ] 2. Set environment variable JAVA_OPTS to have the required memory changes e.g., JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx256m" 3. Start Tomcat [ <install_dir>/bin/startup.sh ] Location of "catalina.bat" is under the *bin* sub-folder of your Tomcat installation. HTH John -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Robert Burdick Sent: Tuesday, June 17, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat Connections and Memory Limits Thanks for the help, but I'm still not there. What is the syntax, and where in the catalina.bat file does it go? At 07:04 PM 6/16/2003 -0700, you wrote: >Robert, >Type 'java -X' to get the list of extended options for the JVM. Look at the >-Xms, -Xmx, and -Xss options. You then configure the catalina.bat file with >the settings. > >-Richard > >At 08:56 AM 6/16/2003 -0700, you wrote: >>Not a lot of session data being stored. In fact, one of the only things I >>was storing, a login flag, is no longer being stored in the session. >> >> How does one change the JVM heap parameters? >> >>Robert >> >>At 11:33 AM 6/16/2003 -0400, you wrote: >>>Robert, >>>Are you storing many objects in the user's sessions? You might encounter the >>>problem you are having if the data you are storing in your sessions is >>>large. How much memory do you have on your machine? You might want to tune >>>some of the heap parameters for the JVM. >>> >>>-Richard >>> >>> > -----Original Message----- >>> > From: Robert Burdick [SMTP:[EMAIL PROTECTED] >>> > Sent: Sunday, June 15, 2003 11:06 PM >>> > To: [EMAIL PROTECTED] >>> > Subject: Tomcat Connections and Memory Limits >>> > >>> > Hello All: >>> > >>> > I'm currently building an application that runs on Tomcat 4.1.24. I have >>> > been stress testing the application with Paesslers Webserver Stress >>> > Tool. When I run a scenario that simulates 20 concurrent users, hitting >>> > various JSP pages in the application every 15 seconds, the test succeeds >>> > with no errors. When I crank the number of simulated concurrent users to >>> > 40, I relatively quickly run out of memory,etc. >>> > >>> > >>> > Are there any default limits built into Tomcat that specify the number of >>> > concurrent users allowed, as well as any kind of memory limits? The >>> > interesting thing is that when the Tomcat logs say I'm running out of >>> > memory, the system information on the PC shows that I have plenty >>> > left. Thus I'm wondering if I'm hitting a Tomcat limitation of some >>> kind. >>> > >>> > Robert >>> > >>> > >>> > Robert Burdick >>> > >>> > [EMAIL PROTECTED] >>> > www.wAppearances.com >>> > (650)-917-8446 (office) >>> > (650)-906-3707 (cell) >>> > >>> > >>> ========================================================================== >>> > = >>> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >>> > JSP-INTEREST". >>> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >>> > DIGEST". >>> > >>> > Some relevant archives, FAQs and Forums on JSPs can be found at: >>> > >>> > http://java.sun.com/products/jsp >>> > http://archives.java.sun.com/jsp-interest.html >>> > http://forums.java.sun.com >>> > http://www.jspinsider.com >>> >>>========================================================================= == >>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >>>JSP-INTEREST". >>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >>>DIGEST". >>> >>>Some relevant archives, FAQs and Forums on JSPs can be found at: >>> >>> http://java.sun.com/products/jsp >>> http://archives.java.sun.com/jsp-interest.html >>> http://forums.java.sun.com >>> http://www.jspinsider.com >> >>Robert Burdick >> >>[EMAIL PROTECTED] >>www.wAppearances.com >>(650)-917-8446 (office) >>(650)-906-3707 (cell) >> >>========================================================================== = >>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >>JSP-INTEREST". >>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >>DIGEST". >> >>Some relevant archives, FAQs and Forums on JSPs can be found at: >> >>http://java.sun.com/products/jsp >>http://archives.java.sun.com/jsp-interest.html >>http://forums.java.sun.com >>http://www.jspinsider.com > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > >Some relevant archives, FAQs and Forums on JSPs can be found at: > >http://java.sun.com/products/jsp >http://archives.java.sun.com/jsp-interest.html >http://forums.java.sun.com >http://www.jspinsider.com Robert Burdick [EMAIL PROTECTED] www.wAppearances.com (650)-917-8446 (office) (650)-906-3707 (cell) =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com