tomcat6 eclipse java.lang.OutOfMemoryError: PermGen space
2015-04-21 19:39
417 查看
-Xms512m -Xmx1024m
-Xms1024M -Xmx2048M -XX:MaxPermSize=2048M
网上能找到的所有的方法都试过了,修改tomcat 还有 eclipse 中的设置 但是都不行
环境是 jdk 1.6 tomcat 6.0
报错信息
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
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$000(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.apache.jasper.compiler.Compiler.generateJava(Compiler.java:182)
at org.apache.jasper.compiler.Comp
iler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
解决办法:
E:\apache-tomcat-7.0.64\bin 下 catalina.bat 文件
开头加一句:
set JAVA_OPTS=-Xms1024m -Xmx1024m -Xss1024K -XX:PermSize=512m -XX:MaxPermSize=1024m
-Xms1024M -Xmx2048M -XX:MaxPermSize=2048M
网上能找到的所有的方法都试过了,修改tomcat 还有 eclipse 中的设置 但是都不行
环境是 jdk 1.6 tomcat 6.0
报错信息
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
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$000(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.apache.jasper.compiler.Compiler.generateJava(Compiler.java:182)
at org.apache.jasper.compiler.Comp
iler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
解决办法:
E:\apache-tomcat-7.0.64\bin 下 catalina.bat 文件
开头加一句:
set JAVA_OPTS=-Xms1024m -Xmx1024m -Xss1024K -XX:PermSize=512m -XX:MaxPermSize=1024m
相关文章推荐
- eclipse启动tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- Eclipse中通过Tomcat运行J2EE项目 java.lang.OutOfMemoryError:PermGen space的解决方案
- eclipse启动tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- eclipse启动tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- eclipse启动tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- Eclipse中通过Tomcat运行JavaWeb项目发生内存溢出:java.lang.OutOfMemoryError: PermGen space 错误的解决方案
- java.lang.OutOfMemoryError: PermGen space及其解决方法 -- eclipse下的tomcat内存设置大小
- eclipse-tomcat解决java.lang.OutOfMemoryError: PermGen space
- Eclipse中通过Tomcat运行J2EE项目java.lang.OutOfMemoryError: PermGen space的解决方案
- java.lang.OutOfMemoryError: PermGen space 和 Java heap space 关于MyEclipse eclipse tomcat内存溢解决方法
- Eclipse集成Tomcat报错:java.lang.OutOfMemoryError: PermGen space
- eclipse启动tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- Eclipse中通过Tomcat运行JavaWeb项目发生内存溢出:java.lang.OutOfMemoryError: PermGen space 错误的解决方案
- 在eclipse启动tomcat运行一个web程序,报java.lang.OutOfMemoryError: PermGen space
- Eclipse中通过Tomcat运行J2EE项目java.lang.OutOfMemoryError: PermGen space的解决方案
- eclipse启动tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- eclipse启动或者运行过程中tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- eclipse启动tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- Eclipse中通过Tomcat运行J2EE项目java.lang.OutOfMemoryError: PermGen space的解决方案_Tomcat服务器
- 在eclipse中的tomcat中出现报错 Java.lang.OutOfMemoryError: PermGen space