How to look for a mysterious process in Linux that is consuming too many resources

  LINUX

ss: The ss command is useful utility for displaying socket statistics. To list all open services and their associated ports, use the following command: ss -tuln. Similar to netstat, this command will show TCP (-t) and UDP (-u) connections, listening (-l) ports, and display the port numbers (-n) instead of resolving them to service names

lsof: The lsof command lists open files, including network connections. To list open services and the ports they are using, run the following command: lsof -i. This will display all open network connections and associated processes. You can also combine it with the grep command to filter the output based on specific ports or services.

netstat: The netstat command displays active network connections, listening ports, and statistics. To list all open services and the ports they are using, run the following command: netstat -tuln. This will show TCP (-t) and UDP (-u) connections, listening (-l) ports, and display the port numbers (-n) instead of resolving them to service names.
The vmstat command in Linux is used to provide information about virtual memory, system processes, CPU usage, and other system statistics. It displays a summary of memory, CPU, and I/O statistics at a given interval.

The iostat command in Linux is used to report CPU, disk I/O, and partition statistics. It provides detailed information about input/output (I/O) operations and disk utilization.

 

Do you like to read more educational content? Read our blogs at Cloudastra Technologies or contact us for business enquiry at Cloudastra Contact Us.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top