Disable bzip2 logs feature [ADDED]

Any ideas, need some features post your mind here

Disable bzip2 logs feature [ADDED]

New postby Friend7 » Fri Apr 06, 2012 9:22 pm

Hello,

I would like to disable bzip2 log feature.

It eats too much CPU (129%) and it slows down the VPSs too much.

It does not work well in a "VPS Environment" because it "loads" too much MySQL server as well.

Image

Code: Select all
root@ns7:~# ps aux --sort %cpu|tail -n 25
postfix   9753  0.0  2.7 303656 144956 ?       SN   13:25   0:00 /usr/local/sbin
/amavisd (ch1-avail)
root      3384  0.0  0.0 163424  2284 ?        Ssl  Apr02   1:16 /usr/sbin/nscd
root      3477  0.0  0.7 379576 39660 ?        SNs  Apr02   1:44 /usr/sbin/apach
e2 -k start
root      1983  0.0  0.4 268048 23036 ?        SN   13:18   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.syslog.php
root     21801  0.0  0.2 861984 11432 ?        SNsl Apr04   1:15 /usr/sbin/slapd
-4 -u root -g root -f /etc/ldap/slapd.conf -h ldap://127.0.0.1:389/
root      1965  0.0  0.4 269416 24692 ?        SN   13:18   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.maillog.php
postfix  31832  0.0  0.0  41020  1700 ?        SNs  13:23   0:00 /usr/bin/freshc
lam --daemon --config-file=/etc/clamav/freshclam.conf --pid=/var/run/clamav/fres
hclam.pid --user=postfix --log=/var/log/clamav/freshclam.log
root     17883  0.1  0.1 265060 10260 ?        SN   13:33   0:00 /usr/bin/php-cg
i
root      1696  0.1  0.5  96552 28972 ?        SNsl Apr02   8:15 /usr/bin/memcac
hed -d -s /var/run/memcached.sock -a 777 -u root -P /var/run/memcached.pid
root     17956  0.1  0.3 270188 16004 ?        SN   13:34   0:00 /usr/bin/php-cg
i
root     17542  0.1  0.1 265060 10252 ?        SN   13:33   0:00 /usr/bin/php-cg
i
root     24011  0.2  0.5 271476 26800 ?        SNs  13:31   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.logrotate.php --mysql
root     24046  0.2  0.5 271924 27288 ?        SNs  13:31   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.logrotate.php --run
root      9828  0.3  0.4 280544 26208 ?        SN   Apr05   7:03 /usr/bin/php5 /
usr/share/artica-postfix/exec.executor.php
root     28352  0.6  0.7 291016 37224 ?        SN   Apr05   7:29 /usr/bin/php5 /
usr/share/artica-postfix/exec.status.php
root     21594  0.6  0.0  11264  1300 pts/1    S<+  13:34   0:00 htop
root     18241  0.7  0.4 279004 24584 ?        SN   Apr04  20:19 /usr/bin/php5 /
usr/share/artica-postfix/exec.parse-orders.php
mysql     3340  9.9  2.8 749048 149592 ?       SNl  Apr02 620:27 /usr/sbin/mysql
d --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysq
l/ns7.err --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.
sock --port=3306
root     28284  6.5  0.6 279092 34016 ?        SN   13:35   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.last.100.mails.php
root     28286 12.0  0.6 277268 32352 ?        RN   13:35   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.admin.smtp.flow.status.php
root     28289 13.0  0.6 276700 31820 ?        RN   13:35   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.clean.logs.php --clean-tmp
root     28214 25.3  0.1  13296  7028 ?        RN   13:35   0:00 /bin/bzip2
root     28211 27.0  0.1  13296  7024 ?        RN   13:35   0:00 /bin/bzip2
root     28299  8.0  0.5 272704 27364 ?        RNs  13:35   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.setup-center.php --install
root     28301 10.0  0.5 276036 30792 ?        RNs  13:35   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.syslog-engine.php --snort
root@ns7:~#
root@ns7:~#
root@ns7:~#
root@ns7:~#
root@ns7:~# ps aux --sort %cpu|tail -n 25
root     14261  0.0  0.0  38960  2612 ?        SN   Apr02   0:29 /usr/sbin/green
sql-fw -p /etc/greensql
root      1800  0.0  0.4 379576 24592 ?        SN   13:32   0:00 /usr/sbin/apach
e2 -k start
root      1112  0.0  0.2 214512 15080 ?        SNl  Apr04   0:24 /usr/bin/zarafa
-server -c /etc/zarafa/server.cfg --ignore-attachment-storage-conflict
postfix   9746  0.0  2.7 303656 144956 ?       SN   13:25   0:00 /usr/local/sbin
/amavisd (ch1-avail)
postfix   9753  0.0  2.7 303656 144956 ?       SN   13:25   0:00 /usr/local/sbin
/amavisd (ch1-avail)
root      3384  0.0  0.0 163424  2284 ?        Ssl  Apr02   1:16 /usr/sbin/nscd
root     19504  0.0  0.0  99460  4372 ?        S<s  13:34   0:00 sshd: root@pts/
1,pts/2
root      3477  0.0  0.7 379576 39660 ?        SNs  Apr02   1:44 /usr/sbin/apach
e2 -k start
root      1983  0.0  0.4 268048 23036 ?        SN   13:18   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.syslog.php
root     21801  0.0  0.2 861984 11432 ?        SNsl Apr04   1:15 /usr/sbin/slapd
-4 -u root -g root -f /etc/ldap/slapd.conf -h ldap://127.0.0.1:389/
root      1965  0.0  0.4 269416 24692 ?        SN   13:18   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.maillog.php
postfix  31832  0.0  0.0  41020  1700 ?        SNs  13:23   0:00 /usr/bin/freshc
lam --daemon --config-file=/etc/clamav/freshclam.conf --pid=/var/run/clamav/fres
hclam.pid --user=postfix --log=/var/log/clamav/freshclam.log
root     17883  0.1  0.1 265060 10260 ?        SN   13:33   0:00 /usr/bin/php-cg
i
root      1696  0.1  0.5  96552 28972 ?        SNsl Apr02   8:15 /usr/bin/memcac
hed -d -s /var/run/memcached.sock -a 777 -u root -P /var/run/memcached.pid
root     17956  0.1  0.3 270188 16004 ?        SN   13:34   0:00 /usr/bin/php-cg
i
root     17542  0.1  0.1 265060 10252 ?        SN   13:33   0:00 /usr/bin/php-cg
i
root     24011  0.2  0.5 271476 26800 ?        SNs  13:31   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.logrotate.php --mysql
root     24046  0.2  0.5 271924 27288 ?        SNs  13:31   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.logrotate.php --run
root      9828  0.3  0.4 280544 26208 ?        SN   Apr05   7:03 /usr/bin/php5 /
usr/share/artica-postfix/exec.executor.php
root     21594  0.6  0.0  11264  1304 pts/1    S<+  13:34   0:00 htop
root     28352  0.6  0.7 291016 37224 ?        SN   Apr05   7:29 /usr/bin/php5 /
usr/share/artica-postfix/exec.status.php
root     18241  0.7  0.4 279004 24584 ?        SN   Apr04  20:19 /usr/bin/php5 /
usr/share/artica-postfix/exec.parse-orders.php
root     28301  7.4  0.6 278392 33824 ?        SNs  13:35   0:00 /usr/bin/php5 /
usr/share/artica-postfix/exec.syslog-engine.php --snort
mysql     3340  9.9  2.8 749048 149592 ?       SNl  Apr02 620:27 /usr/sbin/mysql
d --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysq
l/ns7.err --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.
sock --port=3306
root     28214 29.4  0.0      0     0 ?        DN   13:35   0:02 [bzip2]

Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Re: Disable bzip2 logs feature [OPEN]

