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 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
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]
SV: Setting the alocated memory to Tomcat 4.0.1
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]
Re: SV: Setting the alocated memory to Tomcat 4.0.1
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]
Re: Setting the alocated memory to Tomcat 4.0.1
Hi Niclas, I am not sure because I didn't ever use -Xms/-Xmx to customize catalina.bat, I guess there are two reasons: - did you update all _RUNJAVA/_STARTJAVA... start in catalina.bat? in the the following(from TC4.0), there are 4 _RUNJAVA/_STARTJAVA... start. :doRun if %2 == -security goto doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStart if %2 == -security goto doStartSecure %_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 goto cleanup :doStartSecure echo Using Security Manager %_STARTJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup - does anybody know if -Xms/-Xmx will increase allocated memory in every JVM/OS combination? or it only work in some of them? Thanks in advance! Bo Dec.06, 2001 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 1:27 PM Subject: SV: Setting the alocated memory to Tomcat 4.0.1 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]
SV: Setting the alocated memory to Tomcat 4.0.1
Okey Bo! It works now if I startup the Tomcat throug startup.bat but it still doesn´t work when I try to start the beast as a NT service. Any further suggestions? Niclas -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:50 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 Hi Niclas, I am not sure because I didn't ever use -Xms/-Xmx to customize catalina.bat, I guess there are two reasons: - did you update all _RUNJAVA/_STARTJAVA... start in catalina.bat? in the the following(from TC4.0), there are 4 _RUNJAVA/_STARTJAVA... start. :doRun if %2 == -security goto doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStart if %2 == -security goto doStartSecure %_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 goto cleanup :doStartSecure echo Using Security Manager %_STARTJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup - does anybody know if -Xms/-Xmx will increase allocated memory in every JVM/OS combination? or it only work in some of them? Thanks in advance! Bo Dec.06, 2001 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 1:27 PM Subject: SV: Setting the alocated memory to Tomcat 4.0.1 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Setting the alocated memory to Tomcat 4.0.1
Hi Niclas, You should really do this using the environment variable CATALINA_OPTS. That's what it's designed for. Set up an environment variable called CATALINA_OPTS and set it's value to -Xmssize -Xmxsize. The easiest way to do this is by right-clicking on your My Computer icon and then selecting the Environment tab. Thanks, --jeff - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 11:30 AM Subject: SV: Setting the alocated memory to Tomcat 4.0.1 Okey Bo! It works now if I startup the Tomcat throug startup.bat but it still doesn´t work when I try to start the beast as a NT service. Any further suggestions? Niclas -Oprindelig meddelelse- Fra: Bo Xu [mailto:[EMAIL PROTECTED]] Sendt: 6. december 2001 19:50 Til: Tomcat Users List Emne: Re: Setting the alocated memory to Tomcat 4.0.1 Hi Niclas, I am not sure because I didn't ever use -Xms/-Xmx to customize catalina.bat, I guess there are two reasons: - did you update all _RUNJAVA/_STARTJAVA... start in catalina.bat? in the the following(from TC4.0), there are 4 _RUNJAVA/_STARTJAVA... start. :doRun if %2 == -security goto doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA _HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doRunSecure %_RUNJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup :doStart if %2 == -security goto doStartSecure %_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 goto cleanup :doStartSecure echo Using Security Manager %_STARTJAVA% %CATALINA_OPTS% -Djava.security.manager -Djava.security.policy==%CATALINA_B ASE%/conf/catalina.policy -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home =%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %3 %4 %5 %6 %7 %8 %9 start goto cleanup - does anybody know if -Xms/-Xmx will increase allocated memory in every JVM/OS combination? or it only work in some of them? Thanks in advance! Bo Dec.06, 2001 - Original Message - From: Niclas Rothman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 1:27 PM Subject: SV: Setting the alocated memory to Tomcat 4.0.1 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED
RE: Setting the alocated memory to Tomcat 4.0.1
I am using tomcat 3.2.1. I tried add an environment variable TOMCAT_OPTS and make value to be -Xmx348m;-Xms256m It seemed worked. If you find any other way, please let me know. Susan Zeng -Original Message- From: Bo Xu [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 12:10 PM To: Tomcat Users List Subject: 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]
RE: Setting the alocated memory to Tomcat 4.0.1
I wonder if you could send me the code to prints out the free memory and total memory in jsp. Thank you very much. Susan Zeng -Original Message- From: Niclas Rothman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 12:27 PM To: 'Tomcat Users List' Subject: SV: Setting the alocated memory to Tomcat 4.0.1 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]