Control Web Panel

WebPanel => Information => Topic started by: PiotrE on January 07, 2021, 12:03:00 PM

Title: How to tell which user consumes the most resources?
Post by: PiotrE on January 07, 2021, 12:03:00 PM
Hi,
is there a way we can check which user consumes the most of the resources??
I have around 60 users on one server and I got feeling one of them put a lot of stress to whole server.

Ive set limits in /Security/cgroups - > Limit server resources (cgroups) -  they are all red (Columns in red are disabled in cgroups limits configuration. )

Anyway - is there a way I could monitor which user take the most server resources?

King regards,
 Piotr
Title: Re: How to tell which user consumes the most resources?
Post by: Igor S. on January 08, 2021, 11:31:49 AM
You can use the top/htop commands to see the process you need
Title: Re: How to tell which user consumes the most resources?
Post by: PiotrE on January 08, 2021, 07:04:26 PM
Thank You. But theres a way we could monitor user usage in longet timeframe? To see who is using the most resources on server over a month or so?
Title: Re: How to tell which user consumes the most resources?
Post by: Igor S. on January 11, 2021, 11:43:38 PM
No default things configured for that.
You can try to configure the console SA util, for example. Or you can configure some monitoring like Zabbix, Munin, Nagios etc
Title: Re: How to tell which user consumes the most resources?
Post by: cinique on January 11, 2021, 11:50:39 PM
Or you can configure some monitoring like Zabbix, Munin, Nagios etc
Was thinking I might submit a short tutorial on installing munin, if thought useful.
Title: Re: How to tell which user consumes the most resources?
Post by: Sandeep on January 12, 2021, 09:16:10 AM
use glances you will get log in it.
Title: Re: How to tell which user consumes the most resources?
Post by: PiotrE on January 12, 2021, 11:28:36 AM
Thank You for all responces.

Munin, afaik cant provide statistics per user- Ive used it before, on cPanel but it only gives me "total", summarize stats per whole server- not per user. But If I mistaken - please post tutorial if You can ;-)

I am looking for a solution to have simple stats like concurrent connections, visitors count, bandwidth but per user in long time-frame (no TOP like information - this second only)
Is this possible?

Basically - for 60 users I have on my server, one of them stress server very much and I can find which user cause this.

High load is purely random to that extend that every few days apache hang and stop serving pages. Manual restart help but I would like to pinpoint user (and dont have time to sit 24h and look after every load spikes ;-D)

 Ill look into "Glances"
Title: Re: How to tell which user consumes the most resources?
Post by: cinique on January 12, 2021, 02:40:32 PM
..
Munin, afaik cant provide statistics per user..
Untested..
https://gallery.munin-monitoring.org/plugins/munin-contrib/procbyuser/
https://gallery.munin-monitoring.org/plugins/munin-contrib/membyuser/