linux centos 下报错Exception in thread "http-bio-8080-exec-18" java.lang.OutOfMemoryError: PermGen space
错误信息:
Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-7" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-8" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-13" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-14" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-15" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-16" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-17" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-bio-8080-exec-18" java.lang.OutOfMemoryError: PermGen space
Exception in thread "DispatcherThread" java.lang.OutOfMemoryError: PermGen space
Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "State Saver" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-Windows" java.lang.OutOfMemoryError: OutOfMemoryError 内容来自www.awzsr.com
错误原因:
PermGen space的全称是Permanent Generation space,是指内存的永久保存区域,这块内存主要是被JVM存放Class和Meta信息的,Class在被Loader时就会被放到PermGen space中,它和存放类实例(Instance)的Heap区域不同,GC(Garbage Collection)不会在主程序运行期对PermGen space进行清理,所以如果你的应用中有很多CLASS的话,就很可能出现PermGen space错误,这种错误常见在web服务器对JSP进行pre compile的时候。如果你的WEB APP下都用了大量的第三方jar, 其大小超过了jvm默认的大小(4M)那么就会产生此错误信息了。
catalina.sh 的第236行
# Uncomment the following line to make the umask available when using the
# org.apache.catalina.security.SecurityListener
#JAVA_OPTS="$JAVA_OPTS -Dorg.apache.catalina.security.SecurityListener.UMASK=`umask`"
#=============此部分是增加的代码==============
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1024m
-Xmx1024m -XX:NewSize=512m -XX:MaxNewSize=256m -XX:PermSize=512m
-XX:MaxPermSize=512m -XX:+DisableExplicitGC"
#=============此部分是增加的代码==============
# ----- Execute The Requested Command ----------------------------------------- www.awzsr.com
相关推荐
java.util.ConcurrentModificationException 异常问题详解1
Exception in thread “main“ java.util.InputMismatchException
NULL 博文链接:https://utopialxw.iteye.com/blog/1138133
Exception in thread http-nio-8080-exec-1027 java.lang.OutOfMemoryError: Java heap space Exception in thread http-nio-8080-exec-1031 java.lang.OutOfMemoryError: Java heap space 看线程名称应该是tomcat的...
出现Exception in threadmain java.lang.NoClassDefFoundError的各种可能情况.doc
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject,是因为缺少java-json.jar-附件资源
Exception in thread "Thread-1" java.lang.ExceptionInInitializerError at com.semaphore.jna.md.MDLibrary.<clinit>(MDLibrary.java:39) at ...
Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/ECB/PKCS7Padding https://www.codeprj.com/blog/92cdc41.html
希望高手指点
System.out.println("----------------------------------"); // cpu信息 cpu(); System.out.println("----------------------------------"); // 内存信息 memory(); System.out.println("-----------------...
Exception in thread "main" java.lang.AbstractMethodError: org.apache.lucene.analysis.TokenStream.incrementToken()Z 换用svn里源码版正常 http://paoding.googlecode.com/svn/trunk/paoding-analysis/
Exception in thread “main” java.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-11-25_02-34-42PM/jre/1.4.2/lib/i386/libawt.so:libXp.so.6: cannot open shared object file: No such file or directory ...
本文件夹专为以下错误对症下药。...Exception in thread "VFW Request Thread" java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmvfw in java.library.path
主要介绍了Exception in thread main java.lang.NoClassDefFoundError错误解决方法,需要的朋友可以参考下
NULL 博文链接:https://speed-guo.iteye.com/blog/903163
Log.v(" R.drawable.img_01 ", "-------------------" + R.drawable.img_03); Log.v(" R.drawable.img_01 ", "-------------------" + R.drawable.img_04); */ Log.v(" witch ","-----------"+Indent.this....
switches += "--margin-top 0mm --margin-bottom 4mm --margin-right 0mm --margin-left 0mm "; switches += "--page-size A4 "; // switches += "--no-background "; switches += "--redirect-delay 100%"; //...
itext2.1.7 Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapp