Control Web Panel

WebPanel => How to => Topic started by: PiotrE on May 13, 2020, 05:50:46 AM

Title: High Load - user 'Nobody' consume my server - how to pinpoint a user?
Post by: PiotrE on May 13, 2020, 05:50:46 AM
Hi,
its a way to pinpoint a user nobody account? Since few days some account consume almost all server resources. Ive start to search for NOBODY accounts which is an default Apache user but I cant find anyone using nobody files fights.

Is there a way to find which script/folder cause high load?
Title: Re: High Load - user 'Nobody' consume my server - how to pinpoint a user?
Post by: rcschaff on May 13, 2020, 05:55:51 AM
"top" command to find out what process is using all of your resources (Chances are apache/mysql/php).
Title: Re: High Load - user 'Nobody' consume my server - how to pinpoint a user?
Post by: PiotrE on May 13, 2020, 06:38:42 AM
Thank You - of course  Ive tried top. But still have problem with pinpoint process to specific folder/script.

"top" command to find out what process is using all of your resources (Chances are apache/mysql/php).
Title: Re: High Load - user 'Nobody' consume my server - how to pinpoint a user?
Post by: rcschaff on May 13, 2020, 08:41:06 AM
once "TOP" is loaded, hit SHIFT+F to bring up interactive selector.  Use up/Down arrows to select RUSER, then hit "d" to add a start next to it.   go back up to %CPU, and hit "s".   Hit "Enter" then "Esc" to see the top used process with a username.
Title: Re: High Load - user 'Nobody' consume my server - how to pinpoint a user?
Post by: PiotrE on May 13, 2020, 11:44:28 AM
once "TOP" is loaded, hit SHIFT+F to bring up interactive selector.  Use up/Down arrows to select RUSER, then hit "d" to add a start next to it.   go back up to %CPU, and hit "s".   Hit "Enter" then "Esc" to see the top used process with a username.

Thnak You! I didnt know about such function in TOP....

Still - user nobody is known in RUSER column as nobody so didnt help much. ;-) I still dont know what script cause this...
Title: Re: High Load - user 'Nobody' consume my server - how to pinpoint a user?
Post by: Sandeep on May 13, 2020, 11:59:03 AM
nobody is apache user
Title: Re: High Load - user 'Nobody' consume my server - how to pinpoint a user?
Post by: PiotrE on May 13, 2020, 01:17:18 PM
nobody is apache user

Hi Sandeep!
thank for stepping by ;-)
I know that an APache username but the issue remains - how to find what script cause high load. Apache is just processing queries made by some script with user set as nobody.

How to precisely find out where is that script?
kind regards,
 Piotr
Title: Re: High Load - user 'Nobody' consume my server - how to pinpoint a user?
Post by: rcschaff on May 13, 2020, 07:55:58 PM
https://serverfault.com/questions/487530/find-out-what-high-cpu-usage-apache-process-is-actually-doing


use gdb, or check out mod_status