Page 1 of 1
Probleme mit perl und apache2
Posted: 2006-03-12 23:53
by hellkeeper
Abend!
So, ich weiß leider einfach nicht mehr weiter. Bis vor kurzem funktionierte eigentlich alles einwandfrei. Doch seit einigen Stunden habe ich folgende Probleme auf meinem Rootserver (Ist kein 1&1 rootserver - also kein Plesk etc - ssh shell only - OS ist SuSE 10)
Nach einer gewissen Laufzeit scheint sich irgendein Perl Skript selbständig zu machen. Es dauert ca. 24 h, dann ist der komplette Processtree mit dem "vollgesaut" und es geht gar nichts mehr. Das einzige was dann noch hilft ist ein reboot.
Ich hab schon mittels grep und ps nachgesehen. Es sieht so aus als würde ein Dienst Names "httpwww" andauernd perl verwenden. Auch wenn ich apache2 beende läuft dieser Dienst weiter und blockiert dann die Ports 80 und 443.
Wenn ich also einen apache restart durchführen will bekomme ich:
Code: Select all
/etc/init.d/apache2 start
Starting httpd2 (prefork) (98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1 failed
Das ganze passiert aber nur sporadisch? Sprich manchmal kann ich apache2 restarten und manchmal nicht?
Was genau kann ich jetzt tun? Wie finde ich raus was dieser httpwww wirklich macht? Google sagt mir dazu nichts. Vielleicht könnt ihr mir ja weiterhelfen. Vielen Dank!
Re: Probleme mit perl und apache2
Posted: 2006-03-13 00:09
by Joe User
Re: Probleme mit perl und apache2
Posted: 2006-03-13 11:34
by hellkeeper
Code: Select all
dedicated:~ # ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 692 260 ? S Mar12 0:01 init [3]
root 2 0.0 0.0 0 0 ? S Mar12 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN Mar12 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Mar12 0:01 [migration/1]
root 5 0.0 0.0 0 0 ? SN Mar12 0:00 [ksoftirqd/1]
root 6 0.0 0.0 0 0 ? S Mar12 0:02 [migration/2]
root 7 0.0 0.0 0 0 ? SN Mar12 0:00 [ksoftirqd/2]
root 8 0.0 0.0 0 0 ? S Mar12 0:00 [migration/3]
root 9 0.0 0.0 0 0 ? SN Mar12 0:00 [ksoftirqd/3]
root 10 0.0 0.0 0 0 ? S< Mar12 0:00 [events/0]
root 11 0.0 0.0 0 0 ? S< Mar12 0:00 [events/1]
root 12 0.0 0.0 0 0 ? S< Mar12 0:00 [events/2]
root 13 0.0 0.0 0 0 ? S< Mar12 0:00 [events/3]
root 14 0.0 0.0 0 0 ? S< Mar12 0:00 [khelper]
root 15 0.0 0.0 0 0 ? S< Mar12 0:00 [kthread]
root 28 0.0 0.0 0 0 ? S< Mar12 0:00 _ [kacpid]
root 551 0.0 0.0 0 0 ? S< Mar12 0:00 _ [kblockd/0]
root 552 0.0 0.0 0 0 ? S< Mar12 0:00 _ [kblockd/1]
root 553 0.0 0.0 0 0 ? S< Mar12 0:00 _ [kblockd/2]
root 554 0.0 0.0 0 0 ? S< Mar12 0:00 _ [kblockd/3]
root 609 0.0 0.0 0 0 ? S Mar12 0:00 _ [pdflush]
root 610 0.0 0.0 0 0 ? S Mar12 0:00 _ [pdflush]
root 612 0.0 0.0 0 0 ? S< Mar12 0:00 _ [aio/0]
root 613 0.0 0.0 0 0 ? S< Mar12 0:00 _ [aio/1]
root 614 0.0 0.0 0 0 ? S< Mar12 0:00 _ [aio/2]
root 615 0.0 0.0 0 0 ? S< Mar12 0:00 _ [aio/3]
root 1213 0.0 0.0 0 0 ? S< Mar12 0:00 _ [kseriod]
root 1427 0.0 0.0 0 0 ? S< Mar12 0:00 _ [ata/0]
root 1428 0.0 0.0 0 0 ? S< Mar12 0:00 _ [ata/1]
root 1429 0.0 0.0 0 0 ? S< Mar12 0:00 _ [ata/2]
root 1430 0.0 0.0 0 0 ? S< Mar12 0:00 _ [ata/3]
root 3077 0.0 0.0 0 0 ? S< Mar12 0:00 _ [khubd]
root 5276 0.0 0.0 0 0 ? S< Mar12 0:00 _ [nfsd4]
root 5283 0.0 0.0 0 0 ? S< Mar12 0:00 _ [rpciod/0]
root 5284 0.0 0.0 0 0 ? S< Mar12 0:00 _ [rpciod/1]
root 5285 0.0 0.0 0 0 ? S< Mar12 0:00 _ [rpciod/2]
root 5286 0.0 0.0 0 0 ? S< Mar12 0:00 _ [rpciod/3]
root 611 0.0 0.0 0 0 ? S Mar12 0:00 [kswapd0]
root 1268 0.0 0.0 0 0 ? S Mar12 0:00 [kirqd]
root 1357 0.0 0.0 0 0 ? S Mar12 0:00 [scsi_eh_0]
root 1534 0.0 0.0 0 0 ? S Mar12 0:00 [kjournald]
root 2508 0.0 0.0 0 0 ? S Mar12 0:00 [kjournald]
root 2509 0.0 0.0 0 0 ? S Mar12 0:00 [kjournald]
root 2539 0.0 0.0 1848 912 ? S<s Mar12 0:00 /sbin/udevd --daemon --stop-exec-queue
root 3059 0.0 0.0 0 0 ? S Mar12 0:00 [shpchpd_event]
root 4834 0.0 0.0 2004 588 ? Ss Mar12 0:00 /sbin/resmgrd
100 4859 0.0 0.0 3520 1536 ? Ss Mar12 0:00 /usr/bin/dbus-daemon --system
root 5092 0.0 0.0 4084 1156 ? Ss Mar12 0:00 /usr/sbin/saslauthd -a pam
root 5097 0.0 0.0 4084 1156 ? S Mar12 0:00 _ /usr/sbin/saslauthd -a pam
root 5098 0.0 0.0 4084 1156 ? S Mar12 0:00 _ /usr/sbin/saslauthd -a pam
root 5099 0.0 0.0 4084 1156 ? S Mar12 0:00 _ /usr/sbin/saslauthd -a pam
root 5100 0.0 0.0 4084 1156 ? S Mar12 0:00 _ /usr/sbin/saslauthd -a pam
root 5096 0.0 0.0 1656 720 ? Ss Mar12 0:00 /sbin/syslogd -a /var/lib/named/dev/log
root 5103 0.0 0.0 1628 608 ? Ss Mar12 0:00 /sbin/klogd -c 1 -x -x
nobody 5119 0.0 0.0 1536 504 ? Ss Mar12 0:00 /sbin/portmap
root 5243 0.0 0.0 2216 912 ? Ss Mar12 0:00 /usr/sbin/xinetd
root 5277 0.0 0.0 0 0 ? S Mar12 0:00 [nfsd]
root 5278 0.0 0.0 0 0 ? S Mar12 0:00 [nfsd]
root 5279 0.0 0.0 0 0 ? S Mar12 0:00 [nfsd]
root 5280 0.0 0.0 0 0 ? S Mar12 0:00 [nfsd]
root 5282 0.0 0.0 0 0 ? S Mar12 0:00 [lockd]
root 5288 0.0 0.0 1496 540 ? Ss Mar12 0:00 /usr/sbin/acpid
root 5290 0.0 0.0 2484 1204 ? S Mar12 0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysmysql 5432 3.8 1.2 109180 26212 ? Sl Mar12 26:53 _ /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --usroot 5324 0.0 0.0 4700 1992 ? Ss Mar12 0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root 6201 0.0 0.1 8316 2516 ? Ss 11:21 0:00 _ sshd: root@pts/0
root 6287 0.0 0.0 4252 1904 pts/0 Ss+ 11:22 0:00 | _ -bash
root 6910 0.0 0.1 8380 2420 ? Ss 11:25 0:00 _ sshd: root@pts/1
root 6926 0.1 0.0 3992 1800 pts/1 Ss 11:25 0:00 _ -bash
root 7034 0.0 0.0 2748 828 pts/1 R+ 11:25 0:00 _ ps auxf
root 5330 0.0 0.0 5900 1664 ? Ss Mar12 0:00 pure-ftpd (SERVER)
root 5388 0.0 0.0 1724 704 ? Ss Mar12 0:00 /usr/sbin/rpc.mountd
root 5428 0.0 0.0 1620 640 ? Ss Mar12 0:00 /usr/sbin/rpc.rquotad
ntp 5531 0.0 0.1 3968 3968 ? SLs Mar12 0:00 /usr/sbin/ntpd -p /var/lib/ntp/var/run/ntp/ntpd.pid -u ntp -i /varoot 5547 0.0 0.0 17068 1400 ? Ssl Mar12 0:04 /usr/sbin/nscd
root 5556 0.0 0.1 6736 2892 ? Ss Mar12 0:00 sendmail: accepting connections
mail 5561 0.0 0.1 6076 2416 ? Ss Mar12 0:00 sendmail: Queue control
mail 5562 0.0 0.1 6196 2572 ? S Mar12 0:00 _ sendmail: running queue: /var/spool/clientmqueue
root 5570 0.0 0.0 1784 624 ? Ss Mar12 0:00 /usr/sbin/cron
root 5587 0.0 0.1 4988 3660 ? Ss Mar12 0:00 /usr/sbin/hald --daemon=yes --retain-privileges
root 5654 0.0 0.0 1788 580 ? S Mar12 0:00 _ hald-addon-acpi
root 5823 0.0 0.0 1796 616 ? S Mar12 0:07 _ hald-addon-storage
root 5719 0.0 0.0 3136 1604 ? S Mar12 0:00 /usr/sbin/powersaved -d -f /var/run/acpid.socket -v 3
root 5912 0.0 0.0 1932 624 tty1 Ss+ Mar12 0:00 /sbin/mingetty --noclear tty1
root 5914 0.0 0.0 1932 608 tty2 Ss+ Mar12 0:00 /sbin/mingetty tty2
root 5916 0.0 0.0 1928 604 tty3 Ss+ Mar12 0:00 /sbin/mingetty tty3
root 5917 0.0 0.0 1932 608 tty4 Ss+ Mar12 0:00 /sbin/mingetty tty4
root 5918 0.0 0.0 1928 604 tty5 Ss+ Mar12 0:00 /sbin/mingetty tty5
root 5919 0.0 0.0 1932 608 tty6 Ss+ Mar12 0:00 /sbin/mingetty tty6
root 6295 0.0 0.5 32268 11128 ? Ss Mar12 0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
root 6296 0.0 0.0 1536 412 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2/ root 6297 0.0 0.0 1548 420 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2/ root 6298 0.0 0.0 1540 416 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2/ root 6299 0.0 0.0 1536 412 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2 root 6300 0.0 0.0 1540 416 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2/ root 6301 0.0 0.0 1544 416 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2/ root 6302 0.0 0.0 1540 416 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2/ root 6303 0.0 0.0 1536 412 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2/ root 6304 0.0 0.0 1548 420 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/ root 6305 0.0 0.0 1536 412 ? S Mar12 0:00 _ /usr/sbin/cronolog /home/logs/apache2/root 6311 0.0 0.5 32232 11080 ? S Mar12 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 3668 0.0 0.9 39068 18760 ? S 10:51 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 3891 0.0 0.0 0 0 ? Z 10:54 0:00 | _ [sh] <defunct>
wwwrun 5337 0.1 0.8 38656 18452 ? S 11:12 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 5594 0.1 0.8 38600 18360 ? S 11:14 0:01 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6003 0.0 0.8 37608 17216 ? S 11:18 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6191 0.4 0.9 39208 19220 ? S 11:21 0:01 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6192 0.2 0.8 37352 16968 ? S 11:21 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6224 0.2 0.7 36512 16128 ? S 11:21 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6248 0.3 0.7 36532 16208 ? S 11:22 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6250 0.2 0.7 36964 16504 ? S 11:22 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6364 0.3 0.8 37344 17000 ? S 11:23 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6429 0.2 0.8 37136 16944 ? S 11:23 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6453 0.5 0.9 39088 18800 ? S 11:23 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6473 0.2 0.7 36696 16248 ? S 11:23 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6474 0.7 0.9 39120 18828 ? S 11:23 0:01 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6496 0.1 0.7 35260 14736 ? S 11:23 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6505 0.3 0.7 36516 16112 ? S 11:23 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6508 0.1 0.7 35552 15100 ? S 11:23 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6541 0.5 0.8 38704 18444 ? S 11:23 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6804 0.3 0.7 36716 16216 ? S 11:24 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6958 0.0 0.5 32944 12324 ? S 11:25 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6964 0.0 0.5 32888 12032 ? S 11:25 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6965 0.0 0.5 32888 12088 ? S 11:25 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6966 0.5 0.7 36284 15748 ? S 11:25 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 6967 0.1 0.6 33064 12452 ? S 11:25 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 7000 0.3 0.6 33112 12464 ? S 11:25 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 7004 0.2 0.5 32948 12108 ? S 11:25 0:00 _ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 18585 0.0 0.0 1708 580 ? S 06:24 0:00 /usr/sb
wwwrun 24727 0.0 0.0 1704 532 ? S 08:18 0:00 /usr/sb
wwwrun 3907 0.0 0.1 6060 4140 ? S 10:54 0:00 /usr/local/apache/bin/httpd -DSSL
Und lsof:
Code: Select all
dedicated:~ # lsof -P -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd2-pr 3668 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 3668 wwwrun 27u IPv6 404123187 TCP www.DOMAIN.COM:80->mail.hak-steyr.asn-linz.ac.at:11899 (ESTABLISHED)
httpd2-pr 5337 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 5337 wwwrun 27u IPv6 404123202 TCP www.DOMAIN.COM:80->mail.hak-steyr.asn-linz.ac.at:11963 (ESTABLISHED)
httpd2-pr 6295 root 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 6311 root 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7121 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7121 wwwrun 27u IPv6 404122470 TCP www.DOMAIN.COM:80->neptun.lbs-th.ac.at:11860 (CLOSE_WAIT)
httpd2-pr 7128 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7437 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7437 wwwrun 27u IPv6 404123266 TCP www.DOMAIN.COM:80->dyn-231.246.005.081.arpa.etel.at:65137 (ESTABLISHED)
httpd2-pr 7542 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7542 wwwrun 27u IPv6 404123271 TCP www.DOMAIN.COM:80->dyn-231.246.005.081.arpa.etel.at:65139 (ESTABLISHED)
httpd2-pr 7551 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7551 wwwrun 27u IPv6 404123225 TCP www.DOMAIN.COM:80->mail.hak-steyr.asn-linz.ac.at:11967 (ESTABLISHED)
httpd2-pr 7559 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7559 wwwrun 27u IPv6 404122651 TCP www.DOMAIN.COM:80->gw1.cargo-partner.com:28042 (ESTABLISHED)
httpd2-pr 7567 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7567 wwwrun 27u IPv6 404123293 TCP www.DOMAIN.COM:80->dyn-231.246.005.081.arpa.etel.at:65145 (ESTABLISHED)
httpd2-pr 7624 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7624 wwwrun 27u IPv6 404122599 TCP www.DOMAIN.COM:80->gw1.cargo-partner.com:26682 (CLOSE_WAIT)
httpd2-pr 7705 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7725 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7731 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7734 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7734 wwwrun 27u IPv6 404123233 TCP www.DOMAIN.COM:80->dyn-231.246.005.081.arpa.etel.at:65131 (ESTABLISHED)
httpd2-pr 7804 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7804 wwwrun 27u IPv6 404122553 TCP www.DOMAIN.COM:80->neptun.lbs-th.ac.at:11878 (CLOSE_WAIT)
httpd2-pr 7808 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7811 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7822 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7822 wwwrun 27u IPv6 404123200 TCP www.DOMAIN.COM:80->zep8.it-austria.net:33863 (ESTABLISHED)
httpd2-pr 7943 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7949 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7949 wwwrun 27u IPv6 404122598 TCP www.DOMAIN.COM:80->gw1.cargo-partner.com:26680 (CLOSE_WAIT)
httpd2-pr 7950 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7950 wwwrun 27u IPv6 404123201 TCP www.DOMAIN.COM:80->zep7.it-austria.net:35219 (ESTABLISHED)
httpd2-pr 7971 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7971 wwwrun 27u IPv6 404123121 TCP www.DOMAIN.COM:80->zep7.it-austria.net:60956 (ESTABLISHED)
httpd2-pr 7979 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 7980 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8043 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8043 wwwrun 27u IPv6 404123122 TCP www.DOMAIN.COM:80->neptun.lbs-th.ac.at:11920 (CLOSE_WAIT)
httpd2-pr 8111 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8111 wwwrun 27u IPv6 404123229 TCP www.DOMAIN.COM:80->proxy.catv4u.at:25324 (ESTABLISHED)
httpd2-pr 8112 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8112 wwwrun 27u IPv6 404122771 TCP www.DOMAIN.COM:80->serverperu.com:39108 (CLOSE_WAIT)
httpd2-pr 8113 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8113 wwwrun 27u IPv6 404123283 TCP www.DOMAIN.COM:80->194.175.243.100:58435 (ESTABLISHED)
httpd2-pr 8119 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8119 wwwrun 27u IPv6 404123253 TCP www.DOMAIN.COM:80->dyn-231.246.005.081.arpa.etel.at:65135 (ESTABLISHED)
perl 8125 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
perl 8125 wwwrun 27u IPv6 404122771 TCP www.DOMAIN.COM:80->serverperu.com:39108 (CLOSE_WAIT)
httpd2-pr 8211 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8211 wwwrun 27u IPv6 404123292 TCP www.DOMAIN.COM:80->dyn-231.246.005.081.arpa.etel.at:65141 (ESTABLISHED)
httpd2-pr 8219 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8219 wwwrun 27u IPv6 404123185 TCP www.DOMAIN.COM:80->mail.hak-steyr.asn-linz.ac.at:11896 (ESTABLISHED)
httpd2-pr 8220 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
httpd2-pr 8220 wwwrun 27u IPv6 404123186 TCP www.DOMAIN.COM:80->mail.hak-steyr.asn-linz.ac.at:11898 (ESTABLISHED)
httpd2-pr 8266 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
Jetzt läuft jedoch auch alles normal.
Gerade vorher tauchte ein neuer Prozess namens ".k" auf, welcher ebenfalls ziemlich an der Performance nagte. Es ist wirklich sehr eigenartig.
Re: Probleme mit perl und apache2
Posted: 2006-03-13 11:42
by hellkeeper
Wenn ich jetzt apache stoppe, kann ich ihn nicht mehr starten und bekomme die oben genannte Fehlermeldung:
Mach ich jetzt ein:
Code: Select all
dedicated:~ # ps auxf
wwwrun 18585 0.0 0.0 1708 580 ? S 06:24 0:00 /usr/sb
wwwrun 24727 0.0 0.0 1704 532 ? S 08:18 0:00 /usr/sb
wwwrun 8125 0.0 0.1 6052 4124 ? S 11:29 0:00 /usr/local/apache/bin/httpd -DSSL
Bleiben diese Prozesse von wwwrun geöffnet.
Bei
Code: Select all
dedicated:~ # lsof -P -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
perl 8125 wwwrun 3u IPv6 15022 TCP *:80 (LISTEN)
perl 8125 wwwrun 27u IPv6 404122771 TCP www.DOMAIN.COM:80->serverperu.com:39108 (CLOSE_WAIT)
bekomme ich das oben! Wartet da mein apache auf einen close von der Website serverperu.com ?
Was ist da los? Wenn ich den Prozess per kill -9 terminiere kann ich apache übrigens wieder starten. (logisch)
Vielen Dank!
Re: Probleme mit perl und apache2
Posted: 2006-03-13 11:57
by geo
Da wird vielleicht ein Perk script aufgerufen, das sich forked und der Childprozess bleibt aktiv.
Suche in deinen Perlscripts nach "fork"
Re: Probleme mit perl und apache2
Posted: 2006-03-13 14:03
by rootsvr
Ist das was Du da schreibst denn ein gewolltes Verhalten.. also Perlscript öffnet Verbindung zu anderen Hosts?
Wenn nein tippe ich auf altes Phpbb und ungebetenen Gast auf deiner kiste..
Re: Probleme mit perl und apache2
Posted: 2006-03-13 18:34
by hellkeeper
Ich weiß dass ich jetzt von euch wahrscheinlich beschimpft werde, aber egal ;)
phpBB ist die aktuellste Version installiert (2.0.19)
Es kann jedoch sein und ich glaube, dass das die Ursache ist, dass das unlängst transferierte Mambo (nicht die aktuelle version, weil leider sehr stark modifiziert) die Probleme hervorft.
Der Server lief vorher praktisch eine Woche ohne Probleme (phpbb, phpadsnew, etc) - seitdem jedoch das Mambo CMS umgezogen ist, gibt es diese Probleme. Das einzige was mir wahrscheinlich übrig bleiben wird, ist das Mambo zu joomla upzudaten und alle Modifikationen wieder von Hand vorzunehmen.
Gibt es eigentlich irgendeine Möglichkeit um heraus zu finden welchers perl skript da ausgeführt wird? Irgendeinen Befehl, bitte, irgendwas. ;)
Ich weiß, dass es im Transfer und vor allem in der Anwendung einige Dinge gegeben hat die so nicht passieren hätten dürfen. Ich hoffe ihr helft mir trotzdem.
Re: Probleme mit perl und apache2
Posted: 2006-03-13 19:40
by hellkeeper
Ok, ich glaube ich habe das Problem gefunden.
In der php.ini war session.auto start = 1 eingetragen, was mambo anscheinend nicht so gerne hat. Jetzt ist es und bis dato läuft alles rund!