Exception in thread ""http-bio-80"exec-1" java.lang.OutOfMemoryError: PermGen s解决方案
2015-01-06 09:34
423 查看
问题描述:
Exception in thread ""http-bio-80"-exec-1" java.lang.OutOfMemoryError: PermGen s
Exception in thread ""http-bio-80"-exec-1" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:113)
在项目中web项目经常回出现Exception in thread "http-bio-8080-exec-11" java.lang.OutOfMemoryError: PermGen space的问题。解决办法是:
window--preferences---tomcat---JVM Setting ------append to JVM Parameters 如图:
System.out.println(Runtime.getRuntime().totalMemory());
3. 查看java进程的内存使用量: Windows任务管理器(Windows Task Manager) 增大运行应用的Heap的取值
//命令行执行方式 java -Xms256 -Xmx512m app
//Tomcat执行方式 Windows下,在文件{tomcat_home}/bin/catalina.bat
在文件开头可增加如下设置:
set JAVA_OPTS=-Xms256m -Xmx512m
Unix下,在文件{tomcat_home}/bin/catalina.sh的前面,可增加如下设置:
JAVA_OPTS='-Xms256m -Xmx512m'
Exception in thread ""http-bio-80"-exec-1" java.lang.OutOfMemoryError: PermGen s
Exception in thread ""http-bio-80"-exec-1" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:113)
在项目中web项目经常回出现Exception in thread "http-bio-8080-exec-11" java.lang.OutOfMemoryError: PermGen space的问题。解决办法是:
window--preferences---tomcat---JVM Setting ------append to JVM Parameters 如图:
System.out.println(Runtime.getRuntime().totalMemory());
3. 查看java进程的内存使用量: Windows任务管理器(Windows Task Manager) 增大运行应用的Heap的取值
//命令行执行方式 java -Xms256 -Xmx512m app
//Tomcat执行方式 Windows下,在文件{tomcat_home}/bin/catalina.bat
在文件开头可增加如下设置:
set JAVA_OPTS=-Xms256m -Xmx512m
Unix下,在文件{tomcat_home}/bin/catalina.sh的前面,可增加如下设置:
JAVA_OPTS='-Xms256m -Xmx512m'
相关文章推荐
- Exception in thread ""http-bio-80"exec-1" java.lang.OutOfMemoryError: PermGen s解决方案
- Exception in thread ""http-bio-80"exec-1" java.lang.OutOfMemoryError: PermGen s解决方案
- Exception in thread ""http-bio-80"exec-1" java.lang.OutOfMemoryError: PermGen s解决方案
- Exception in thread ""http-bio-80"exec-1" java.lang.OutOfMemoryError: PermGen s解决方案
- Exception in thread ""http-bio-80"exec-1" java.lang.OutOfMemoryError: PermGen s解决方案
- Exception in thread ""http-bio-8080"-exec-1" java.lang.OutOfMemoryError: PermGen space Exception in
- Myeclipse运行程序时,发生异常:Exception in thread ""http-bio-8080"-exec-1" java.lang.OutOfMemoryError: PermGen
- Exception in thread "http-bio-8080-exec-13" java.lang.OutOfMemoryError: PermGen space
- eclipse Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space[解决方案]
- Exception in thread "http-bio-8037-exec-45" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-10" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8081-exec-3" java.lang.OutOfMemoryError: PermGen space
- 启动tomcat时报错:Exception in thread "http-bio-8080-exec-2" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "http-bio-8089-exec-8" java.lang.OutOfMemoryError: PermGen space
- eclipse:Exception in thread "http-bio-8080-exec-11" java.lang.OutOfMemoryError: PermGen space