• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers

Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

How to check user account for particular process in Apache

Started by Kevin, August 15, 2008, 12:54:37 AM

Kevin

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