The solution was to add these flags to JVM command line when Tomcat is started:
(解决方案是在启动Tomcat时将这些标志添加到JVM命令行:)
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
You can do that by shutting down the tomcat service, then going into the Tomcat/bin directory and running tomcat6w.exe.
(您可以通过关闭tomcat服务,然后进入Tomcat / bin目录并运行tomcat6w.exe来做到这一点。)
Under the "Java" tab, add the arguments to the "Java Options" box. (在“ Java”选项卡下,将参数添加到“ Java选项”框中。)
Click "OK" and then restart the service. (单击“确定”,然后重新启动服务。)
If you get an error the specified service does not exist as an installed service you should run:
(如果出现错误, 则指定的服务不存在为已安装的服务 ,应运行:)
tomcat6w //ES//servicename
where servicename is the name of the server as viewed in services.msc
(其中servicename是在services.msc中查看的服务器的名称)
Source: orx's comment on Eric's Agile Answers .
(资料来源:orx对Eric的《敏捷答案》的评论。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…