Tomcat - Increasing memory


I have Tomcat 4.1.30 and I was asked to increase the memory.  I read somewhere that to do that just add a parameter to CATALINA_OPTS.  I run Tomcat as a Windows 2003 Service (yes, it's the server version).  Can I just add CATALINA_OPTS environment variable in Windows (none exists now!)?  What would be the syntax for this?  Is there another way to do it via any control panels?  I looked in the admin and saw nothing.  After I increase the value is there any way to see that it took place?  

The following is the line in catalina.bat.  Perhaps this is where I can change it?  


I would like to increase to at least 512 (I assume the default is 256).  Can someone give me the exact syntax for this?

James CochraneB2B FINTECH WRITER/Technology WriterAsked:
Who is Participating?
ramazanyichConnect With a Mentor Commented:
The simpliest way is to add that parameter to your catalina.bat:

I just added -Xmx512Mb
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.