yet another apache2 tuning thread

Discussion in 'Server Operation' started by Ovidiu, Jan 24, 2011.

  1. Ovidiu

    Ovidiu Active Member

    The problem seems to be memory. Running Debian latest with ispcfg3. tried optimizing apache, then placed nginx as a front-end proxy still the same problem. details about the server can be found here, its nice graphs and you will see the dire memory probs I am having: http://h1550830.stratoserver.net/munin/stratoserver.net/h1550830.stratoserver.net/index.html

    server details:


    model name : Dual-Core AMD Opteron(tm) Processor 1214 HE
    stepping : 3
    cpu MHz : 2200.000
    cache size : 1024 KB


    cat /proc/meminfo
    MemTotal: 4047116 kB
    MemFree: 944716 kB
    Buffers: 118796 kB
    Cached: 1522848 kB
    SwapCached: 407656 kB
    Active: 2422260 kB
    Inactive: 529960 kB
    SwapTotal: 2104496 kB
    SwapFree: 1046996 kB

    current situation:

    free
    total used free shared buffers cached
    Mem: 4047116 3219260 827856 0 118808 1555688
    -/+ buffers/cache: 1544764 2502352
    Swap: 2104496 1057392 1047104

    running about 7-8 low traffic sites, mostly wordpress based. most of the sites didn't have more than 2GB of traffic the whole last year. only one of them had 30GB traffic over the last year.
    One of them sends out a daily newsletter at night to about 8000 recipients.

    current status looks like this:

    ls /etc/apache2/mods-enabled/
    actions.conf alias.load authz_default.load authz_user.load cgi.load dir.conf fcgid.conf headers.load mime.load php5.conf rpaf.conf setenvif.conf ssl.load suexec.load
    actions.load auth_basic.load authz_groupfile.load autoindex.conf deflate.conf dir.load fcgid.load include.load negotiation.conf php5.load rpaf.load setenvif.load status.conf suphp.conf
    alias.conf authn_file.load authz_host.load autoindex.load deflate.load env.load headers.conf mime.conf negotiation.load rewrite.load ruby.load ssl.conf status.load suphp.load

    please also see screenshots.

    http://screencast.com/t/vg78MAuXi
    http://screencast.com/t/zxKoNAtohOP
    http://screencast.com/t/WbLjTqw7Q

    Please let me know if you need more info or if you have any suggestions.
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    First I would recommend that you remove nginx from that setup. Your current hardware is able to run at least 100 or more wordpress blogs.

    After you removed nginx, we can start to debug your setup to find out why it uses so much ram.

    - Which php mode have you selected for the websites?
    - Is suexec enabled?
    - Post the output of:

    ps aux
     
  3. Ovidiu

    Ovidiu Active Member

    thx. lets get started:

    - will get to work and disable nginx proxy tonight, meanwhile ehre are the answers to your other questions:

    - the 2 biggest sites are running fastcgi + suexec while the rest are running suPhp

    ps aux:


    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 0.0 10316 88 ? Ss 2010 3:20 init [2]
    root 2 0.0 0.0 0 0 ? S< 2010 0:00 [kthreadd]
    root 3 0.0 0.0 0 0 ? S< 2010 0:20 [migration/0]
    root 4 0.0 0.0 0 0 ? S< 2010 0:42 [ksoftirqd/0]
    root 5 0.0 0.0 0 0 ? S< 2010 0:31 [watchdog/0]
    root 6 0.0 0.0 0 0 ? S< 2010 0:15 [migration/1]
    root 7 0.0 0.0 0 0 ? S< 2010 0:44 [ksoftirqd/1]
    root 8 0.0 0.0 0 0 ? S< 2010 0:02 [watchdog/1]
    root 9 0.0 0.0 0 0 ? S< 2010 4:19 [events/0]
    root 10 0.0 0.0 0 0 ? S< 2010 5:07 [events/1]
    root 11 0.0 0.0 0 0 ? S< 2010 0:00 [khelper]
    root 46 0.0 0.0 0 0 ? S< 2010 0:11 [kblockd/0]
    root 47 0.0 0.0 0 0 ? S< 2010 1:10 [kblockd/1]
    root 49 0.0 0.0 0 0 ? S< 2010 0:00 [kacpid]
    root 50 0.0 0.0 0 0 ? S< 2010 0:00 [kacpi_notify]
    root 144 0.0 0.0 0 0 ? S< 2010 0:00 [ksuspend_usbd]
    root 150 0.0 0.0 0 0 ? S< 2010 0:00 [khubd]
    root 153 0.0 0.0 0 0 ? S< 2010 0:00 [kseriod]
    root 203 0.0 0.0 0 0 ? S< 2010 24:10 [kswapd0]
    root 204 0.0 0.0 0 0 ? S< 2010 0:00 [aio/0]
    root 205 0.0 0.0 0 0 ? S< 2010 0:00 [aio/1]
    root 398 0.0 0.0 0 0 ? S< 2010 0:00 [ata/0]
    root 399 0.0 0.0 0 0 ? S< 2010 0:00 [ata/1]
    root 400 0.0 0.0 0 0 ? S< 2010 0:00 [ata_aux]
    root 404 0.0 0.0 0 0 ? S< 2010 0:00 [scsi_eh_0]
    root 406 0.0 0.0 0 0 ? S< 2010 0:00 [scsi_eh_1]
    root 414 0.0 0.0 0 0 ? S< 2010 0:00 [scsi_eh_2]
    root 416 0.0 0.0 0 0 ? S< 2010 0:00 [scsi_eh_3]
    root 936 0.0 0.0 0 0 ? S< 2010 0:01 [md0_raid1]
    root 944 0.1 0.0 0 0 ? S< 2010 157:02 [md1_raid1]
    root 979 0.0 0.0 0 0 ? S< 2010 94:15 [kjournald]
    ovi 984 0.0 0.0 22588 8 ttyS0 S 2010 0:00 -sh
    root 1060 0.0 0.0 16936 4 ? S<s 2010 0:00 udevd --daemon
    root 1109 0.0 0.0 34536 8 ttyS0 S 2010 0:00 su
    root 1110 0.0 0.0 20904 8 ttyS0 S+ 2010 0:00 bash
    www-data 1474 0.0 0.0 274440 1692 ? S 03:37 0:06 /usr/sbin/apache2 -k start
    root 1477 0.0 0.0 0 0 ? S< 2010 0:00 [kpsmoused]
    root 1940 0.0 0.0 8080 384 ? Ss 2010 3:08 /sbin/dhcpcd-bin -Y -N -H eth0
    root 2085 0.0 0.0 12368 240 ? Ss 2010 2:26 /sbin/mdadm --monitor --pid-file /var/run/mdadm/monitor.pid --daemonise --scan --syslog
    root 2102 0.0 0.0 188284 1244 ? Sl 2010 33:13 /usr/sbin/rsyslogd -c3
    root 2129 0.0 0.0 179164 8 ? Ss 2010 0:34 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root 2130 0.0 0.0 95152 2020 ? Ss 2010 27:33 /usr/bin/perl -w /usr/sbin/mailgraph -l /var/log/mail.log -d --daemon_rrd=/var/lib/mailgraph
    root 2131 0.0 0.0 172440 8 ? S 2010 0:34 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root 2132 0.0 0.0 180964 588 ? S 2010 0:35 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root 2133 0.0 0.0 177604 8 ? S 2010 0:41 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root 2134 0.0 0.0 177964 660 ? S 2010 0:34 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    root 2142 0.0 0.0 3800 4 ? Ss 2010 0:00 /usr/sbin/acpid
    amavis 2157 0.0 0.0 216400 924 ? Ss 2010 4:37 amavisd (master)
    web39 2220 0.0 0.1 200432 5504 ? S 00:39 0:00 /usr/bin/php-cgi
    root 2430 0.0 0.0 6064 4 ? S 2010 0:00 /usr/sbin/courierlogger -pid=/var/run/courier/authdaemon/pid -start /usr/lib/courier/courier-authlib/authdaemond
    root 2431 0.0 0.0 29600 44 ? S 2010 0:45 /usr/lib/courier/courier-authlib/authdaemond
    root 2438 0.0 0.0 31696 488 ? S 2010 0:52 /usr/lib/courier/courier-authlib/authdaemond
    root 2439 0.0 0.0 31696 488 ? S 2010 0:56 /usr/lib/courier/courier-authlib/authdaemond
    root 2440 0.0 0.0 31696 488 ? S 2010 0:51 /usr/lib/courier/courier-authlib/authdaemond
    root 2441 0.0 0.0 31696 488 ? S 2010 0:50 /usr/lib/courier/courier-authlib/authdaemond
    root 2442 0.0 0.0 31696 488 ? S 2010 0:49 /usr/lib/courier/courier-authlib/authdaemond
    root 2446 0.0 0.0 6064 248 ? S 2010 0:08 /usr/sbin/courierlogger -pid=/var/run/courier/imapd.pid -start -name=imapd /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=40 -nodnslo
    okup -noidentlookup 143 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
    root 2447 0.0 0.0 9236 128 ? S 2010 0:19 /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=40 -nodnslookup -noidentlookup 143 /usr/lib/courier/courier/imaplogin /usr/bin/imapd M
    --More--

    aildir
    root 2458 0.0 0.0 6064 248 ? S 2010 0:00 /usr/sbin/courierlogger -pid=/var/run/courier/imapd-ssl.pid -start -name=imapd-ssl /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=40
    -nodnslookup -noidentlookup 993 /usr/bin/couriertls -server -tcpd /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
    root 2459 0.0 0.0 9236 128 ? S 2010 0:00 /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=40 -nodnslookup -noidentlookup 993 /usr/bin/couriertls -server -tcpd /usr/lib/courier/
    courier/imaplogin /usr/bin/imapd Maildir
    root 2464 0.0 0.0 6064 248 ? S 2010 0:08 /usr/sbin/courierlogger -pid=/var/run/courier/pop3d.pid -start -name=pop3d /usr/sbin/couriertcpd -maxprocs=40 -maxperip=4 -nodnslookup -noiden
    tlookup -address=0 110 /usr/lib/courier/courier/courierpop3login /usr/lib/courier/courier/courierpop3d Maildir
    root 2465 0.0 0.0 9236 124 ? S 2010 0:19 /usr/sbin/couriertcpd -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup -address=0 110 /usr/lib/courier/courier/courierpop3login /usr/lib/c
    ourier/courier/courierpop3d Maildir
    root 2476 0.0 0.0 6064 224 ? S 2010 0:00 /usr/sbin/courierlogger -pid=/var/run/courier/pop3d-ssl.pid -start -name=pop3d-ssl /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -
    nodnslookup -noidentlookup 995 /usr/bin/couriertls -server -tcpd /usr/lib/courier/courier/courierpop3login /usr/lib/courier/courier/courierpop3d Maildir
    root 2477 0.0 0.0 9236 120 ? S 2010 0:04 /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup 995 /usr/bin/couriertls -server -tcpd /usr/lib/courier/c
    ourier/courierpop3login /usr/lib/courier/courier/courierpop3d Maildir
    root 2492 0.0 0.0 21920 248 ? Ss 2010 4:49 /usr/sbin/cron
    root 2507 0.0 0.1 155696 4128 ? Sl 2010 49:38 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock
    nobody 2511 0.0 0.0 31028 2352 ? S 04:04 0:06 /usr/local/sbin/mydns -b
    nobody 2539 0.0 0.0 68096 340 ? Sl 2010 2:03 /usr/sbin/imapproxyd -f /etc/imapproxy.conf
    ntp 2554 0.0 0.0 22384 592 ? Ss 2010 4:42 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 102:104 -g
    postgrey 2563 0.0 0.1 57100 4496 ? Ss 2010 1:14 /usr/sbin/postgrey --pidfile=/var/run/postgrey.pid --daemonize --inet=127.0.0.1:60000
    root 2571 0.0 0.0 3792 136 ? SNs 2010 94:55 /usr/sbin/powernowd -q
    root 2588 0.0 0.0 11924 232 ? S 2010 0:35 /usr/sbin/smartd --pidfile /var/run/smartd.pid
    root 2589 0.0 0.0 137548 1508 ? S 04:08 0:00 spamd child
    root 2603 0.0 0.0 48868 344 ? Ss 2010 0:32 /usr/sbin/sshd
    web7 2727 0.0 0.2 312628 9712 ? S 04:09 0:03 /usr/bin/php-cgi
    root 2757 0.0 0.0 137548 1504 ? S 04:09 0:00 spamd child
    root 2920 0.0 0.0 36844 476 ? Ss 2010 20:51 /usr/lib/postfix/master
    nobody 2933 0.0 0.4 184816 18488 ? Sl 2010 59:36 /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1
    root 3342 0.0 0.0 3800 8 tty1 Ss+ 2010 0:00 /sbin/getty 38400 tty1
    root 3343 0.0 0.0 45636 8 ttyS0 Ss 2010 0:00 /bin/login --
    postfix 3357 0.0 0.0 41568 864 ? S 2010 1:45 tlsmgr -l -t unix -u -c
    root 3986 0.0 0.0 273516 916 ? Ss Jan23 0:16 /usr/sbin/apache2 -k start
    root 3987 0.0 0.0 39180 2872 ? S Jan23 0:36 vlogger (access log)
    www-data 3988 0.0 0.0 160072 1116 ? S Jan23 0:11 /usr/sbin/apache2 -k start
    web10 4170 0.0 0.0 266492 8 ? Ss Jan23 0:00 /usr/bin/php-cgi
    web10 4172 0.0 0.7 275800 30512 ? S Jan23 0:16 /usr/bin/php-cgi
    web10 4173 0.0 0.7 301336 29980 ? S Jan23 0:18 /usr/bin/php-cgi
    web10 4175 0.0 0.6 277516 28052 ? S Jan23 0:17 /usr/bin/php-cgi
    web10 4176 0.0 0.6 273860 28224 ? S Jan23 0:16 /usr/bin/php-cgi
    web10 4177 0.0 0.7 275700 29892 ? S Jan23 0:17 /usr/bin/php-cgi
    web10 4178 0.0 0.6 275724 28092 ? S Jan23 0:17 /usr/bin/php-cgi
    web10 4179 0.0 0.6 275596 28104 ? S Jan23 0:17 /usr/bin/php-cgi
    web10 4182 0.0 0.7 275724 29728 ? S Jan23 0:17 /usr/bin/php-cgi
    root 7874 0.0 0.0 30468 16 ? S Jan19 0:00 /USR/SBIN/CRON
    munin 7875 0.0 0.0 0 0 ? Zs Jan19 0:00 [sh] <defunct>
    munin 7943 0.0 0.0 117892 8 ? S Jan19 0:06 /usr/share/munin/munin-update [Munin::Master::UpdateWorker<stratoserver.net;h1550830.stratoserver.net>]
    amavis 9343 0.0 0.6 221620 25832 ? S 15:20 0:06 amavisd (ch18-accept)
    root 9411 0.0 0.0 214464 212 ? Ss Jan04 0:00 nginx: master process /usr/sbin/nginx
    www-data 9412 0.0 0.0 215668 1772 ? S Jan04 10:51 nginx: worker process
    www-data 9413 0.0 0.0 215428 1672 ? S Jan04 11:06 nginx: worker process
    www-data 9414 0.0 0.0 214620 292 ? S Jan04 1:34 nginx: cache manager process
    web10 9962 0.0 0.1 266492 7880 ? Ss 09:18 0:00 /usr/bin/php-cgi
    web10 9963 0.0 0.7 300784 30512 ? S 09:18 0:06 /usr/bin/php-cgi
    web10 9964 0.0 0.7 273748 29948 ? S 09:18 0:05 /usr/bin/php-cgi
    web10 9965 0.0 0.7 274780 29824 ? S 09:18 0:05 /usr/bin/php-cgi
    web10 9966 0.0 0.7 277512 28956 ? S 09:18 0:05 /usr/bin/php-cgi
    web10 9967 0.0 0.7 272856 29112 ? S 09:18 0:04 /usr/bin/php-cgi
    web10 9968 0.0 0.7 273324 29436 ? S 09:18 0:04 /usr/bin/php-cgi
    web10 9969 0.0 0.7 275700 30444 ? S 09:18 0:05 /usr/bin/php-cgi
    web10 9970 0.0 0.7 273112 28932 ? S 09:18 0:05 /usr/bin/php-cgi
    munin 11959 0.0 0.0 36836 8 ? S Jan19 0:00 /usr/sbin/sendmail -i -FCronDaemon -oem root
    --More--

    munin 11962 0.0 0.0 36824 8 ? S Jan19 0:00 /usr/sbin/postdrop -r
    root 12389 0.0 0.0 0 0 ? S 21:36 0:00 [pdflush]
    root 13430 0.0 0.0 12284 8 pts/2 S Jan22 0:00 /bin/sh /usr/bin/mysqld_safe
    mysql 13467 2.7 8.1 799308 329828 pts/2 Sl Jan22 115:08 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=330
    6 --socket=/var/run/mysqld/mysqld.sock
    root 13468 0.0 0.0 7124 8 pts/2 S Jan22 0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
    root 14421 0.0 0.0 32816 108 pts/1 S+ 2010 5:09 mc
    root 14423 0.0 0.0 21120 1056 pts/2 Ss 2010 0:02 bash -rcfile .bashrc
    root 14557 0.0 0.0 27176 1168 ? Ss 2010 9:25 SCREEN
    root 14559 0.0 0.0 20972 8 pts/1 Ss 2010 0:00 /bin/bash
    root 15153 0.0 0.0 0 0 ? S 21:50 0:00 [pdflush]
    root 16896 0.0 0.0 65932 3024 ? Ss 21:57 0:00 sshd: ovi [priv]
    ovi 16946 0.0 0.0 66228 1936 ? S 21:58 0:00 sshd: ovi@pts/0
    ovi 16949 0.0 0.0 22588 3388 pts/0 Ss 21:58 0:00 -sh
    root 16963 0.0 0.0 34536 1180 pts/0 S 21:58 0:00 su
    root 16964 0.0 0.0 20912 1900 pts/0 S 21:58 0:00 bash
    root 16967 0.0 0.0 26768 1140 pts/0 S+ 21:58 0:00 screen -r
    nobody 17875 0.0 0.0 29452 408 ? Ss Jan22 0:10 /usr/local/sbin/mydns -b
    postfix 18613 0.0 0.0 52228 804 ? S 2010 3:14 qmgr -l -t fifo -u
    web9 19832 1.4 3.1 328128 128976 ? S 22:11 0:11 /usr/bin/php-cgi
    web9 19833 1.0 2.1 300460 85540 ? S 22:11 0:08 /usr/bin/php-cgi
    web9 19834 2.1 3.2 318772 131088 ? S 22:11 0:17 /usr/bin/php-cgi
    web9 19835 0.9 2.5 306676 101944 ? S 22:11 0:07 /usr/bin/php-cgi
    web9 19838 1.0 3.1 314696 126660 ? S 22:11 0:08 /usr/bin/php-cgi
    web9 19845 1.0 3.0 320108 122588 ? S 22:11 0:08 /usr/bin/php-cgi
    web9 19849 1.1 2.6 303144 107640 ? S 22:11 0:09 /usr/bin/php-cgi
    web9 19850 0.3 2.7 322692 111096 ? S 22:11 0:02 /usr/bin/php-cgi
    root 19938 0.0 0.0 45324 2108 ? Ss Jan04 3:24 /usr/sbin/munin-node
    root 20532 0.0 0.0 34072 192 ? Ss Jan23 0:00 pure-ftpd (SERVER)

    postfix 21180 0.0 0.0 38904 2284 ? S 22:20 0:00 pickup -l -t fifo -u -c
    root 21664 0.0 0.0 137548 2440 ? Ss Jan23 0:24 /usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -d --pidfile=/var/run/spamd.pid
    www-data 21859 1.0 0.1 275136 5996 ? S 22:23 0:01 /usr/sbin/apache2 -k start
    www-data 21868 0.9 0.3 277744 12752 ? S 22:23 0:00 /usr/sbin/apache2 -k start
    www-data 21880 0.9 0.3 277872 13004 ? S 22:23 0:00 /usr/sbin/apache2 -k start
    www-data 21897 0.9 0.1 274564 5664 ? S 22:24 0:00 /usr/sbin/apache2 -k start
    www-data 21910 0.3 0.3 277636 12800 ? S 22:24 0:00 /usr/sbin/apache2 -k start
    root 21923 0.0 0.0 30464 956 ? S 22:25 0:00 /USR/SBIN/CRON
    munin 21924 0.0 0.0 8832 1140 ? Ss 22:25 0:00 /bin/sh -c if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi
    munin 21926 0.0 0.0 8836 1148 ? S 22:25 0:00 /bin/sh /usr/bin/munin-cron
    munin 21927 4.1 0.3 115948 15964 ? S 22:25 0:00 /usr/bin/perl /usr/share/munin/munin-update
    munin 21947 0.0 0.3 116080 14284 ? S 22:25 0:00 /usr/share/munin/munin-update [Munin::Master::UpdateWorker<stratoserver.net;h1550830.stratoserver.net>]
    root 21948 0.0 0.0 45324 3888 ? S 22:25 0:00 /usr/sbin/munin-node [127.0.0.1]
    amavis 21950 0.1 0.0 0 0 ? Zs 22:25 0:00 [amavis_cache] <defunct>
    postfix 21964 0.1 0.1 104156 5260 ? S 22:25 0:00 smtpd -n smtp -t inet -u -c -o stress
    postfix 21977 0.0 0.0 38904 2280 ? S 22:25 0:00 showq -t unix -u -c
    web7 21988 118 2.4 287300 99980 ? R 22:25 0:01 /usr/bin/php-cgi
    root 21989 0.0 0.0 18100 1108 pts/2 R+ 22:25 0:00 ps aux
    root 21990 0.0 0.0 21120 464 pts/2 R+ 22:25 0:00 bash -rcfile .bashrc
    clamav 24547 0.0 0.0 43120 960 ? Ss 2010 0:19 /usr/bin/freshclam -d --quiet
    clamav 25101 0.0 3.3 341432 135800 ? Ssl 2010 22:59 /usr/sbin/clamd
    amavis 25138 0.0 0.8 221232 33184 ? S 16:50 0:02 amavisd (ch9-accept)
    root 27919 0.0 0.0 73560 1452 ? Ss 2010 5:52 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
    root 29740 0.0 0.0 12384 8 pts/2 T 2010 0:00 /bin/bash /etc/init.d/mysql restart
    root 29745 0.0 0.0 12396 8 pts/2 T 2010 0:00 /bin/bash /etc/init.d/mysql stop
    root 29790 0.0 0.0 12396 4 pts/2 T 2010 0:00 /bin/bash /etc/init.d/mysql stop
    root 29791 0.0 0.0 26728 8 pts/2 T 2010 0:00 /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf shutdown
     
  4. Ovidiu

    Ovidiu Active Member

    Ok, I removed nginx and am ready for the next steps. What else do you need to know?
     
  5. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    You should switch all sites to fastcgi + suexec. Then make sure that you use the latest ispconfig (3.0.3.2) as older versions might use a outdated vhost template which has a higher resource usage.

    Then make sure that you run a php binary cache, I recommend xcache. It is installed with:

    apt-get install php5-xcache

    afterwards restart apache.
     
  6. Ovidiu

    Ovidiu Active Member

    - I do use ISPCFG 3.0.3.2
    - changed all sites to fastcgi + suexec
    - installed xcache and restarted apache2

    Lets give it a day or so and I'll report back with any findings.

    what info would you need?
     
  7. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Post the output of the command: top
     
  8. Ovidiu

    Ovidiu Active Member

    well, here you go:

    Code:
    top - 16:07:39 up  4:21,  1 user,  load average: 0.46, 0.36, 0.29
    Tasks: 137 total,   1 running, 136 sleeping,   0 stopped,   0 zombie
    Cpu(s):  2.5%us,  0.6%sy,  0.0%ni, 95.8%id,  0.8%wa,  0.0%hi,  0.3%si,  0.0%st
    Mem:   4047116k total,  3594480k used,   452636k free,   116112k buffers
    Swap:  2104496k total,        0k used,  2104496k free,  1662904k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
     2077 web9      20   0  255m  76m  25m S    4  1.9   1:15.42 php-cgi
     2794 mysql     20   0  360m 190m 5276 S    2  4.8   5:57.91 mysqld
     9102 root      20   0 18956 1324  944 R    1  0.0   0:46.86 top
        1 root      20   0 10316  748  620 S    0  0.0   0:01.48 init
        2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd
        3 root      RT  -5     0    0    0 S    0  0.0   0:00.02 migration/0
        4 root      15  -5     0    0    0 S    0  0.0   0:00.06 ksoftirqd/0
        5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/0
        6 root      RT  -5     0    0    0 S    0  0.0   0:00.02 migration/1
        7 root      15  -5     0    0    0 S    0  0.0   0:00.02 ksoftirqd/1
        8 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1
        9 root      15  -5     0    0    0 S    0  0.0   0:00.48 events/0
       10 root      15  -5     0    0    0 S    0  0.0   0:00.52 events/1
       11 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper
       46 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/0
       47 root      15  -5     0    0    0 S    0  0.0   0:00.04 kblockd/1
       49 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid
       50 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify
      144 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksuspend_usbd
      150 root      15  -5     0    0    0 S    0  0.0   0:00.00 khubd
      153 root      15  -5     0    0    0 S    0  0.0   0:00.00 kseriod
      201 root      20   0     0    0    0 S    0  0.0   0:00.00 pdflush
      202 root      20   0     0    0    0 S    0  0.0   0:02.58 pdflush
      203 root      15  -5     0    0    0 S    0  0.0   0:00.00 kswapd0
      204 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/0
      205 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/1
      398 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/0
      399 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/1
      400 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata_aux
      404 root      15  -5     0    0    0 S    0  0.0   0:00.04 scsi_eh_0
      406 root      15  -5     0    0    0 S    0  0.0   0:00.04 scsi_eh_1
      414 root      15  -5     0    0    0 S    0  0.0   0:00.02 scsi_eh_2
      416 root      15  -5     0    0    0 S    0  0.0   0:00.02 scsi_eh_3
      795 postfix   20   0 38904 2288 1792 S    0  0.1   0:00.00 pickup
      944 root      15  -5     0    0    0 S    0  0.0   0:00.00 md0_raid1
      952 root      15  -5     0    0    0 S    0  0.0   0:08.70 md1_raid1
      987 root      15  -5     0    0    0 S    0  0.0   0:10.76 kjournald
    
    looks a lot better now. no swapping yet.
    I had used suPhp for a couple of the smaller sites as I read in another thread that using fastcgi for low traffic sites is a waste...

    I'll monitor it for another couple of days to see if it continuous to behave well
     
  9. Ovidiu

    Ovidiu Active Member

    I have meanwhile upgraded to Debian Squeeze and the situation is the same.

    My server is quite old, I am entitled to change to a new one.
    Just wondering what to do: go with a new server and hope the situation gets better? OR simply get rid of the 3-4 friends sites I am hosting and go with a smaller/cheaper VPS without ISPCFG as I won't need it if I only host my own sites.

    The point is that switching all to fastcgi the overall situation looks a lot better but still all memory is exhausted :-( (see top above)

    and here is another top, now I see it starts swapping again :-(

    Code:
    top - 17:31:36 up 2 days,  5:45,  1 user,  load average: 0.24, 0.30, 0.32
    Tasks: 149 total,   3 running, 143 sleeping,   3 stopped,   0 zombie
    Cpu(s): 10.5%us,  1.6%sy,  0.0%ni, 81.7%id,  5.8%wa,  0.2%hi,  0.2%si,  0.0%st
    Mem:   4047116k total,  3755964k used,   291152k free,    57720k buffers
    Swap:  2104496k total,   132908k used,  1971588k free,  1554072k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  SWAP COMMAND
    32458 www-data  20   0  389m  11m 2040 S    1  0.3   0:00.02 377m apache2
    31872 www-data  20   0  389m  12m 2224 S    0  0.3   0:00.06 377m apache2
    31874 www-data  20   0  389m  12m 2236 S    0  0.3   0:00.06 377m apache2
    31821 www-data  20   0  389m  12m 2236 S    0  0.3   0:00.14 377m apache2
    31824 www-data  20   0  389m  12m 2244 S    0  0.3   0:00.08 377m apache2
    19805 root      20   0  388m  18m 9.8m S    0  0.5   0:04.06 369m apache2
    17958 web7      20   0  354m  69m  27m S    0  1.8   0:08.74 284m php-cgi
    27145 web2      20   0  363m  91m  40m S    0  2.3   0:07.78 271m php-cgi
    13324 web2      20   0  363m  91m  40m S    0  2.3   0:29.56 271m php-cgi
    24503 web37     20   0  360m  89m  41m S    0  2.3   0:05.22 270m php-cgi
    24507 web37     20   0  357m  87m  41m S    0  2.2   0:06.62 270m php-cgi
    13937 web28     20   0  382m 113m  49m S    0  2.9   0:16.30 268m php-cgi
    14655 web28     20   0  379m 110m  49m S    0  2.8   0:16.22 268m php-cgi
    28572 web6      20   0  377m 109m  45m S    0  2.8   0:10.20 267m php-cgi
    28571 web6      20   0  377m 109m  45m S    0  2.8   0:12.62 267m php-cgi
    29827 web42     20   0  384m 117m  49m S    0  3.0   0:06.44 266m php-cgi
    25099 web6      20   0  377m 111m  45m S    0  2.8   0:40.20 266m php-cgi
    
     
  10. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The above top output is ok and memory is not exhausetd. I guess we are chasing a phantom here as what you thought is exhausetd memory is just the normal way the linux kernel works to speed up the system. The linux kernel uses memory to cahche the filesystem, so no free memory is not a bad sign in any way.

    According to top, your server is not overloaded. Its nearly sleeping because it has nothing to do.
     
    Last edited: Mar 3, 2011
  11. Ovidiu

    Ovidiu Active Member

    Thanks Till.
    Its not quite as you say, I do know how linux manages its RAM and was not worried about having no free RAM, more worried about the fact that it started swaping again.
    BEfore I changed all vhosts to fastCGI it constantly had 500MB-1GB of swap and now its already at 123MB again. IS that really OK?

    Besides if now with a meager 10 sites with really low traffic pstree tells me that I have -apache2---26*[php-cgi] processes running consuming RAM like hell see here for top sorted by memory consumption:

    Code:
    top - 10:33:57 up 2 days, 22:47,  1 user,  load average: 0.24, 0.33, 0.34
    Tasks: 153 total,   1 running, 149 sleeping,   3 stopped,   0 zombie
    Cpu(s): 17.6%us,  1.5%sy,  0.0%ni, 80.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:   4047116k total,  3530392k used,   516724k free,    41828k buffers
    Swap:  2104496k total,   424036k used,  1680460k free,  1435564k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    30543 web18     20   0  423m 171m  64m S    0  4.4   0:28.68 php-cgi
    27067 web18     20   0  423m 170m  62m S    0  4.3   0:51.07 php-cgi
     5160 web18     20   0  418m 164m  61m S    0  4.2   0:07.62 php-cgi
    28407 web9      20   0  389m 142m  66m S    0  3.6   0:50.21 php-cgi
    23905 web9      20   0  380m 138m  71m S    0  3.5   0:55.83 php-cgi
    23881 web9      20   0  374m 129m  67m S    0  3.3   0:49.37 php-cgi
    28404 web9      20   0  376m 129m  65m S    0  3.3   0:24.16 php-cgi
    28408 web9      20   0  375m 129m  65m S    0  3.3   0:21.66 php-cgi
    28406 web9      20   0  375m 125m  60m S    0  3.2   0:15.12 php-cgi
    24487 web28     20   0  381m 114m  50m S    0  2.9   0:29.18 php-cgi
    23878 web6      20   0  377m 111m  46m S    0  2.8   0:54.99 php-cgi
    25104 web6      20   0  377m 111m  46m S   31  2.8   0:49.27 php-cgi
    28405 web9      20   0  364m 111m  58m S    4  2.8   0:43.81 php-cgi
    24488 web28     20   0  379m 110m  49m S    0  2.8   0:41.04 php-cgi
    32341 web6      20   0  377m 110m  45m S    0  2.8   0:10.72 php-cgi
    32342 web6      20   0  377m 110m  45m S    0  2.8   0:10.40 php-cgi
     3077 web42     20   0  373m 107m  51m S    0  2.7   0:05.56 php-cgi
     3078 web42     20   0  366m 102m  48m S    0  2.6   0:02.82 php-cgi
    24552 web2      20   0  364m  97m  44m S    0  2.5   0:18.12 php-cgi
    30980 web2      20   0  363m  90m  38m S    0  2.3   0:07.48 php-cgi
    25759 web10     20   0  363m  89m  38m S    0  2.3   0:01.96 php-cgi
    32395 web10     20   0  360m  88m  37m S    0  2.2   0:01.82 php-cgi
     3086 web7      20   0  356m  80m  35m S    0  2.0   0:04.80 php-cgi
    24526 web7      20   0  352m  75m  32m S    0  1.9   0:21.42 php-cgi
    19383 mysql     20   0  533m  58m 3080 S    3  1.5  48:35.04 mysqld
    32377 amavis    20   0  227m  57m 3728 S    0  1.5   0:02.36 amavisd-new
     3156 amavis    20   0  227m  57m 3712 S    0  1.4   0:00.96 amavisd-new
    23862 clamav    20   0  328m  27m  932 S    0  0.7   0:40.84 clamd
    29017 web39     20   0  319m  20m  11m S    0  0.5   0:00.46 php-cgi
     1177 web14     20   0  319m  16m 9.9m S    0  0.4   0:00.10 php-cgi
     5793 postfix   20   0  105m 5976 4456 S    0  0.1   0:00.02 smtpd
     4471 www-data  20   0  389m 5316 2292 S    0  0.1   0:00.26 apache2
     5710 www-data  20   0  389m 5092 2124 S    0  0.1   0:00.06 apache2
     5162 www-data  20   0  389m 5068 2272 S    0  0.1   0:00.06 apache2
     5157 www-data  20   0  389m 4916 2128 S    0  0.1   0:00.04 apache2
    28580 postgrey  20   0 62200 4392 1640 S    0  0.1   0:02.94 postgrey
     5795 www-data  20   0  389m 4288 2004 S    0  0.1   0:00.00 apache2
    
    this is the latest top, we are already almost at 500MB swapping. But maybe I am totally wrong? feel free to correct me please.
     
  12. Ovidiu

    Ovidiu Active Member

    And now it happened: server is down to sluggish crawling, swapping 2GB.

    Code:
    top - 12:26:09 up 3 days, 39 min,  1 user,  load average: 26.52, 10.09, 3.88
    Tasks: 256 total,   1 running, 252 sleeping,   3 stopped,   0 zombie
    Cpu(s):  6.6%us,  3.3%sy,  0.8%ni,  0.0%id, 89.3%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:   4047116k total,  4025332k used,    21784k free,     5576k buffers
    Swap:  2104496k total,  2104460k used,       36k free,   917000k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  SWAP COMMAND
    20259 web7      20   0  637m  53m  23m S    0  1.3   0:10.42 584m php-cgi
    19383 mysql     20   0  578m 125m 3056 S    0  3.2  53:02.56 452m mysqld
    14236 web18     20   0  428m  10m  10m S    0  0.3   0:21.74 417m php-cgi
     5160 web18     20   0  418m  11m  11m S    0  0.3   2:18.09 407m php-cgi
    19805 root      20   0  388m 1156  216 S    0  0.0   0:17.24 387m apache2
    20314 www-data  20   0  389m 3096 2092 S    0  0.1   0:00.02 386m apache2
    20316 www-data  20   0  389m 3108 2088 S    0  0.1   0:00.02 386m apache2
    20319 www-data  20   0  389m 2860 1900 S    0  0.1   0:00.02 386m apache2
    19692 www-data  20   0  389m 3396 2284 S    0  0.1   0:00.06 386m apache2
    18979 www-data  20   0  389m 3500 2292 S    0  0.1   0:00.14 386m apache2
    20315 www-data  20   0  389m 3404 2104 S    0  0.1   0:00.02 386m apache2
    20325 www-data  20   0  389m 3052 1952 S    0  0.1   0:00.00 386m apache2
    20276 www-data  20   0  389m 3436 2124 S    0  0.1   0:00.04 385m apache2
    19687 www-data  20   0  389m 3668 2128 S    0  0.1   0:00.08 385m apache2
    20424 www-data  20   0  389m 4140 1904 S    0  0.1   0:00.00 385m apache2
    20350 www-data  20   0  389m 4152 1920 S    0  0.1   0:00.00 385m apache2
    20334 www-data  20   0  389m 4164 1952 S    0  0.1   0:00.00 385m apache2
    20333 www-data  20   0  389m 4180 1952 S    0  0.1   0:00.00 385m apache2
    20257 www-data  20   0  389m 4732 2120 S    0  0.1   0:00.10 385m apache2
    20352 www-data  20   0  389m 4192 1956 S    0  0.1   0:00.00 385m apache2
    20340 www-data  20   0  389m 4196 1952 S    0  0.1   0:00.00 385m apache2
    20341 www-data  20   0  389m 4196 1952 S    0  0.1   0:00.00 385m apache2
    20344 www-data  20   0  389m 4196 1952 S    0  0.1   0:00.00 385m apache2
    20353 www-data  20   0  389m 4196 1960 S    0  0.1   0:00.00 385m apache2
    20356 www-data  20   0  389m 4196 1960 S    0  0.1   0:00.00 385m apache2
    20343 www-data  20   0  389m 4200 1956 S    0  0.1   0:00.00 385m apache2
    20354 www-data  20   0  389m 4200 1956 S    0  0.1   0:00.00 385m apache2
    20357 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20358 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20373 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20378 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20379 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20383 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20385 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20390 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20393 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    20394 www-data  20   0  389m 4204 1960 S    0  0.1   0:00.00 385m apache2
    

    |-apache2-+-45*[apache2]
    | |-apache2---68*[php-cgi]
    | `-vlogger
     
  13. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The above top can not be from normal traffic to that sites if they are low traffic (Or do you mean a few hundred thousand pageviews per day and site with low traffic?) or one of the sites has programming issues. Either its a dos or there is a issue that pages can not be delivered e.g. due to problems in scripts or that e.g. the harddisk has problems.

    Please post the apache2.conf file of your server.

    Also you should install munin and monit to see if this is e.g. caused by a harddisk which has errors.
     
  14. Ovidiu

    Ovidiu Active Member

    No, I really mean low-traffic as in a few GB per month. Don't have any figures handy to show what I mean by low-traffic.

    Munin is accessible here, it you can make it come up :-( I don't see any anomaly

    http://h1550830.stratoserver.net/munin/stratoserver.net/h1550830.stratoserver.net/index.html

    apache2.conf:

    Code:
    ServerRoot "/etc/apache2"
    # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
    #
    #<IfModule !mpm_winnt.c>
    #<IfModule !mpm_netware.c>
    LockFile /var/lock/apache2/accept.lock
    #</IfModule>
    #</IfModule>
    
    # PidFile: The file in which the server should record its process
    # identification number when it starts.
    # This needs to be set in /etc/apache2/envvars
    #
    PidFile ${APACHE_PID_FILE}
    
    # Timeout: The number of seconds before receives and sends time out.
    #
    Timeout 120
    
    # KeepAlive: Whether or not to allow persistent connections (more than
    # one request per connection). Set to "Off" to deactivate.
    #
    KeepAlive On
    
    # MaxKeepAliveRequests: The maximum number of requests to allow
    # during a persistent connection. Set to 0 to allow an unlimited amount.
    # We recommend you leave this number high, for maximum performance.
    #
    MaxKeepAliveRequests 500
    
    # KeepAliveTimeout: Number of seconds to wait for the next request from the
    # same client on the same connection.
    #
    KeepAliveTimeout 3
    
    ##
    ## Server-Pool Size Regulation (MPM specific)
    ## 
    
    # prefork MPM
    # StartServers: number of server processes to start
    # MinSpareServers: minimum number of server processes which are kept spare
    # MaxSpareServers: maximum number of server processes which are kept spare
    # MaxClients: maximum number of server processes allowed to start
    # MaxRequestsPerChild: maximum number of requests a server process serves
    <IfModule mpm_prefork_module>
        StartServers          5
        MinSpareServers       3
        MaxSpareServers       5
        MaxClients           45
        MaxRequestsPerChild   5000
    </IfModule>
    
    # worker MPM
    # StartServers: initial number of server processes to start
    # MaxClients: maximum number of simultaneous client connections
    # MinSpareThreads: minimum number of worker threads which are kept spare
    # MaxSpareThreads: maximum number of worker threads which are kept spare
    # ThreadsPerChild: constant number of worker threads in each server process
    # MaxRequestsPerChild: maximum number of requests a server process serves
    <IfModule mpm_worker_module>
        StartServers          2
        MaxClients           75
        MinSpareThreads      25
        MaxSpareThreads      75 
        ThreadsPerChild      25
        MaxRequestsPerChild   0
    </IfModule>
    
    # These need to be set in /etc/apache2/envvars
    User ${APACHE_RUN_USER}
    Group ${APACHE_RUN_GROUP}
    
    #
    # AccessFileName: The name of the file to look for in each directory
    # for additional configuration directives.  See also the AllowOverride
    # directive.
    #
    
    AccessFileName .htaccess
    
    #
    # The following lines prevent .htaccess and .htpasswd files from being 
    # viewed by Web clients. 
    #
    <Files ~ "^\.ht">
        Order allow,deny
        Deny from all
    </Files>
    
    #
    # DefaultType is the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value.  If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    #
    DefaultType text/plain
    
    
    #
    # HostnameLookups: Log the names of clients or just their IP addresses
    # e.g., www.apache.org (on) or 204.62.129.132 (off).
    # The default is off because it'd be overall better for the net if people
    # had to knowingly turn this feature on, since enabling it means that
    # each client request will result in AT LEAST one lookup request to the
    # nameserver.
    #
    HostnameLookups Off
    
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here.  If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    #
    ErrorLog /var/log/apache2/error.log
    
    #
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    #
    LogLevel warn
    
    # Include module configuration:
    Include /etc/apache2/mods-enabled/*.load
    Include /etc/apache2/mods-enabled/*.conf
    
    # Include all the user configurations:
    Include /etc/apache2/httpd.conf
    
    # Include ports listing
    Include /etc/apache2/ports.conf
    
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    # If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
    #
    LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    
    #
    # Define an access log for VirtualHosts that don't define their own logfile
    CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
    
    #
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    #
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    #
    
    #
    # Putting this all together, we can internationalize error responses.
    #
    # We use Alias to redirect any /error/HTTP_<error>.html.var response to
    # our collection of by-error message multi-language collections.  We use 
    # includes to substitute the appropriate text.
    #
    # You can modify the messages' appearance without changing any of the
    # default HTTP_<error>.html.var files by adding the line:
    #
    #   Alias /error/include/ "/your/include/path/"
    #
    # which allows you to create your own set of files by starting with the
    # /usr/share/apache2/error/include/ files and copying them to /your/include/path/, 
    # even on a per-VirtualHost basis.  The default include files will display
    # your Apache version number and your ServerAdmin email address regardless
    # of the setting of ServerSignature.
    #
    # The internationalized error documents require mod_alias, mod_include
    # and mod_negotiation.  To activate them, uncomment the following 30 lines.
    
    #    Alias /error/ "/usr/share/apache2/error/"
    #
    #    <Directory "/usr/share/apache2/error">
    #        AllowOverride None
    #        Options IncludesNoExec
    #        AddOutputFilter Includes html
    #        AddHandler type-map var
    #        Order allow,deny
    #        Allow from all
    #        LanguagePriority en cs de es fr it nl sv pt-br ro
    #        ForceLanguagePriority Prefer Fallback
    #    </Directory>
    #
    #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    #    ErrorDocument 410 /error/HTTP_GONE.html.var
    #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
    #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
    
    
    
    # Include of directories ignores editors' and dpkg's backup files,
    # see README.Debian for details.
    
    # Include generic snippets of statements
    Include /etc/apache2/conf.d/
    
    # Include the virtual host configurations:
    Include /etc/apache2/sites-enabled/
    
    #<VirtualHost 85.214.146.68:80>
    #ServerName webmail
    #ServerAlias mail.*
    #ErrorLog /var/www/webmail/log/error.log
    #ServerAdmin ovidiu@pacura.ru
    #DocumentRoot /var/www/webmail
    #DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 $
    #AddType application/x-httpd-php .php .php3 .php4 .php5
    #</VirtualHost>
    
    #Alias /webmail /var/www/webmail/
    
    #<Directory "/var/www/webmail/">
    #Options Indexes FollowSymlinks
    #AllowOverride None
    #Order allow,deny
    #Allow from all
    #AddDefaultCharset off
    #</Directory>
    
    Alias /piwik /var/www/piwik/
    
    <Directory "/var/www/piwik/">
    Options Indexes FollowSymlinks
    AllowOverride None
    Order allow,deny
    Allow from all
    AddDefaultCharset off
    </Directory>
    
    Alias /x-cache/ /usr/share/xcache/admin/
    
    <Directory "/usr/share/xcache/admin/">
    Options Indexes FollowSymlinks
    AllowOverride None
    Order allow,deny
    Allow from all
    AddDefaultCharset off
    </Directory>
    
    had to reboot/reset, the whole server became totally unresponsive.
     
  15. Ovidiu

    Ovidiu Active Member

    ran the strato hardware test with the result: you need to change your hardware :)

    hopefully that will take care of a few things... will post back here afterwards.
     
  16. lewis_saint

    lewis_saint New Member

    What's the strato hardware test? I've having the exact same issue here...
     
  17. Ovidiu

    Ovidiu Active Member

    you can find the strato hardware test inside your configuration panel at https://config.stratoserver.net/

    head to the menu: Serverkonfiguration => hardwaretest
     
  18. Ovidiu

    Ovidiu Active Member

    Last edited: May 5, 2011
  19. erosbk

    erosbk New Member

    Please, use TOP and press M (not m). Post next pls.
     
  20. Ovidiu

    Ovidiu Active Member

    thanks but I don't think this will help at all. The system became so unresponsive yesterday, swapped al 4GB and I had to force-restart it. couldn't even connect via ssh anymore.

    here is the graphical view of what happened yesterday, check the graphs where the gap is. that is where the system got so unresponsive it wasn't even graphing stuff and where I restarted it: http://zice.ro/munin/serverkompetenz.net/h1870666.serverkompetenz.net/index.html

    still, here is hte info from now, everything clean and running smooth:


    http://screencast.com/t/QqRr4ep7UU
     

Share This Page