教你解决问题:Compilation error java.lang.OutOfMemoryError
马嘉楠 2008-3-19
问题描述:(例子如下)
<2008-3-19 上午01时59分23秒 GMT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=17129293,name=CcsWeb,context-path=/CcsWeb)] Root cause of ServletException.
weblogic.servlet.jsp.CompilationException: Compilation of D:\bea\user_projects\domains\XXXX\myserver\.wlnotdelete\extract\myserver_CcsWeb_CcsWeb\jsp_servlet\_cs\_cf\__gfqryfeetitle.java failed.
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:470)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.nftelecom.ccs.common.encodingfilter.web.EncodingFilter.doFilter(EncodingFilter.java:81)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.io.IOException: Compilation error java.lang.OutOfMemoryError
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:421)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:443)
... 16 more
>
解决方法:
菜单 ---> Windows ---> Preferences ---> MyEclipse ---> WebLogic8 ---> JDK ---> Optional Java VM arguments
添加以下参数: -ms256m -mx512m
说明:分配最小内存256M,最大512M,即可解决问题,当然你也可以设置的更大
马嘉楠
jianan.ma@gmail.com
posted on 2008-03-19 10:39
马嘉楠 阅读(2246)
评论(1) 编辑 收藏