Increase the memory of Apache Tomcat 7

2
Good evening, I have a problem that I still can not find a solution I would like you to help me; the question is the following I am trying to increase the memory for apache tomcat, I have reviewed other forums and they tell me to modify the file catalina.sh, the issue is that this file does not exist in Apache Tomcat 7, they recommended me to modify the file located in the following address /var/cpanel/tomcat.options (Centos 6), I created the file because it did not exist in the address I tried adding the following line:

export CATALINA_OPTS="-Xms512M -Xmx1024M" 

But I got an error when restarting apache tomcat

probe only with:

CATALINA_OPTS="-Xms512M -Xmx1024M"

and similarly I kept generating error; review the log and throw me the following:

  

java.lang.ClassNotFoundException: export CATALINA_OPTS="- Xms512m   -Xmx1024m "           at java.net.URLClassLoader $ 1.run (URLClassLoader.java:359)           at java.net.URLClassLoader $ 1.run (URLClassLoader.java:348)           at java.security.AccessController.doPrivileged (Native Method)           at java.net.URLClassLoader.findClass (URLClassLoader.java:347)           at java.lang.ClassLoader.loadClass (ClassLoader.java:425)           at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:308)           at java.lang.ClassLoader.loadClass (ClassLoader.java:358)           at org.apache.commons.daemon.support.DaemonLoader.load (DaemonLoader.java:151)

Please can someone tell me if the route on which I am adding the command is ok or is it otherwise, thank you in advance.

Best regards.

    
asked by Ricardo Córdova Castro 14.04.2017 в 04:25
source

0 answers