After the process runs under linux, the process information is stored in the /proc/ process id directory. Process id view command ps-ef|grep process name, vi/proc/ process id/environ search PWD field is the directory where the process runs.
In linux, how to check the service name corresponding to the process?
1。 Check the port number netstat-ANP # netstat-ANP | grepsylogupd000 occupied by the process. 0。 0。 0:5 140。
0。 0。 0:*3 1483/syslogd
2。
Check the process lsof # lsof-I: 514 commandpiduserfdtypedevicedenonamenet d4027root6pv48560tcp *: shell (listen) syslogd31483root8uipv 428081UDP *: syslog.
Linux memory is full, how to find out which process is occupying it?
You'd better find a professional to check it for a while. Top command to see which process takes up more memory and what services your current server provides. If it is a web service such as nginx, use netstat-anptu to check the number of connections and see how many accesses there are at present. The effect of monitoring platform and top-level command is different, and this problem should be solved. r
Which process does linux see to generate folders?
You can use ps-fe|grepfilename, or use fuserfilename to view only the process:
Ps-ef|grep 1 1345 View files opened by this process: lsof-p 1 1345 View memory allocation: lcat/proc/11345/maps View stack: