天天看点

java permgen space_java – PermGen space tomcat中的错误

我在Windows环境中工作。我每次得到这个错误,因为我使用tomcat-

Apr 30, 2012 5:30:37 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet default threw exception

java.lang.OutOfMemoryError: PermGen space

2012-04-30 17:30:37.719 INFO net.spy.memcached.MemcachedConnection: Connection state changed for [email protected]

2012-04-30 17:30:37.719 INFO net.spy.memcached.MemcachedConnection: Reconnecting due to failure to connect to {QA sa=localhost/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

java.net.ConnectException: Connection refused: no further information

Apr 30, 2012 5:30:37 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet default threw exception

java.lang.OutOfMemoryError: PermGen space

Exception in thread "Memcached IO over {MemcachedConnection to localhost/127.0.0.1:11211}" java.lang.OutOfMemoryError: PermGen space

Apr 30, 2012 5:30:38 PM org.apache.coyote.http11.Http11Processor process

SEVERE: Error processing request

java.lang.OutOfMemoryError: PermGen space

Apr 30, 2012 5:30:38 PM org.apache.coyote.http11.Http11Processor process

SEVERE: Error processing request

java.lang.OutOfMemoryError: PermGen space

Apr 30, 2012 5:30:38 PM org.apache.coyote.http11.Http11Processor process

SEVERE: Error processing request

java.lang.OutOfMemoryError: PermGen space

Apr 30, 2012 5:30:41 PM org.apache.catalina.connector.CoyoteAdapter service

SEVERE: An exception or error occurred in the container during the request processing

java.lang.OutOfMemoryError: PermGen space

Apr 30, 2012 5:30:43 PM org.apache.catalina.core.StandardHostValve custom

SEVERE: Exception Processing ErrorPage[exceptionType=java.lang.Throwable, location=/error.action]

java.lang.OutOfMemoryError: PermGen space

Apr 30, 2012 5:30:42 PM org.apache.catalina.core.StandardHostValve custom

SEVERE: Exception Processing ErrorPage[exceptionType=java.lang.Throwable, location=/error.action]

java.lang.OutOfMemoryError: PermGen space

Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space

我尝试添加JAVA_OPTS与值作为-Xms1024m -Xmx1024m在系统变量,仍然我得到相同的错误(java.lang.OutOfMemoryError:PermGen空间)一次又一次。任何帮助将不胜感激。我也读过其他postoverflow也,但它没有成功。