Appropriate place in catalina.bat to set JAVA_OPTS

前端 未结 5 1918
天涯浪人
天涯浪人 2020-12-31 20:12

I got the below error

\"java.lang.OutOfMemoryError: PermGen space\"

In my catalina.bat file, where is the appropriate place f

5条回答
  •  盖世英雄少女心
    2020-12-31 20:54

    The proper place is to create a new file in the Tomcat /bin directory alongside catalina.bat, named setenv.bat and place a set JAVA_OPTS=... there.

    On *nix system it'd be setenv.sh

    catalina.bat/catalina.sh takes care of running setenv.bat/setenv.sh if it exists. This is noted in the section 3.4 here

提交回复
热议问题