Author Topic: large cpu useage of 'java'  (Read 3104 times)

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
large cpu useage of 'java'
« on: September 15, 2011, 12:06:00 »
The QM process occupy a lot of cpu resource,and i don't do any data analysis except the realtime  page.What cause it?


top - 18:01:13 up 14 days,  9:18,  1 user,  load average: 3.31, 3.69, 4.76
Tasks: 172 total,   1 running, 171 sleeping,   0 stopped,   0 zombie
Cpu(s): 23.6%us,  3.2%sy,  0.0%ni, 66.7%id,  4.2%wa,  1.5%hi,  0.9%si,  0.0%st
Mem:   3364968k total,  2952096k used,   412872k free,    50520k buffers
Swap:   779144k total,    19024k used,   760120k free,   384312k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                         
 8047 root      25   0 1504m 1.2g  13m S 102.1 38.2 530:20.26 java                                                                           
20923 asterisk  15   0  179m 129m 6524 S 88.5  4.0 878:45.05 asterisk                                                                         
31157 asterisk  15   0  261m 251m 2248 S 21.0  7.6   1255:45 op_server.pl                                                                     
20526 root      15   0  2332 1060  796 R  0.3  0.0   0:00.06 top                                                                             
    1 root      15   0  2068  628  540 S  0.0  0.0   0:02.12 init                                                                             
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.26 migration/0                                                                     
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/0                                                                     
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0                                                                       
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.51 migration/1                                                                     
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1                                                                     
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1                                                                       
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:00.28 migration/2                                                                     
    9 root      37  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/2                                                                     
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2                                                                       
   11 root      RT  -5     0    0    0 S  0.0  0.0   0:00.54 migration/3                                                                     
   12 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/3                                                                     
   13 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/3             

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: large cpu useage of 'java'
« Reply #1 on: September 19, 2011, 11:04:37 »
The QM process occupy a lot of cpu resource,and i don't do any data analysis except the realtime  page.What cause it?


top - 18:01:13 up 14 days,  9:18,  1 user,  load average: 3.31, 3.69, 4.76
Tasks: 172 total,   1 running, 171 sleeping,   0 stopped,   0 zombie
Cpu(s): 23.6%us,  3.2%sy,  0.0%ni, 66.7%id,  4.2%wa,  1.5%hi,  0.9%si,  0.0%st
Mem:   3364968k total,  2952096k used,   412872k free,    50520k buffers
Swap:   779144k total,    19024k used,   760120k free,   384312k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                         
 8047 root      25   0 1504m 1.2g  13m S 102.1 38.2 530:20.26 java                                                                           
20923 asterisk  15   0  179m 129m 6524 S 88.5  4.0 878:45.05 asterisk                                                                         
31157 asterisk  15   0  261m 251m 2248 S 21.0  7.6   1255:45 op_server.pl                                                                     
20526 root      15   0  2332 1060  796 R  0.3  0.0   0:00.06 top                                                                             
    1 root      15   0  2068  628  540 S  0.0  0.0   0:02.12 init                                                                             
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.26 migration/0                                                                     
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/0                                                                     
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0                                                                       
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.51 migration/1                                                                     
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1                                                                     
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1                                                                       
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:00.28 migration/2                                                                     
    9 root      37  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/2                                                                     
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2                                                                       
   11 root      RT  -5     0    0    0 S  0.0  0.0   0:00.54 migration/3                                                                     
   12 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/3                                                                     
   13 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/3           


Try and take a thread dump, so you have a better undertsanding of what is going on.

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: large cpu useage of 'java'
« Reply #2 on: September 20, 2011, 05:50:31 »
is there a examples?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: large cpu useage of 'java'
« Reply #4 on: September 21, 2011, 07:02:02 »
thanks