Koozali.org: home of the SME Server

Gradual Slowdown in 5.5

Brendon

Gradual Slowdown in 5.5
« on: October 23, 2002, 08:23:08 AM »
Hi, I am experiencing a gradual slowdown in browsing webpages on our e-smith server. Basically it just takes longer to get the pages, even worse when they're dynamic from the database.

It happens over the period of a few days and restarting the server fixes the problem but again it starts to gradually slow down.

I have posted about this problem before, I have installed both update 1 and 2 for version 5.5 and i cant see what else i can do.

Is there a way to see what processes are using up alot of system time? It kinda feels like a memory leak or something.

Cheers,

Brendon

Bill

Re: Gradual Slowdown in 5.5
« Reply #1 on: October 23, 2002, 04:31:14 PM »
Brendon ,
You can try eneo sysmonitor which installs into your server-manager panel. It works quite well on my SME5.1.2, but there are RPMs for SME5.5. Get it at http://myezserver.com/downloads/mitel/contrib/eneo-sysmon/

Adding a performance monitor on the server you have questions about isn't the best solution because it eats up CPU, Memory,disk I/O but it's a start.

Bill

Nathan Fowler

Re: Gradual Slowdown in 5.5
« Reply #2 on: October 23, 2002, 09:58:38 PM »
Perhaps the SQUID cache is filling up and growing to a very large size, taking squid longer to process the requests and bouncing it against it's current cache?  Perhaps reducing the size of SQUID cache would help?

This is assuming you are using SQUID.

Hope this helped,
Nathan

Brendon

Re: Gradual Slowdown in 5.5
« Reply #3 on: October 24, 2002, 09:05:57 AM »
Thanks for your help guys!, however, i did a ps -A and the following came up

  PID TTY          TIME CMD
    1 ?        00:00:05 init
    2 ?        00:00:00 kflushd
    3 ?        00:00:00 kupdate
    4 ?        00:00:50 kswapd
    5 ?        00:00:00 keventd
    6 ?        00:00:00 mdrecoveryd
   75 ?        00:00:00 khubd
  310 ?        00:00:00 svscan
  329 ?        00:00:00 supervise
  330 ?        00:00:00 supervise
  331 ?        00:00:00 supervise
  332 ?        00:00:00 supervise
  333 ?        00:00:00 multilog
  334 ?        00:00:00 multilog
  353 ?        00:00:01 syslogd
  358 ?        00:00:00 klogd
  901 ?        00:00:00 crond
  935 ?        00:00:00 xinetd
  972 ?        00:00:00 ntpd
 1020 ?        00:00:00 lpd
 1064 ?        00:00:00 slapd
 1068 ?        00:00:00 slapd
 1069 ?        00:00:00 slapd
 1096 ?        00:00:00 qmail-send
 1098 ?        00:00:00 qmail-lspawn
 1099 ?        00:00:00 qmail-rspawn
 1100 ?        00:00:00 qmail-clean
 1126 ?        00:00:00 httpd
 1129 ?        00:00:18 httpd
 1130 ?        00:00:18 httpd
 1131 ?        00:00:16 httpd
 1132 ?        00:00:12 httpd
 1133 ?        00:00:14 httpd
 1134 ?        00:00:17 httpd
 1135 ?        00:00:13 httpd
 1136 ?        00:00:17 httpd
 1137 ?        00:00:12 httpd
 1138 ?        00:00:05 httpd
 1165 ?        00:00:00 tcpserver
 1191 ?        00:00:00 sshd
 1334 ?        00:00:00 httpd-admin
 1337 ?        00:00:00 httpd-admin
 1359 ?        00:00:00 safe_mysqld
 1424 ?        00:00:00 mysqld
 1432 ?        00:00:00 squid
 1436 ?        00:00:26 squid
 1460 ?        00:00:00 atalkd
 1461 ?        00:00:00 smbd
 1466 ?        00:00:00 unlinkd
 1467 ?        00:00:00 mysqld
 1468 ?        00:00:00 mysqld
 1469 ?        00:00:00 nmbd
 1472 ?        00:00:00 nmbd
 1501 ?        00:00:00 mysqld
 1537 ?        00:00:00 named
 1538 ?        00:00:00 pptpd
 1539 tty1     00:00:00 mingetty
 1540 tty2     00:00:00 mingetty
 1541 tty3     00:00:00 mingetty
 1542 ?        00:00:00 named
 1543 ?        00:00:03 named
 1544 ?        00:00:00 named
 1545 ?        00:00:00 named
 1560 ?        00:00:00 papd
 1565 ?        00:00:00 afpd
 1635 ?        00:00:07 httpd
 1636 ?        00:00:18 httpd
 1637 ?        00:00:09 httpd
 1638 ?        00:00:16 httpd
 1639 ?        00:00:13 httpd
 1640 ?        00:00:18 httpd
 1641 ?        00:00:08 httpd
 1642 ?        00:00:18 httpd
 1643 ?        00:00:09 httpd
 1644 ?        00:00:07 httpd
 1732 ?        00:00:00 mysqld
 1951 ?        00:00:00 mysqld
 2027 ?        00:00:00 mysqld
 2035 ?        00:00:00 mysqld
 2036 ?        00:00:00 mysqld
 2042 ?        00:00:00 mysqld
 2044 ?        00:00:00 mysqld
 2045 ?        00:00:00 mysqld
 2047 ?        00:00:00 mysqld
 2095 ?        00:00:00 mysqld
 2101 ?        00:00:00 mysqld
 2109 ?        00:00:00 mysqld
 2116 ?        00:00:00 mysqld
 2131 ?        00:00:00 mysqld
 2133 ?        00:00:00 mysqld
 2425 ?        00:00:00 mysqld
 2426 ?        00:00:00 mysqld
 2429 ?        00:00:00 mysqld
 2430 ?        00:00:00 mysqld
 2432 ?        00:00:00 mysqld
 2523 ?        00:00:00 sshd
 2524 pts/0    00:00:00 bash
 2573 pts/0    00:00:00 ps


