PermGen的空間,我使用Apache的Tomcat的7.0.12運行我的申請,我每次重新啓動服務器時收到以下錯誤。java.util.concurrent.ExecutionException:java.lang.OutOfMemoryError:在Tomcat中
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space
at org.apache.tomcat.util.threads.DedicatedThreadExecutor.execute(DedicatedThreadExecutor.java:62)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5198)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3832)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:424)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1205)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1391)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1401)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1401)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1380)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at org.apache.tomcat.util.threads.DedicatedThreadExecutor.execute(DedicatedThreadExecutor.java:56)
... 10 more
Caused by: java.lang.OutOfMemoryError: PermGen space
我已經設置了變量CATALINA_OPTS和JAVA_OPTS。 CATALINA_OPTS:-Xms512m -Xmx1024M JAVA_OPTS:-Xms1024m -Xmx10246m -XX:新尺寸=512米-XX:MaxNewSize =356米-XX:PermSize =1024米-XX:MaxPermSize參數=1024米
,但仍然得到同樣的錯誤。我正在使用sts作爲IDE。
請幫幫我,如何解決這個問題。