In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will introduce in detail for you "Linux system how to view the number of threads", the content steps are clear and detailed, the details are handled properly, and the editor will update different knowledge points every day, I hope this article "Linux system how to view the number of threads" can give you unexpected gains, please follow the editor's ideas slowly in depth, the specific content is as follows, to harvest new knowledge.
Check thread 1 of Java, use ps-eLf | grep java | wc to view the number of Java threads running in the system 2, use top H to sort CPU and memory usage by thread and corresponding thread ID3, use killall-3 (unix only) or jstack-l to Dump out Java thread, and then view thread stack according to thread ID (nid corresponding to thread dump after conversion to hexadecimal)
Cat / proc/$ {pid} / status
\ 2. Pstree-p ${pid}
\ 3. Top-p ${pid} and then press H
Or enter top-bH-d 3-p ${pid} directly.
View process work strace-p ${pid}
Open iptables log iptables-t raw-I PREROUTING 1-p tcp-syn-m statistic-mode nth-every 5000-j LOG-log-prefix "IPTABLES DETECTING SYN:" tail / var/log/message close iptables log iptables-t raw-F
Check whether netstat-n-p TCP | grep SYN_RECV | grep: 80 | wc-lnetstat-tn | grep ESTABLISH | wc-l finds out whether the server has been attacked by DOS (see SYN_RECV) netstat-an | awk'{print $6}'| sort | uniq-c | sort-rn 5116 TIME_WAIT 1624 ESTABLISHED 531 FIN_WAIT1 512 FIN_WAIT2 126 SYN_RECV 10 CLOSING 9 LISTEN
Find server exception IP link netstat-an | awk'{print $5}'| cut-d ":"-F1 | sort | uniq-c | sort-rn | head
What are the versions of Linux? the versions of Linux are Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and so on. Among them, Deepin is one of the best-developed Linux distributions in China; UbuntuKylin is a derivative release based on Ubuntu; Manjaro is a Linux release based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP's easy-to-use; Ubuntu is the Linux operating system based on desktop applications.
Thank you for reading this. I hope you have the most profound understanding of the key issue of "how to check the number of threads in the Linux system" from the practical level, and you need to practice and use it yourself to understand it. If you want to read more related articles, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.