Solved

Tomcat - Increasing memory

Posted on 2004-09-23
1
13,083 Views
Last Modified: 2011-08-18
Hello,

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?  

%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%

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

Thanks
0
Comment
Question by:techhound
1 Comment
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
Comment Utility
The simpliest way is to add that parameter to your catalina.bat:
%_EXECJAVA% %JAVA_OPTS% -Xmx512Mb %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%

I just added -Xmx512Mb
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to redirect https://www to non-www? 6 69
ColdFusion Rereplace 3 61
PHP Register global 21 63
Configure IIS to process JSON 10 61
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now