cpu异常标高

Xshell 4 (Build 0131)
Copyright (c) 2002-2014 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
Xshell:\>

Connecting to 192.168.1.30:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Sat Jun 16 17:35:12 2018 from 192.168.1.32
[root@bhkj ~]# top
top - 17:48:47 up 12 days, 2:25, 1 user, load average: 0.97, 1.04, 1.06
Tasks: 622 total, 1 running, 621 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.6%us, 0.2%sy, 0.0%ni, 96.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 16217916k total, 15810220k used, 407696k free, 248856k buffers
Swap: 8388604k total, 63908k used, 8324696k free, 7718672k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5040 root 20 0 7933m 944m 5964 S 106.0 6.0 16885:03 java
20684 mysql 20 0 8242m 5.8g 6236 S 14.9 37.8 1151:45 mysqld
5083 root 20 0 8343m 247m 5932 S 0.3 1.6 42:19.79 java
1 root 20 0 19364 1188 976 S 0.0 0.0 0:02.21 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.26 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:01.66 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.64 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:01.48 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/1
9 root 20 0 0 0 0 S 0.0 0.0 0:01.68 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:00.77 watchdog/1
11 root RT 0 0 0 0 S 0.0 0.0 0:00.05 migration/2
12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/2
13 root 20 0 0 0 0 S 0.0 0.0 0:01.24 ksoftirqd/2
14 root RT 0 0 0 0 S 0.0 0.0 0:00.54 watchdog/2
15 root RT 0 0 0 0 S 0.0 0.0 0:00.07 migration/3
16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/3
17 root 20 0 0 0 0 S 0.0 0.0 0:00.84 ksoftirqd/3
18 root RT 0 0 0 0 S 0.0 0.0 0:00.60 watchdog/3
19 root RT 0 0 0 0 S 0.0 0.0 0:00.02 migration/4
[root@bhkj ~]# free -m
total used free shared buffers cached
Mem: 15837 15422 414 1 243 7538
-/+ buffers/cache: 7641 8196
Swap: 8191 62 8129
[root@bhkj ~]# top
top - 17:59:37 up 12 days, 2:36, 1 user, load average: 1.41, 1.25, 1.15
Tasks: 622 total, 1 running, 621 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.7%us, 0.2%sy, 0.0%ni, 96.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 16217916k total, 15926984k used, 290932k free, 249188k buffers
Swap: 8388604k total, 63908k used, 8324696k free, 7729772k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5040 root 20 0 7933m 1.0g 5964 S 108.3 6.6 16896:37 java
20684 mysql 20 0 8242m 5.8g 6236 S 14.6 37.8 1153:28 mysqld
5289 root 20 0 126m 3472 852 S 0.3 0.0 49:22.66 redis-server
69646 root 20 0 15432 1664 924 R 0.3 0.0 0:00.01 top
1 root 20 0 19364 1188 976 S 0.0 0.0 0:02.21 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.26 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:01.66 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.64 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:01.48 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/1
9 root 20 0 0 0 0 S 0.0 0.0 0:01.68 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:00.77 watchdog/1
11 root RT 0 0 0 0 S 0.0 0.0 0:00.05 migration/2
12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/2
13 root 20 0 0 0 0 S 0.0 0.0 0:01.24 ksoftirqd/2
14 root RT 0 0 0 0 S 0.0 0.0 0:00.54 watchdog/2
15 root RT 0 0 0 0 S 0.0 0.0 0:00.07 migration/3
16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/3
17 root 20 0 0 0 0 S 0.0 0.0 0:00.84 ksoftirqd/3
top - 18:01:18 up 12 days, 2:38, 1 user, load average: 1.25, 1.23, 1.16
Tasks: 623 total, 1 running, 621 sleeping, 1 stopped, 0 zombie
Cpu(s): 3.5%us, 0.2%sy, 0.0%ni, 96.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 16217916k total, 10714376k used, 5503540k free, 249472k buffers
Swap: 8388604k total, 63908k used, 8324696k free, 7759712k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5040 root 20 0 7933m 1.0g 5976 S 105.5 6.5 16898:25 java
70031 mysql 20 0 7921m 881m 6480 S 12.3 5.6 0:04.91 mysqld
1 root 20 0 19364 1188 976 S 0.0 0.0 0:02.21 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.26 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:01.66 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.64 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:01.48 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/1
9 root 20 0 0 0 0 S 0.0 0.0 0:01.68 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:00.77 watchdog/1
11 root RT 0 0 0 0 S 0.0 0.0 0:00.05 migration/2
12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/2
13 root 20 0 0 0 0 S 0.0 0.0 0:01.24 ksoftirqd/2
14 root RT 0 0 0 0 S 0.0 0.0 0:00.54 watchdog/2
15 root RT 0 0 0 0 S 0.0 0.0 0:00.07 migration/3
16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/3
17 root 20 0 0 0 0 S 0.0 0.0 0:00.84 ksoftirqd/3
18 root RT 0 0 0 0 S 0.0 0.0 0:00.60 watchdog/3
19 root RT 0 0 0 0 S 0.0 0.0 0:00.02 migration/4
20 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/4
21 root 20 0 0 0 0 S 0.0 0.0 0:01.03 ksoftirqd/4
22 root RT 0 0 0 0 S 0.0 0.0 0:00.52 watchdog/4
23 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/5
24 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/5
25 root 20 0 0 0 0 S 0.0 0.0 0:00.77 ksoftirqd/5
26 root RT 0 0 0 0 S 0.0 0.0 0:00.57 watchdog/5
27 root RT 0 0 0 0 S 0.0 0.0 0:00.01 migration/6
28 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/6
[root@bhkj ~]# ps -ef|grep java
root 5040 1 96 Jun04 ? 11-17:38:36 java -jar /root/plcServer/zhserver.jar
root 5083 1 0 Jun04 ? 00:42:22 java -jar /root/plcServer/datacenter.jar
root 70092 69594 0 18:01 pts/0 00:00:00 grep java
[root@bhkj ~]# top
top - 18:03:19 up 12 days, 2:40, 1 user, load average: 1.12, 1.19, 1.15
Tasks: 623 total, 1 running, 621 sleeping, 1 stopped, 0 zombie
Cpu(s): 3.2%us, 0.2%sy, 0.0%ni, 96.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 16217916k total, 10729760k used, 5488156k free, 251536k buffers
Swap: 8388604k total, 63908k used, 8324696k free, 7761320k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5040 root 20 0 7933m 1.0g 5976 S 106.0 6.4 16900:33 java
70031 mysql 20 0 7921m 905m 6668 S 3.3 5.7 0:14.75 mysqld
142 root 20 0 0 0 0 S 0.3 0.0 0:15.46 events/11
150 root 20 0 0 0 0 S 0.3 0.0 0:16.02 events/19
5289 root 20 0 126m 3444 852 S 0.3 0.0 49:23.32 redis-server
70097 root 20 0 15436 1672 924 R 0.3 0.0 0:00.02 top
1 root 20 0 19364 1188 976 S 0.0 0.0 0:02.21 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.26 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:01.66 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.64 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:01.48 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/1
9 root 20 0 0 0 0 S 0.0 0.0 0:01.68 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:00.77 watchdog/1
11 root RT 0 0 0 0 S 0.0 0.0 0:00.05 migration/2
12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/2
13 root 20 0 0 0 0 S 0.0 0.0 0:01.24 ksoftirqd/2
14 root RT 0 0 0 0 S 0.0 0.0 0:00.54 watchdog/2
15 root RT 0 0 0 0 S 0.0 0.0 0:00.07 migration/3
16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/3
17 root 20 0 0 0 0 S 0.0 0.0 0:00.84 ksoftirqd/3
18 root RT 0 0 0 0 S 0.0 0.0 0:00.60 watchdog/3
19 root RT 0 0 0 0 S 0.0 0.0 0:00.02 migration/4
20 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/4
21 root 20 0 0 0 0 S 0.0 0.0 0:01.03 ksoftirqd/4
22 root RT 0 0 0 0 S 0.0 0.0 0:00.52 watchdog/4
23 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/5
24 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/5
[root@bhkj ~]# ps -mp 14063 -o THREAD,tid,time
USER %CPU PRI SCNT WCHAN USER SYSTEM TID TIME
[root@bhkj ~]# ps -mp 5040 -o THREAD,tid,time
USER %CPU PRI SCNT WCHAN USER SYSTEM TID TIME
root 96.9 - - - - - - 11-17:41:10
root 0.0 19 - futex_ - - 5040 00:00:00
root 0.0 19 - futex_ - - 5041 00:00:01
root 0.2 19 - futex_ - - 5042 00:38:36
root 0.2 19 - futex_ - - 5043 00:38:09
root 0.2 19 - futex_ - - 5044 00:38:37
root 0.2 19 - futex_ - - 5045 00:38:41
root 0.2 19 - futex_ - - 5046 00:38:39
root 0.2 19 - futex_ - - 5047 00:38:38
root 0.2 19 - futex_ - - 5048 00:38:42
root 0.2 19 - futex_ - - 5049 00:38:37
root 0.2 19 - futex_ - - 5050 00:38:39
root 0.2 19 - futex_ - - 5051 00:38:41
root 0.2 19 - futex_ - - 5052 00:38:40
root 0.2 19 - futex_ - - 5053 00:38:41
root 0.2 19 - futex_ - - 5054 00:38:40
root 0.2 19 - futex_ - - 5055 00:38:41
root 0.2 19 - futex_ - - 5056 00:38:43
root 0.2 19 - futex_ - - 5057 00:38:15
root 0.2 19 - futex_ - - 5058 00:38:42
root 0.2 19 - futex_ - - 5059 00:38:40
root 0.2 19 - futex_ - - 5060 00:38:39
root 0.2 19 - futex_ - - 5061 00:38:42
root 0.2 19 - futex_ - - 5062 00:38:39
root 0.2 19 - futex_ - - 5063 00:38:38
root 0.2 19 - futex_ - - 5064 00:38:44
root 0.4 19 - futex_ - - 5065 01:23:15
root 0.0 19 - futex_ - - 5066 00:00:00
root 0.0 19 - futex_ - - 5067 00:00:00
root 0.0 19 - futex_ - - 5068 00:00:00
root 0.0 19 - futex_ - - 5069 00:00:10
root 0.0 19 - futex_ - - 5070 00:00:09
root 0.0 19 - futex_ - - 5071 00:00:00
root 0.0 19 - futex_ - - 5072 00:06:17
root 0.0 19 - ep_pol - - 5073 00:00:00
root 0.4 19 - futex_ - - 5074 01:21:11
root 0.2 19 - futex_ - - 5075 00:34:51
root 0.0 19 - futex_ - - 5076 00:02:57
root 0.0 19 - futex_ - - 5077 00:04:05
root 0.0 19 - futex_ - - 5078 00:06:02
root 0.0 19 - futex_ - - 5079 00:03:34
root 0.0 19 - futex_ - - 5080 00:02:58
root 90.2 19 - - - - 5081 10-21:58:15
root 0.0 19 - futex_ - - 5082 00:00:08
root 0.0 19 - futex_ - - 5140 00:00:00
root 0.0 19 - futex_ - - 5141 00:00:09
root 0.0 19 - futex_ - - 5142 00:01:12
root 0.0 19 - futex_ - - 5143 00:01:13
root 0.0 19 - futex_ - - 5144 00:01:11
root 0.0 19 - futex_ - - 5145 00:03:36
root 0.0 19 - ep_pol - - 58496 00:01:18
root 0.1 19 - futex_ - - 58497 00:05:58
root 0.1 19 - futex_ - - 58498 00:05:59
[root@bhkj ~]# ll
总用量 240
-rw-r--r-- 1 root root 240211 6月 4 16:13 dump.rdb
drwxr-xr-x. 5 root root 4096 5月 22 11:01 plcServer
[root@bhkj ~]# cd plcServer/
[root@bhkj plcServer]# ll
总用量 288224
-rw-r--r--. 1 root root 67630 5月 3 12:40 datacenter.jar
drwxr-xr-x. 2 root root 4096 3月 13 10:17 datacenter_lib
drwxr-xr-x 2 root root 4096 6月 4 00:00 logs
-rw-r--r-- 1 root root 294933123 6月 4 15:21 nohup.out
-rw-r--r--. 1 root root 114708 6月 4 15:04 zhserver.jar
drwxr-xr-x. 2 root root 4096 3月 12 17:15 zhserver_lib
[root@bhkj plcServer]# ps -ef|grep java
root 5040 1 96 Jun04 ? 11-17:44:15 java -jar /root/plcServer/zhserver.jar
root 5083 1 0 Jun04 ? 00:42:23 java -jar /root/plcServer/datacenter.jar
root 70112 69594 0 18:06 pts/0 00:00:00 grep java
[root@bhkj plcServer]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 124G 6.0G 112G 6% /
tmpfs 7.8G 72K 7.8G 1% /dev/shm
/dev/sda1 190M 41M 140M 23% /boot
/dev/mapper/datavg-lv1
2.1T 63G 1.9T 4% /data
[root@bhkj plcServer]# ps -mp 5040 -o THREAD,tid,time
USER %CPU PRI SCNT WCHAN USER SYSTEM TID TIME
root 96.9 - - - - - - 11-17:45:31
root 0.0 19 - futex_ - - 5040 00:00:00
root 0.0 19 - futex_ - - 5041 00:00:01
root 0.2 19 - futex_ - - 5042 00:38:36
root 0.2 19 - futex_ - - 5043 00:38:10
root 0.2 19 - futex_ - - 5044 00:38:37
root 0.2 19 - futex_ - - 5045 00:38:42
root 0.2 19 - futex_ - - 5046 00:38:39
root 0.2 19 - futex_ - - 5047 00:38:38
root 0.2 19 - futex_ - - 5048 00:38:43
root 0.2 19 - futex_ - - 5049 00:38:38
root 0.2 19 - futex_ - - 5050 00:38:39
root 0.2 19 - futex_ - - 5051 00:38:42
root 0.2 19 - futex_ - - 5052 00:38:41
root 0.2 19 - futex_ - - 5053 00:38:42
root 0.2 19 - futex_ - - 5054 00:38:41
root 0.2 19 - futex_ - - 5055 00:38:42
root 0.2 19 - futex_ - - 5056 00:38:44
root 0.2 19 - futex_ - - 5057 00:38:16
root 0.2 19 - futex_ - - 5058 00:38:43
root 0.2 19 - futex_ - - 5059 00:38:41
root 0.2 19 - futex_ - - 5060 00:38:39
root 0.2 19 - futex_ - - 5061 00:38:43
root 0.2 19 - futex_ - - 5062 00:38:40
root 0.2 19 - futex_ - - 5063 00:38:38
root 0.2 19 - futex_ - - 5064 00:38:44
root 0.4 19 - futex_ - - 5065 01:23:16
root 0.0 19 - futex_ - - 5066 00:00:00
root 0.0 19 - futex_ - - 5067 00:00:00
root 0.0 19 - futex_ - - 5068 00:00:00
root 0.0 19 - futex_ - - 5069 00:00:10
root 0.0 19 - futex_ - - 5070 00:00:09
root 0.0 19 - futex_ - - 5071 00:00:00
root 0.0 19 - futex_ - - 5072 00:06:17
root 0.0 19 - ep_pol - - 5073 00:00:00
root 0.4 19 - futex_ - - 5074 01:21:12
root 0.2 19 - futex_ - - 5075 00:34:52
root 0.0 19 - futex_ - - 5076 00:02:57
root 0.0 19 - futex_ - - 5077 00:04:05
root 0.0 19 - futex_ - - 5078 00:06:02
root 0.0 19 - futex_ - - 5079 00:03:34
root 0.0 19 - futex_ - - 5080 00:02:58
root 90.2 19 - - - - 5081 10-22:02:17
root 0.0 19 - futex_ - - 5082 00:00:08
root 0.0 19 - futex_ - - 5140 00:00:00
root 0.0 19 - futex_ - - 5141 00:00:09
root 0.0 19 - futex_ - - 5142 00:01:12
root 0.0 19 - futex_ - - 5143 00:01:13
root 0.0 19 - futex_ - - 5144 00:01:11
root 0.0 19 - futex_ - - 5145 00:03:36
root 0.0 19 - ep_pol - - 58496 00:01:18
root 0.1 19 - futex_ - - 58497 00:05:58
root 0.1 19 - futex_ - - 58498 00:05:59
[root@bhkj plcServer]# printf "%x\n" 5081
13d9
[root@bhkj plcServer]# jstack 5040 |grep 13d9 -A 30
"Thread-8" prio=10 tid=0x00007f5df505b000 nid=0x13d9 runnable [0x00007f5d8435f000]
java.lang.Thread.State: RUNNABLE
at com.hengtiansoft.plc.service.InOutDataService.run(InOutDataService.java:75)
at java.lang.Thread.run(Thread.java:745)

