Check this out, it is an earlier thread that was running on this list
regarding my experience with the same problem.
I've posted the entire thread below

OR

If you want to make it easier on yourself, just paste the stuff below into a
.bat file and execute it from the bin folder under tomcat, and
it will re-install the service with the parameters specified.  You will have
to make sure that it has your correct directories (jdk, tomcat home, etc)
and
that the server memory params are what you want

tomcat.exe -install "Apache_Tomcat"
"C:\j2sdk1.4.1_02\jre\bin\client\jvm.dll" -server -Xmx1024m -Xms1024m -Djava
.class.path="d:\Tomcat\bin\bootstrap.jar" -Dcatalina.home="d:\Tomcat" -Djava
.endorsed.dirs="d:\Tomcat\common\endorsed" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
"d:\Tomcat\logs\stdout.log" -err "d:\Tomcat\logs\stderr.log"

----- Original Message -----
From: "Reynir H�bner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 3:37 AM
Subject: RE: Tomcat Out of memory


Nate, to increase the memory for your tomcat-running as service in NT /
win2k/winXP you must re-install the service.

You probably have noticed that the service does not start the catalina.bat
file but the tomcat.exe.

You can uninstall the current service and install again by using tomcat.exe
Go to c:\jakarta-tomcat-4-1-18\bin\ and execute tomcat.exe to do so, you
will need some parameters (all in the same line):

tomcat.exe -install "Apache Tomcat 4.1"
"C:\java1_4_1\jre\bin\client\jvm.dll" -Xmx512m -Djava.class.path="C:\jakarta
-tomcat-4-1-18\bin\bootstrap.jar"
-Dcatalina.home="C:\jakarta-tomcat-4-1-18"
-Djava.endorsed.dirs="C:\jakarta-tomcat-4-1-18\common\endorsed" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
"C:\jakarta-tomcat-4-1-18\logs\stdout.log" -err
"C:\jakarta-tomcat-4-1-18\logs\stderr.log"


Then for instructions you can always run tomcat -?

Hope that helps.
-reynir




> -----Original Message-----
> From: Nate [mailto:[EMAIL PROTECTED]
> Sent: 22. jan�ar 2003 21:09
> To: Tomcat Users List
> Subject: Tomcat Out of memory
>
>
> We are running Tomcat 4.0.6 on Windows 2000 server using JDK
> 1.4.0_01. Tomcat is set to run as a service.  In our
> catalina.bat file we have set:
>
> JAVA_OPTS= -server -Xms512m -Xmx512m
>
> If I am not mistaken, this should start the VM in server
> mode, and allocate 512MB of memory for it to use.  Our
> application gets an out of memory error when the vm has used
> about 64MB of memory, well short of what we have told it to
> use.  Am I setting the JVM parameters in the right place, or
> is my syntax perhaps incorrect?  When tomcat is run as a
> service, is the catalina.bat startup script even called?
>
> --Nate
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> [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]>


----- Original Message -----
From: "Jose Santiago Oyervides Gonzalez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, June 27, 2003 1:44 PM
Subject: performance on Tomcat 4.0.6


Hi,
I'm doing some tests on performance with TC 4.0.6.   My system (W2k IIS5.0 -
JSDK 1.4.0). I'm expecting my site will have a heavy load (about 20,000
concurrent connections between several servers) My pages wont have database
connections.

I've read some documents about it, and I wonder if someone could tell me
what's the limit of the parameters minProcessors, maxProcessors and
acceptCount, when I configure minProcessors above 1000, Tomcat stops after
about 30 seconds. �?
Does it really improves performance?


Another question: How can I increase the the memory configuration of JVM.
I've read that is donde with the Xms, xms,ms and mx options, but how can I
tell Tomcat to use that configuration. (i'm using Tomcat as a service) I've
tried using it with no luck.

Would that work if I edit cataliba.bat and add those options in %JAVA_OPTS%.

Does anyone have some good tips about performance? (besides the documents
found in the FAQ section)


Regards.
Jose Oyervides.


Up to now this is my server.xml file :


<Server port="8005" shutdown="SHUTDOWN" debug="0">

  <Service name="Tomcat-Standalone">

    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8080" minProcessors="750" maxProcessors="1000"
               enableLookups="false"
               acceptCount="400" debug="0" connectionTimeout="60000"/>

    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="1000" maxProcessors="2000"
               acceptCount="400" debug="0"/>

    <Engine name="Standalone" defaultHost="localhost" debug="0">

          <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".log"
              timestamp="true"/>

      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <Host name="localhost" debug="0" appBase="\\OtherMachine\foo\"
unpackWARs="true">

          <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="localhost_access_log."
suffix=".log"
                 pattern="combined"/>

         <Context path="/testing" docBase="testing"
         debug="0" privileged="true"/>

        <Context path="/examples" docBase="examples" debug="0"
                 reloadable="false" crossContext="true">

<Context path="/manager" docBase="manager"
         debug="0" privileged="true"/>

          <Parameter name="context.param.name" value="context.param.value"
                     override="false"/>

          <Manager className="org.apache.catalina.session.PersistentManager"
              debug="0"
              saveOnRestart="false"
              maxActiveSessions="-1"
              minIdleSwap="-1"
              maxIdleSwap="-1"
              maxIdleBackup="-1">
                <Store className="org.apache.catalina.session.FileStore"/>
          </Manager>

        </Context>

      </Host>

    </Engine>

  </Service>

  <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="true" appBase="webapps"
     acceptCount="10" debug="0"/>

    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0">

      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".log"
              timestamp="true"/>

      <Realm className="org.apache.catalina.realm.MemoryRealm" />

    </Engine>

  </Service>

</Server>

---------------------------------------------------------------------
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]

Reply via email to