Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

+1 vote
Recently, i encountered this strange error and i don't know how to deal with it. Any help would be greatly appreciated! Thanks.
requested by (1.6k points)

1 Solution

0 votes

By default, Tomcat assigned very little memory for the running process, you should increase the memory by make change in catalina.sh or catalina.bat file.

  1. Open “catalina.sh” file. Cataline.sh is located at \tomcat folder\bin\catalina.sh
  2. Assign following line to JAVA_OPTS variable and add it into catalina.sh file.
    JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8
    -server -Xms1536m -Xmx1536m -XX:NewSize=256m
    -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m
    -XX:+DisableExplicitGC"
  3. Change the “Xms” and “PermSize” value base on your server capability.
  4. Restart Tomcat.
solved by (520 points)
How can i do this in windows tomcat? I can't find catalina.sh file in \tomcat folder\bin\. There are just tomcat5.exe, dll, and jar files.
Got to Start > All programs > Apache TomCat > Configure Tomcat and select "Java" tab and configure the value in the Java Options field.
...