Hi, Try: set CATALINA_OPTS="-Xms=<size> -Xmx-<size>"
and then start tomcat. This should set the desired options. Note: I haven't tried this on Win32, but works find on *NIX. -rl On Thu, 2001-12-06 at 13:27, Niclas Rothman wrote: > Hi Bo! > Thank�s for your reply, but I seem to have no luck with this. > Have done a little jsp file that prints out the free memory and total memory > of the JVM and doesn�t seem to change. Maybe I�ve missunderstood your reply, > I�ve just added -Xms & -Xmx to the end of the line: > %CATALINA_OPTS% -Dcatalina.base="%CATALINA_BASE%" > -Dcatalina.home="%CATALINA > _HOME%" org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 > %9 start > > So the result is: > > %CATALINA_OPTS% -Dcatalina.base="%CATALINA_BASE%" > -Dcatalina.home="%CATALINA > _HOME%" org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 > start -Xms100663296 > -Xmx134217728 > > > What do say is this "approach" right or wrong? > Best regards Niclas Rothman > -----Oprindelig meddelelse----- > Fra: Bo Xu [mailto:[EMAIL PROTECTED]] > Sendt: 6. december 2001 19:10 > Til: Tomcat Users List > Emne: Re: Setting the alocated memory to Tomcat 4.0.1 > > > ----- Original Message ----- > From: "Niclas Rothman" <[EMAIL PROTECTED]> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > Sent: Thursday, December 06, 2001 12:52 PM > Subject: Setting the alocated memory to Tomcat 4.0.1 > > > Hi everybody! > I�m using Tomcat 4.0.1 and the version with the Windows NT service. > Does anybody know where to set the size for the memory to allocate to the > Tomcat (-Xms & -Xmx), can�t find any documentation about this. > Best reqards > > Niclas Rothman > > > I am not sure, I think you can add it in catalina.bat in CATALINA_HOME/bin, > for example, update the following: > * _STARTJAVA > * %_STARTJAVA% > %CATALINA_OPTS% -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA > _HOME%" org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 > %9 start > > > and add java -Xmsn/-Xmxn into them. > > Bo > Dec.06, 2001 > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
