【问题标题】:Error while starting Jboss server: Exception in thread "pool-6-thread-5" java.lang.OutOfMemoryError: PermGen space [duplicate]启动 Jboss 服务器时出错:线程“pool-6-thread-5”中的异常 java.lang.OutOfMemoryError:PermGen 空间 [重复]
【发布时间】:2016-03-07 23:10:05
【问题描述】:

每当我尝试启动 JBoss AS 6.x 时,它都会因以下错误而崩溃。

错误:

2015-12-03 16:14:18,447 错误 [STDERR](RMI TCP 连接(空闲)) 线程“RMI TCP 连接(空闲)”中的异常 线程中的异常 线程“pool-6-thread-2”中的“RMI TCP 连接(空闲)”异常 java.lang.OutOfMemoryError: PermGen 空间

2015-12-03 16:14:31,149 错误 [STDERR] (pool-6-thread-2) 中的异常 线程“pool-6-thread-4”线程“pool-6-thread-3”中的异常 java.lang.OutOfMemoryError: PermGen 空间

2015-12-03 16:14:36,308 错误 [STDERR](RMI TCP 连接(空闲)) java.lang.OutOfMemoryError: PermGen 空间

2015-12-03 16:14:53,939 错误 [STDERR] (pool-6-thread-3) java.lang.OutOfMemoryError: PermGen 空间

2015-12-03 16:14:53,939 错误 [STDERR] (pool-6-thread-4) java.lang.OutOfMemoryError: PermGen 空间

2015-12-03 16:16:01,500 警告 [org.jboss.detailed.classloader.ClassLoaderManager] (pool-12-thread-2) 加载过程中出现意外错误 来自:org.jboss.ejb.AllowedOperationsAssociation: java.lang.OutOfMemoryError: PermGen 空间

2015-12-03 16:17:49,465 错误 [STDERR] (pool-6-thread-5) 中的异常 线程 "pool-6-thread-5" java.lang.OutOfMemoryError: PermGen 空间

2015-12-03 16:17:53,442 错误 [STDERR] (pool-6-thread-6) 中的异常 线程 "pool-6-thread-6" java.lang.OutOfMemoryError: PermGen 空间

【问题讨论】:

    标签: java jboss


    【解决方案1】:

    在启动 JBoss 时添加此 VM 参数:

    -XX:+HeapDumpOnOutOfMemoryError
    

    这将在 JBoss 遇到 OutOfMemoryError 时生成一个 hprof 文件。

    可以使用 Eclipse MAT 等工具分析此文件,并告诉您哪些对象使用更多内存。

    【讨论】:

      猜你喜欢
      • 2015-03-06
      • 2011-01-30
      • 1970-01-01
      • 2017-09-10
      • 2011-07-28
      • 1970-01-01
      • 2014-06-22
      • 2012-09-16
      相关资源
      最近更新 更多