baidu_36215943
鬼迷了你心窍
2017-05-03 12:59

java.lang.OutOfMemoryError: PermGen space

  • exception
  • 内存溢出
  • 服务器

org.springframework.web.util.NestedServletException: Handler processing failed;
nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
erServlet.java:839)
at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche
rServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
workServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServl
et.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at com.vshine.wyj.web.filter.SecurityFilter.doFilter(SecurityFilter.java
:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at com.vshine.wyj.web.filter.EncodingFilter.doFilter(EncodingFilter.java
:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin
t.java:312)
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
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(Ty
peDeclaration.java:521)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(Ty
peDeclaration.java:620)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.gene
rateCode(CompilationUnitDeclaration.java:360)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)

    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)

    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java

:458)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:646)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:357)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
90)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:487)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:412)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:339)
at org.springframework.web.servlet.view.InternalResourceView.renderMerge
dOutputModel(InternalResourceView.java:238)

服务器的已经运行一段时间的项目最近开始报这个内存溢出的异常,求解!

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答

为你推荐

换一换