Page 1 of 1

High CPU/RAM usage

Posted: Mon Feb 15, 2016 11:01 am
by codemasterxv
Hello everyone,

I have server specifications 1TB HDD 2GB RAM, and now its using soo much RAM and cpu CentOS 7.2.1511

following statics:


CentOS 7.2.1511
(x86_64)

LoadAverage:
1.00


Uptime:
9 minutes
httpd
web server

CPU: 0
Memory: 484 mb

Uptime: 9 minutes
nginx
reverse proxy

CPU: 0
Memory: 6 mb

Uptime: 9 minutes
named
dns server

CPU: 0
Memory: 6 mb

Uptime: 9 minutes
exim
mail server

CPU: 0
Memory: 1 mb

Uptime: 9 minutes
dovecot
pop/imap server

CPU: 0
Memory: 0 mb

Uptime: 9 minutes
clamd
email antivirus

CPU: 9.0
Memory: 264 mb

Uptime: 9 minutes
spamassassin
email antispam

CPU: 9.0
Memory: 1968 mb

Uptime: 9 minutes
mariadb
database server

CPU: 0
Memory: 675 mb

Uptime: 9 minutes
vsftpd
ftp server

CPU: 0
Memory: 0 mb

Uptime: 9 minutes
crond
job scheduler

CPU: 0
Memory: 1 mb

Uptime: 9 minutes
iptables
firewall

CPU: 0
Memory: 0 mb

Uptime: 0 minutes
fail2ban
brute-force monitor

CPU: 0
Memory: 6 mb

Uptime: 9 minutes



I have total 5 vestacp's installed on various server but this server eating more resources please help me out.

Thanks in Advance.

Re: High CPU/RAM usage

Posted: Mon Feb 15, 2016 11:49 am
by tjebbeke
Check your log files.

Re: High CPU/RAM usage

Posted: Tue Feb 16, 2016 2:40 pm
by codemasterxv
I checked its was due to ClamAV cpu usage but RAM is a problem

Re: High CPU/RAM usage

Posted: Tue Feb 16, 2016 2:54 pm
by skurudo
You can try this:

Code: Select all

mkdir /var/run/clamav/
сhown clam:mail /var/run/clamav/
Issue already registred on bug tracker - https://bugs.vestacp.com/issues/122

Re: High CPU/RAM usage

Posted: Tue Sep 27, 2016 4:14 pm
by baijianpeng
skurudo wrote:You can try this:

Code: Select all

mkdir /var/run/clamav/
сhown clam:mail /var/run/clamav/
I noticed that even after I created that dir and chowned "clam.clam" permissions, the CPU usage is still very high, always around 99%, sometimes drop down to 80% but then increased again. When checking with the "top" command, the most CPU usage is from clamd.

My VestaCP is the latest version v0.98-16, installed on CentOS 7.

If I stop clamd, then the CPU usage will down to below 20%, often around 4%.

Why?