1. Problem Discovery[root@zwlbs3 ~]# top i. I found that the CPU usage of a process was 700%, and COMMAND was composed of some random strings. I was done! The first thing I thought of was to kill it. [root@zwlbs3 ~]# kill -9 "PID" ii. However, it was found that the process started again after being quiet for a while after being killed. Note: The old image is reused, and the PID and COMMAND have changed. 2. View detailed information of the process[root@zwlbs3 ~]# cd /proc/748/ [root@zwlbs3 748]# ls -ial # "748" is the PID of the process. You can check it according to your PID. As shown in the figure: It is found that the process is in the /dev/shm directory. What is /dev/shm? Let's take a paragraph from the Internet and explain /dev/shm 1) First of all, we can see that /dev/shm is a device file. We can think of /dev/shm as the entrance to the system memory. We can think of it as a physical storage device, a tmp filesystem. You can use this device to read and write files to the memory to speed up certain high I/O operations, such as frequent open, write, and read of a large file. 2) It is said that Oracle uses /dev/shm (shitou has never used Oracle), and the mount command can be used to list the current /dev/shm mounted file systems. 3) Since it is a memory-based file system, the files under /dev/shm will no longer exist after the system is restarted. The default Linux (CentOS) /dev/shm partition size is 50% of the system's physical memory, although using /dev/shm will be much more efficient for file operations. However, currently, few software distributions use it (except Oracle mentioned above). You can use ls /dev/shm to check whether there is a file under it. If not, it means that the current system is not using the device. Check if there are any related files in the /dev/shm directory [root@zwlbs3 ~]# ls -a /dev/shm/ . .. # There is no related file, which is strange.
3. Solutioni. View the thread occupancy analysis within a process [root@zwlbs3 ~]# top -H -p "PID" ii. There are so many related processes, kill them all iii. Check again after a few minutes and find that the system load has returned to normal I thought it was solved, but when I checked a few hours later, it appeared again. Damn it. Since it is not convenient to restart the server in the production environment, I had no choice but to try the restart method. 4. Restart DafaOne hour after restarting the server, I checked again and it had returned to normal. Restarting still works well. What does this malicious program do? Why only consume CPU resources? Since no relevant file information was found, the reason is not clear at the moment. If anyone knows please tell me, thank you very much! Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: MySQL Failover Notes: Application-Aware Design Detailed Explanation
>>: How to track users with JS
1. Call the parent component method directly thro...
Table of contents 1. Database design 2. Front-end...
When the DataSource property of a DataGrid control...
Here 123WORDPRESS.COM presents the first part of ...
There is a table user, and the fields are id, nic...
Preface Anyone who has used json should know that...
The box model specifies the size of the element b...
There are always some problems when configuring n...
Use JS to zoom in and out when the mouse is on th...
Problem Description Recently, a host reported the...
Since I have parsed HTML before, I want to use Vu...
Table of contents cycle for for-in for-of while d...
In the horizontal direction, you can set the alig...
When designing table structures, numeric types ar...
The content involved in Web front-end development...