what to do with tomcat PermGen space

前端 未结 7 1764
盖世英雄少女心
盖世英雄少女心 2020-12-07 19:22

BACKGROUND: I have a web Project which uses JSP. The IDE is Eclipse. The configuration of tomcat is: Automatically publish when resources change and publish

7条回答
  •  生来不讨喜
    2020-12-07 19:51

    Just to add for Windows, if someone is still stuck:--

    1. Open catalina.bat file (located at Apache tomcat installation folder/bin)
    2. Set JAVA_OPTS as follows in the very start(before actually its first use anywhere in the file):--

      set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m

    3. Restart Tomcat and its done.

    You can find nice explanation here

提交回复
热议问题