"Thread-7" prio=10 tid=0x00007f5df5059000 nid=0x13d8 waiting on condition [0x00007f5d84460000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at com.hengtiansoft.plc.service.DataIOService.run(DataIOService.java:65)
at java.lang.Thread.run(Thread.java:745)

"Thread-6" prio=10 tid=0x00007f5df5057000 nid=0x13d7 waiting on condition [0x00007f5d84a4c000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at com.hengtiansoft.plc.service.WriteBackService.run(WriteBackService.java:73)
at java.lang.Thread.run(Thread.java:745)

"Thread-5" prio=10 tid=0x00007f5df5056000 nid=0x13d6 waiting on condition [0x00007f5d84b4d000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at com.hengtiansoft.plc.service.DataAlarmService.run(DataAlarmService.java:81)
at java.lang.Thread.run(Thread.java:745)

"Thread-4" prio=10 tid=0x00007f5df5049800 nid=0x13d5 waiting on condition [0x00007f5d84c4e000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at com.hengtiansoft.plc.service.DataSwitchService.run(DataSwitchService.java:64)
at java.lang.Thread.run(Thread.java:745)

"Thread-3" prio=10 tid=0x00007f5df5048000 nid=0x13d4 waiting on condition [0x00007f5d84561000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
[root@bhkj plcServer]#

posted on 2018-11-19 15:25  小白君的成长  阅读(580)  评论(0)    收藏  举报