High cpu usage

mikajaxxx

Verified User
Joined
Sep 11, 2021
Messages
42
Hi
my cpu load goes above 50
the main reason seems to be this process:

/usr/local/directadmin/directadmin legacy-handler --config=data/admin/runtime.directadmin.conf --xfs-on-domains --syslog

it cosume all cpu and cause slow server
anyone could tell me how to disable this?
 

Attachments

  • error-log.png
    error-log.png
    39.3 KB · Views: 9
Hello,

The main reason is MySQL as far as I can see from your screenshot. MySQL can be overloaded because of several reasons:

1. ddos attack/httpd flood/vulnerability scanners/search bots/seo bots/etc
2. badly written script
3. malware

The directadmin legacy-handler is a directadmin process, you should not want to stop it)

More reading:

- https://docs.directadmin.com/webser...ch-engine-crawlers-are-increasing-system-load
- https://docs.directadmin.com/other-...db-mysql/general.html#how-to-track-mysql-load
- https://docs.directadmin.com/other-...leshooting.html#mysql-queries-cause-high-load
- https://docs.directadmin.com/webser...ow-to-track-which-site-is-producing-high-load

or hire somebody to fix it for you.

the main reason seems to be this process:
 
as i investigated the main reason is --xfs-on-domains --syslog which maybe is related to xfx disk quota & writing to log file
could you help me to disable this feature?
 
Thanks for your attention
i folow your instuct as i see the only process with 283 s time is da_admin
 

Attachments

  • processlist.png
    processlist.png
    61.6 KB · Views: 6
The subject was already discussed here on the forums many times. So if you want to troubleshoot it on your own, you would need to read existing threads and suggested documentation. Some threads, where I participated too, already have step-by-step instructions, they did not change since years.
 
tnx again
i check the mysql process list & even suspend all users to see where is the problem the only user have hi time is da_admin with around 1244.
but the cpu load is still high
so if the mysql is ok the problem should be because of this on?
legacy-handler --config=data/admin/runtime.directadmin.conf --xfs-on-domains --syslog
i am searching for this issue all around the internet nothing found
 

Attachments

  • processlist2.png
    processlist2.png
    37.2 KB · Views: 6
Ok i found the solution by your help
i add these codes to directadmin.conf
use_syslogd=1
disk_usage_suspend=0

now the cpu load is gone !!!!!!!! its now around 2
i can't believe the solution was such easy. please inform the directadmin support to address this problem about directadmin.
 
i can't believe the solution was such easy. please inform the directadmin support to address this problem about directadmin.

If directadmin writes too much logs, then you would need to investigate why is it so.

The real reason is probably that directadmin tries to block IPs, and fail. Just a guess...
 
Back
Top