java. util. concurrent. ExecutionException:java. lang.OutOfMemoryError:PermGen space
everybody
I encountered an exception while running the server. I think this is a memory leak!
I tried a lot of parameter Java_ Ops value, but there are still exceptions!!!
I have this exception on the console. You can see the following!
Nov 18,2013 2:48:48 PM org.apache.catalina.startup.HostConfig deployDescriptors SEVERE: Error waiting for multi-thread deployment of context descriptors to complete java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space at java.util.concurrent.FutureTask$Sync.innerGet(UnkNown Source) at java.util.concurrent.FutureTask.get(UnkNown Source) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:578) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1401) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:317) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1140) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$startChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$startChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(UnkNown Source) at java.util.concurrent.FutureTask.run(UnkNown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(UnkNown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(UnkNown Source) at java.lang.Thread.run(UnkNown Source) Caused by: java.lang.OutOfMemoryError: PermGen space Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
Solution
It always makes sense to specify "multiple values" that you have tried
First: they need to be Java_ Opts, but this may also be a typo of this problem However, using Catalina_ Opts will be better
Most importantly, when there is a permgen error, - Xmx doesn't help at all You want to set - XX: maxpermsize = 256M (or some other amount of memory) You only need to look at the error message to find a lot of information about this problem – permgen is a specific memory area used by the sun / Oracle JVM Increasing the available heap memory doesn't help at all