-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb6cc04
commit cdfa394
Showing
19 changed files
with
224 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ls /proc/$(pidof java)/task/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ps -eLf | less |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
UID PID PPID LWP C NLWP STIME TTY TIME CMD | ||
root 1 0 1 0 1 Aug06 ? 00:00:13 /sbin/init | ||
root 2 0 2 0 1 Aug06 ? 00:00:00 [kthreadd] | ||
root 3 2 3 0 1 Aug06 ? 00:00:00 [rcu_gp] | ||
... | ||
root 1984 2 1984 0 1 Aug06 ? 00:00:00 [nvidia] | ||
root 1985 2 1985 0 1 Aug06 ? 00:00:03 [nv_queue] | ||
grafana 2001 1 2001 0 57 Aug06 ? 00:00:00 /usr/share/grafana/bin/grafana server --config=/etc/grafana/grafana.ini --pidfile=/run/grafan | ||
grafana 2001 1 2389 0 57 Aug06 ? 00:00:10 /usr/share/grafana/bin/grafana server --config=/etc/grafana/grafana.ini --pidfile=/run/grafan | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# 这里检查grafana进程的线程情况 | ||
pstree -pau -l -g -s 2001 |
16 changes: 16 additions & 0 deletions
16
source/kernel/process/process_vs_thread/pstree_thread_output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
systemd,1,1 | ||
└─grafana,2001,2001,grafana server --config=/etc/grafana/grafana.ini --pidfile=/run/grafana/grafana-server.pid --packaging=deb cfg:default.paths.logs=/var/log/grafana cfg:default.paths.data=/var/lib/grafana cfg:default.paths.plugins=/var/lib/grafana/plugins cfg:default.paths.provisioning=/etc/grafana/provisioning | ||
├─pcp_redis_datas,4012,2001 | ||
│ ├─{pcp_redis_datas},4013,2001 | ||
│ ├─{pcp_redis_datas},4014,2001 | ||
│ ├─{pcp_redis_datas},4015,2001 | ||
│ ├─{pcp_redis_datas},4016,2001 | ||
│ ├─{pcp_redis_datas},4018,2001 | ||
│ ├─{pcp_redis_datas},4019,2001 | ||
│ ├─{pcp_redis_datas},4020,2001 | ||
│ └─{pcp_redis_datas},4021,2001 | ||
├─{grafana},2389,2001 | ||
├─{grafana},2390,2001 | ||
├─{grafana},2391,2001 | ||
├─{grafana},2394,2001 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
source/kernel/process/thread_count/change_kernel_pid_max_output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
echo kernel.pid_max = 65534 >> /etc/sysctl.conf | ||
sysctl -p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cat /proc/sys/kernel/pid_max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4194304 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cat /proc/sys/kernel/threads-max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3093599 |
1 change: 1 addition & 0 deletions
1
source/kernel/process/thread_count/linux_os_max_threads_process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ps -eo pid,command,nlwp | sort -n -k3 |
5 changes: 5 additions & 0 deletions
5
source/kernel/process/thread_count/linux_os_max_threads_process_output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
... | ||
198370 /usr/local/bin/containerd-s 208 | ||
413302 /usr/local/bin/containerd-s 352 | ||
73275 sleep 86400 1 | ||
378199 /usr/local/bin/containerd-s 149804 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ulimit -a | grep -i processes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
max user processes (-u) 1546799 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
top - 15:54:58 up 1 day, 4:53, 11 users, load average: 0.54, 0.63, 0.60 | ||
Tasks: 629 total, 1 running, 628 sleeping, 0 stopped, 0 zombie | ||
%Cpu(s): 0.3 us, 0.2 sy, 0.0 ni, 99.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st | ||
MiB Mem : 386813.0 total, 329241.6 free, 52052.1 used, 5519.3 buff/cache | ||
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 332442.0 avail Mem | ||
|
||
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND nTH | ||
2001 grafana 20 0 5025464 144876 66116 S 0.0 0.0 3:46.33 grafana 57 | ||
46488 root 20 0 4700380 66800 48436 S 0.0 0.0 1:34.33 dockerd 54 | ||
2020 prometh+ 20 0 2214844 113796 55460 S 0.0 0.0 4:12.47 prometheus 53 | ||
2014 prometh+ 20 0 726728 21224 11968 S 0.0 0.0 14:22.54 node_exporter 52 | ||
2007 ipmi-ex+ 20 0 716884 17480 8512 S 0.0 0.0 0:41.42 ipmi_exporter 29 | ||
81266 huatai 20 0 2001676 10292 5252 S 0.0 0.0 0:02.28 apache2 27 | ||
81267 huatai 20 0 2001676 10644 5384 S 0.0 0.0 0:02.40 apache2 27 | ||
37897 root 20 0 2467684 50008 33528 S 0.0 0.0 1:43.43 containerd 24 | ||
57113 root 20 0 2018900 49400 33808 S 0.0 0.0 0:00.84 libvirtd 22 | ||
4012 grafana 20 0 718192 13124 10008 S 0.0 0.0 0:00.09 pcp_redis_datas 9 | ||
7300 libvirt+ 20 0 16.7g 16.0g 19668 S 7.3 4.2 131:08.50 qemu-system-x86 9 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
top - 16:02:21 up 405 days, 5:56, 1 user, load average: 100.40, 94.44, 95.02 | ||
Tasks: 1654 total, 2 running, 1017 sleeping, 0 stopped, 19 zombie | ||
%Cpu(s): 57.6 us, 15.1 sy, 0.0 ni, 27.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st | ||
KiB Mem : 79093344+total, 22562152 free, 34725468 used, 73364582+buff/cache | ||
KiB Swap: 0 total, 0 free, 0 used. 52038676 avail Mem | ||
|
||
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND nTH | ||
378199 root 20 0 355.1g 6.5g 5.6g S 66.5 0.9 343573:12 rund-c8fe00be 14+ | ||
413302 root 20 0 375.5g 350.1g 350.0g S 2654 46.4 262097,00 rund-10930310 352 | ||
423338 root 20 0 10.7g 166248 53324 S 13.0 0.0 4787:05 containerd 236 | ||
198370 root 20 0 31.2g 7.3g 7.2g S 110.8 1.0 470711:52 rund-822bb8d1 205 | ||
405808 root 20 0 168512 45700 10036 S 0.0 0.0 813:53.55 node_agent_k8s 168 | ||
... |