How to check user account for particular process in Apache
« on: August 15, 2008, 12:54:37 AM »
Hi,

If phpsusex is not enabled on the server then it is bit difficult to identify which user high resource because you will get 'nobody' as process owner. If a particular httpd process is using high resource then you can check it which account is belonging to this process using the following command:

grep $(lsof -p PID | grep cwd | awk '{print $9}' | awk -F '/' '{ print $3 }') /etc/userdomains

Replace PID with actual process ID. This should work on cPanel server. I am not sure if it works with other control panel.

KEvin