WebSphere6.1频繁出现线程挂起问题

附带报错信息,以及Javacore,0000001e ThreadMonitor W   WSVR0605W: 线程“WebContainer : 66”(00000071)已保持活动状态 722140 毫秒,此线程可能已挂起。在服务器中共有 62 个线程可能处于挂起状态。有没有大神帮我看看呀?另外请问 “IBM Thread and Monitor Dump ...显示全部

附带报错信息,以及Javacore,0000001e ThreadMonitor W   WSVR0605W: 线程“WebContainer : 66”(00000071)已保持活动状态 722140 毫秒,此线程可能已挂起。在服务器中共有 62 个线程可能处于挂起状态。有没有大神帮我看看呀?另外请问 “IBM Thread and Monitor Dump Analyzer for Java”这个工具咋用?

附件:

附件图标javacore.20161209.165031.11600.0011.txt (3.83 MB)

收起
参与39

查看其它 7 个回答userhu的回答

userhuuserhu软件架构设计师胡伟

java -Xmx500m -jar jca457.jar

   

      

   

      

打开看了下,试试 -Xmxcl 参数      

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
              Memory Type                          # of Segments                          Used Memory(bytes)                          Used Memory(%)                          Free Memory(bytes)                          Free Memory(%)                          Total Memory(bytes)            
              Internal                          190                          12,328,368                          99.01                          123,472                          0.99                          12,451,840            
              Object(reserved)                          1                          1,073,741,824                          100                          0                          0                          1,073,741,824            
              Class                          8,759                          117,937,568                          95.93                          5,005,912                          4.07                          122,943,480            
              JIT Code Cache                          22                          11,534,336                          100                          0                          0                          11,534,336            
              JIT Data Cache                          14                          7,073,664                          96.37                          266,368                          3.63                          7,340,032            
              Overall                          8,986                          1,222,615,760                          99.56                          5,395,752                          0.44                          1,228,011,512            

      

   

  

   

              NOTE: Only for Java 5.0 Service Refresh 4 (build date:February 1st,         2007) and older. When you use delegated class loaders, the JVM can         create a large number of ClassLoader objects. On IBM Java 5.0 Service         Refresh 4 and older, the number of class loaders that are permitted is         limited to 8192 by default and an OutOfMemoryError exception is thrown         when this limit is exceeded. Use the -Xmxcl parameter to increase the         number of class loaders allowed to avoid this problem, for example to         25000, by setting -Xmxcl25000, until the problem is resolved.

Please         examine the current thread stack trace to check whether a class loader         is being loaded if there is an OutOfMemoryError.
         

  

政府机关 · 2017-02-13
  • 您好,我看的不是很明白,麻烦您详细讲讲
    2017-02-13
  • 线程挂是应为你资源耗尽了,你用工具打开,你1G的堆大小都耗尽了,试着调整下JVM的参数 具体看 http://www.webspherechina.net/Question/84953
    2017-02-13
  • 八目  八目回复 userhu
    你好,可以给我粘一下javacore中1G堆大小耗尽的提示信息吗?我不会使用工具打开Javacore。
    2017-02-13
  • 八目  八目回复 userhu
    在通用 JVM 参数里加 “-Xmxcl25000“”有啥格式吗?我看到我管理控制台中原本有如下内容“-Xverify:none”
    2017-02-13
  • 不好意思,没仔细看你jdk版本 Java 5.0 Service Refresh 4 (build date:February 1st, 2007) and older,你的SDK版本比这个版要高,可能上述方法不适用,看了下,websphere还是32位的,1G的堆大小基本就到头了,建议更换64位的webshpere
    2017-02-13
  • Free Java heap size: 31.64 KB Allocated Java heap size: 1 GB
    2017-02-13
  • 八目  八目回复 userhu
    除了更换64位websphere以外,还有其他的办法吗?生产环境我恐怕无法更改。请问有没有查看javacore工具的下载和使用链接呀?我还是一头雾水
    2017-02-13
  • 建议先把WebSphere6.1的补丁都打全了 https://www-945.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm%7EWebSphere&product=ibm/WebSphere/WebSphere+Application+Server&release=6.1.0.47&platform=Windows&function=all (主要是was和sdk的补丁)再看看有没问题,有条件的,生产环境使用64位的was,如果补丁打全了仍有问题,也不能跟换64位的was,只能考虑jvm调优或从代码入手了
    2017-02-13
  • ftp://public.dhe.ibm.com/software/websphere/appserv/support/tools/jca/jca457.jar 这是“IBM Thread and Monitor Dump Analyzer for Java“的下载地址 java -Xmx500m -jar jca457.jar运行就可以了
    2017-02-13
  • 八目  八目回复 userhu
    谢谢!我的javacore是在硬盘中通过搜索找到的,距离现在已经有2个多月了,可能不够实时。请问如何即时生成javacore?
    2017-02-13
  • java -Xmx500m -jar jca457.jar 启动查看javacore工具 java -jar -Xmx1000m ha456.jar 启动查看heapdump工具
    2017-02-15
  • 你的一个数据库查询的数据量太大,占用了大量的JVM内存空间,导致JVM爆了。
    2017-03-28

回答者

userhu
软件架构设计师胡伟

userhu 最近回答过的问题

回答状态

  • 发布时间:2017-02-13
  • 关注会员:6 人
  • 回答浏览:3097
  • X社区推广