[BlueOnyx:25397] Re: Aventurine CPU

Greg Kuhnert gkuhnert at compassnetworks.com.au
Wed Apr 27 04:43:15 -05 2022


Hi Colin.

Attached is a little nugget I made a while back. I have it in a cron job running every hour. If load gets high, it will fire an email to the server admin via standard cron email address. When you run it directly (not from cron), it will show the same report regardless of load.

The top part of the report shows load by VPS-id. Below that you will see a process list of active running processes, that also includes the VPS-id. It doesn’t show percentage of CPU load for the task list, but it is sorted from highest to lowest CPU load, so it will quickly and easily point you to what you need to see. Tasks that are not “active” are excluded.

I hope this is useful.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vzuptime.sh
Type: application/octet-stream
Size: 647 bytes
Desc: not available
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20220427/4e1f6fd0/attachment.obj>
-------------- next part --------------


> On 27 Apr 2022, at 6:02 pm, Colin Jack <colin at mainline.co.uk> wrote:
> 
> Thanks Michael,
> 
>    If you tell me where this is I can take a look. When you use "vztop" 
>    instead of "top" you get more VPS specific information that quickly 
>    helps to identify which VPS a process relates to.
> 
>    That would help to find out which VPS causes the load. Or you could 
>    check the load inside each VPS with "w" or "top". Likewise: The VPS-List 
>    in the Aventurin{e} GUI shows the load averages of each VPS.
> 
> I will see if I can work it out using your guidance first before calling for the cavalry! <grin>.
> I wasn't aware of vztop but that will definitely help find the culprit!
> 
> Kind regards
> 
> Colin
> 
> 
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx



More information about the Blueonyx mailing list