Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2150
  • Last Modified:

How and where to increase memory size in Tomcat for linux

How and where to increase memory size in Tomcat for linux
0
aaaaaa
Asked:
aaaaaa
  • 3
  • 3
  • 2
  • +1
2 Solutions
 
aaaaaaAuthor Commented:
First look at java -X to determine what parameters to set. Then you can set them via the environment variable JAVA_OPTS. Read the files catalina.bat or catalina.sh for more information on JAVA_OPTS.

??
where?
0
 
CEHJCommented:
Search the file system
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
hoomanvCommented:
oh sorry you are on linux
0
 
aaaaaaAuthor Commented:
i am linux
0
 
hoomanvCommented:
add this line to catalina.sh (found in tomcat's bin directory)
JAVA_OPTS=$JAVA_OPTS -Xms512m -Xmx512m

not sure exactly where to put this line but I guess after the initialization of JAVA_OPTS is a good place
0
 
CEHJCommented:
find / -name catalina.sh -exec less '{}' \;
0
 
objectsCommented:
> add this line to catalina.sh (found in tomcat's bin directory)
> JAVA_OPTS=$JAVA_OPTS -Xms512m -Xmx512m

u don't need to add it catalina.sh, just define JAVA_OPTS in your environment variables (for the user that runs tomcat)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now