New postby abolinhas » Mon Apr 09, 2012 3:37 pm

I have the same problem tom on my dedicated server bzip2 cosume about 98% of cpu
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Re: Disable bzip2 logs feature [OPEN]

New postby Friend7 » Mon Apr 09, 2012 5:52 pm

when bzip2 and MySQL "work together", all my servers are unresponsive.

Websites cannot be accessed through Freewebs during the "unresponsive time"

WordPress cannot access to MySQL as well.
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Re: Disable bzip2 logs feature [OPEN]

New postby abolinhas » Mon Apr 09, 2012 8:23 pm

In my case is when Artica is comressing the Log's.

@Friend7.
when bzip2 and MySQL "work together", all my servers are unresponsive.

You mean backup task ?
If yes you can disable bzip compression
Image
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Re: Disable bzip2 logs feature [OPEN]

New postby Friend7 » Mon Apr 09, 2012 8:30 pm

@abolinhas

Thanks ... I meant this:

It seems this is the new feature that manage logs on your server:
It is in charge of compress old logs and insert them into mysql database.


http://forum.artica.fr/viewtopic.php?f=10&t=5373

Image
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Re: Disable bzip2 logs feature [OPEN]

New postby admin » Mon Apr 09, 2012 8:50 pm

I have added in 1.6.040922 the possibility to disable gzip compression in Mysql injection and log rotation.

09-04-2012 22-48-42.png
09-04-2012 22-48-42.png (134.36 KiB) Viewed 5827 times
User avatar
admin
Site Admin
 
Posts: 11943
Joined: Wed Oct 17, 2007 7:59 am
Location: France


Return to Features requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron