使用tomcat进行开发时发生java.lang.OutOfMemoryError:PermGen space

使用myEclipsetomcat开发时,发生异常java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

at javax.swing.UIManager.setLookAndFeel(UIManager.java:581)

at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1343)

at javax.swing.UIManager.initialize(UIManager.java:1432)

at javax.swing.UIManager.maybeInitialize(UIManager.java:1420)

at javax.swing.UIManager.getUI(UIManager.java:1007)

at javax.swing.JLabel.updateUI(JLabel.java:256)

at javax.swing.JLabel.<init>(JLabel.java:145)

at javax.swing.JLabel.<init>(JLabel.java:216)

at com.fr.base.core.GraphHelper.<clinit>(Unknown Source)

at com.fr.report.core.PaintUtils.getLineTextList(PaintUtils.java:481)

at com.fr.report.core.PaintUtils.modCellStyleString(PaintUtils.java:810)

at com.fr.web.core.chwriter.PageCellWriter.cell2Tag(Unknown Source)

at com.fr.web.core.HTMLWriterUtils.writeJSReport(Unknown Source)

at com.fr.web.core.HTMLWriterUtils.writeContent(Unknown Source)

at com.fr.web.core.HTMLWriterUtils.writePage(Unknown Source)

at com.fr.web.core.PageDealWith.readReportPageContent(PageDealWith.java:106)

at com.fr.web.core.ReportDispatcher.dealWithRequest(Unknown Source)

at com.fr.web.ReportServlet.doGet(ReportServlet.java:64)

at com.fr.web.ReportServlet.doPost(ReportServlet.java:76)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

at com.bstek.dorado.core.FilterHandle.internalDoFilter(FilterHandle.java:328)

at com.bstek.dorado.core.FilterHandle.doFilter(FilterHandle.java:149)

at com.bstek.dorado.core.DoradoFilter.doFilter(DoradoFilter.java:69)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

at com.yonggang.framework.OpenSessionInView.doFilter(OpenSessionInView.java:36)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)

解决方法:

tomcatcatalina.bat文件中添加

set JAVA_OPTS=-Xms64m -Xmx256m -XX:PermSize=128M -XX:MaxNewSize=256m -XX:MaxPermSize=256m

扩大其内存。

 

使用tomcat进行开发时发生java.lang.OutOfMemoryError:PermGen space_第1张图片

你可能感兴趣的:(tomcat,MyEclipse)