WAS 100用户并发CPU占超95%

WAS 100用户并发CPU占超95%,用loadrunner模拟并发,仅做个登陆功能验证,麻烦各位专家和同行指点建议:用Top -p获得的占用CPU高的线程如下:Java Stackat sun/misc/Unsafe.park(Native Method) at java/util/concurrent/locks/LockSupport.parkNanos(LockSupport.java:222(Compil...显示全部

WAS 100用户并发CPU占超95%,用loadrunner模拟并发,仅做个登陆功能验证,麻烦各位专家和同行指点建议:

用Top -p获得的占用CPU高的线程如下:

Java Stack

at sun/misc/Unsafe.park(Native Method)

at java/util/concurrent/locks/LockSupport.parkNanos(LockSupport.java:222(Compiled Code))

at java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2127(Compiled Code))

at com/ibm/ws/util/BoundedBuffer$GetQueueLock.await(BoundedBuffer.java:286(Compiled Code))

at com/ibm/ws/util/BoundedBuffer.waitGet_(BoundedBuffer.java:425(Compiled Code))

at com/ibm/ws/util/BoundedBuffer.poll(BoundedBuffer.java:887(Compiled Code))

at com/ibm/ws/util/ThreadPool.getTask(ThreadPool.java:1034(Compiled Code))

at com/ibm/ws/util/ThreadPool$Worker.run(ThreadPool.java:1885(Compiled Code))



WAS版本:

Integrated Solutions Console, 8.5.5.0

Build Number: gm1319.01

应用服务器CPU: 部署的虚拟机,4 core

processor       : 0

vendor_id       : GenuineIntel

cpu family      : 6

model           : 62

model name      : Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz

stepping        : 4

cpu MHz         : 2600.000

cache size      : 15360 KB

physical id     : 1

siblings        : 2

core id         : 1

cpu cores       : 2

apicid          : 3

initial apicid  : 3

fpu             : yes

fpu_exception   : yes

cpuid level     : 13

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm ida arat pln pts dts

bogomips        : 5200.00

clflush size    : 64

cache_alignment : 64

address sizes   : 40 bits physical, 48 bits virtual

JDK版本:

java version "1.6.0_29"

Java(TM) SE Runtime Environment (build 1.6.0_29-b11)

Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)


httpd.conf

ThreadLimit         300

ServerLimit         64

StartServers         1

MaxClients         600

MinSpareThreads     25

MaxSpareThreads     125

ThreadsPerChild     300

MaxRequestsPerChild  0

JVM heap size:(应用内存约10G)

Manager  1024-4096M 初始到最大

Node Agent  1024-2046M

server1024-2046M

Thread Pool

You can administer the following resources:






    Select Row 1

Default
  
  
10   
  
20   
  
    Select Row 2

ORB.thread.pool
  
  
10   
  
20   
  
    Select Row 3

SIBFAPInboundThreadPool
Service integration bus FAP inbound channel thread pool   
  
4   
  
20   
  
    Select Row 4

SIBFAPThreadPool
Service integration bus FAP outbound channel thread pool   
  
4   
  
20   
  
    Select Row 5

SIBJMSRAThreadPool
Service Integration Bus JMS Resource Adapter thread pool   
  
10   
  
20   
  
    Select Row 6

TCPChannel.DCS
  
  
20   
  
20   
  
    Select Row 7

WMQJCAResourceAdapter
WebSphere MQ Resource Adapter thread pool   
  
10   
  
20   
  
    Select Row 8

WebContainer
  
  
10   
  
110   
  
    Select Row 9

server.startup
This pool is used by WebSphere during server startup.   
  
1   
  
3   
  

Connection Pool

10-100 connections 最小到最大


另应用对应的数据库连接数没满


修改原文增加截图:

进程中占用cpu高的线程排序(补发类似条件下测试的cpu占用情况截图,与原问题时并发登陆用户数等初始条件可能不完全相同,但出现情况类似)

进程中占用cpu高的线程排序(另一例测试的cpu占用).png


附件:

附件图标SystemOut_16.12.12_11.22.00.rar (3.55 KB)

附件图标javacore.20161212.112110.19464.0002登陆 - 副本.rar (346.08 KB)

收起
参与8

查看其它 1 个回答jordanfang的回答

jordanfangjordanfang软件架构设计师IBM

你列出java栈的线程的状态应该是Parked,表示线程池中的空闲线程,并不会占用CPU。

你怎么确定的该线程占用的CPU高?

top -p只能显示进程的信息,并没有输出该进程的线程信息

IT咨询服务 · 2017-01-01
浏览2189
  • 我在原文中补充了“修改原文增加截图:”,通过top -p serverid进程号 -H的方式,获取改进程下的线程对应占cpu高低排序,然后将占用cpu高的PID的线程id转换成16进制对应到javacore中;很奇怪这些占用cpu高的线程大多都是那些unsafe park,我在想是不是was并发100用户,loadrunner并发时思考8s左右,本身就可能用到4processors*2cores的较高cpu
    2017-01-03

回答者

jordanfang
软件架构设计师IBM

jordanfang 最近回答过的问题

回答状态

  • 发布时间:2017-01-01
  • 关注会员:2 人
  • 回答浏览:2189
  • X社区推广