An awful lot of mysqld entries there? Could it be that after my website accesses the database, the database doesn't terminate the process?

And also, it does seem like squid is running nathan? I don't use the proxy server option in E-Smith? Would it be safe to disable it properly?

Once again, thanks for the help:)

Brendon

Brendon

Re: Gradual Slowdown in 5.5
« Reply #4 on: October 24, 2002, 09:08:37 AM »
Just some more detailed ps info:

  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:05 init [7]
    2 ?        SW     0:00 [kflushd]
    3 ?        SW     0:00 [kupdate]
    4 ?        SW     0:50 [kswapd]
    5 ?        SW     0:00 [keventd]
    6 ?        SW<    0:00 [mdrecoveryd]
   75 ?        SW     0:00 [khubd]
  310 ?        S      0:00 /usr/local/bin/svscan /service
  329 ?        S      0:00  \_ supervise qmail
 1096 ?        S      0:00  |   \_ qmail-send
 1098 ?        SW     0:00  |       \_ [qmail-lspawn]
 1099 ?        S      0:00  |       \_ qmail-rspawn
 1100 ?        S      0:00  |       \_ qmail-clean
  330 ?        S      0:00  \_ supervise log
  334 ?        S      0:00  |   \_ /usr/local/bin/multilog t s5000000 /var/log/qmail
  331 ?        S      0:00  \_ supervise smtpfront-qmail
 1165 ?        S      0:00  |   \_ /usr/local/bin/tcpserver -U -R -x /etc/tcprules/tcp.smtp.cdb -l 0 0 smtp /usr/local/bin/envdir ./
  332 ?        S      0:00  \_ supervise log
  333 ?        S      0:00      \_ /usr/local/bin/multilog t s5000000 /var/log/smtpfront-qmail
  353 ?        S      0:01 syslogd -m 0 -a /home/dns/dev/log
  358 ?        SW     0:00 [klogd]
  901 ?        S      0:00 crond
  935 ?        S      0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
  972 ?        SL     0:00 ntpd -U ntp
 1020 ?        SW     0:00 [lpd]
 1064 ?        S      0:00 [slapd]
 1068 ?        S      0:00  \_ [slapd]
 1069 ?        S      0:00      \_ [slapd]
 1126 ?        S      0:00 httpd
 1129 ?        S      0:18  \_ httpd
 1130 ?        S      0:18  \_ httpd
 1131 ?        S      0:16  \_ httpd
 1132 ?        S      0:12  \_ httpd
 1133 ?        S      0:14  \_ httpd
 1134 ?        S      0:17  \_ httpd
 1135 ?        S      0:13  \_ httpd
 1136 ?        S      0:17  \_ httpd
 1137 ?        S      0:12  \_ httpd
 1138 ?        S      0:05  \_ httpd
 1635 ?        S      0:07  \_ httpd
 1636 ?        S      0:18  \_ httpd
 1637 ?        S      0:09  \_ httpd
 1638 ?        S      0:16  \_ httpd
 1639 ?        S      0:13  \_ httpd
 1640 ?        S      0:18  \_ httpd
 1641 ?        S      0:08  \_ httpd
 1642 ?        S      0:18  \_ httpd
 1643 ?        S      0:09  \_ httpd
 1644 ?        S      0:07  \_ httpd
 1191 ?        S      0:00 /usr/sbin/sshd
 2523 ?        S      0:00  \_ /usr/sbin/sshd
 2524 pts/0    S      0:00      \_ -bash
 2576 pts/0    R      0:00          \_ ps -A f w
 1334 ?        S      0:00 /usr/sbin/httpd-admin -f /etc/httpd/admin-conf/httpd.conf -D HAVE_PERL -D HAVE_PHP4 -D HAVE_PROXY -D HAVE
 1337 ?        SW     0:00  \_ [httpd-admin]
 1359 ?        SW     0:00 [safe_mysqld]
 1424 ?        S      0:00  \_ [mysqld]
 1467 ?        S      0:00      \_ [mysqld]
 1468 ?        S      0:00          \_ [mysqld]
 1501 ?        S      0:00          \_ [mysqld]
 1732 ?        S      0:00          \_ [mysqld]
 1951 ?        S      0:00          \_ [mysqld]
 2027 ?        S      0:00          \_ [mysqld]
 2035 ?        S      0:00          \_ [mysqld]
 2036 ?        S      0:00          \_ [mysqld]
 2042 ?        S      0:00          \_ [mysqld]
 2044 ?        S      0:00          \_ [mysqld]
 2045 ?        S      0:00          \_ [mysqld]
 2047 ?        S      0:00          \_ [mysqld]
 2095 ?        S      0:00          \_ [mysqld]
 2101 ?        S      0:00          \_ [mysqld]
 2109 ?        S      0:00          \_ [mysqld]
 2116 ?        S      0:00          \_ [mysqld]
 2131 ?        S      0:00          \_ [mysqld]
 2133 ?        S      0:00          \_ [mysqld]
 2425 ?        S      0:00          \_ [mysqld]
 2426 ?        S      0:00          \_ [mysqld]
 2429 ?        S      0:00          \_ [mysqld]
 2430 ?        S      0:00          \_ [mysqld]
 2432 ?        S      0:00          \_ [mysqld]
 1432 ?        SW     0:00 [squid]
 1436 ?        S      0:26  \_ (squid) -D
 1466 ?        S      0:00      \_ (unlinkd)
 1460 ?        S      0:00 atalkd
 1461 ?        S      0:00 smbd -D
 1469 ?        S      0:00 nmbd -D
 1472 ?        SW     0:00  \_ [nmbd]
 1537 ?        S      0:00 [named]
 1542 ?        S      0:00  \_ [named]
 1543 ?        S      0:03      \_ [named]
 1544 ?        S      0:00      \_ [named]
 1545 ?        S      0:00      \_ [named]
 1538 ?        SW     0:00 [pptpd]
 1539 tty1     SW     0:00 [mingetty]
 1540 tty2     SW     0:00 [mingetty]
 1541 tty3     SW     0:00 [mingetty]
 1560 ?        SW     0:00 [papd]
 1565 ?        SW     0:00 [afpd]

Sharif George

Re: Gradual Slowdown in 5.5
« Reply #5 on: September 04, 2003, 06:29:42 PM »
I have a similar problem with 5.6 and I can see that it is squid and SPAMD how do I reduce the overhead these require, My server does not crash but looking at the performance log may well do so soon

Thanks

Sharif