PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : SuSE 8.0 -> SuSE 9.2 Webserver



rep
10.02.05, 10:03
Hi zusammen,

ich habe vor zwei Wochen einen SuSE 8.0 Webserver in einen SuSE 9.2 Webserver umgebaut. Wie sich in der Testphase aber nicht gezeigt hat wird nun auf dem live System scheinbar mehr Speicher für PHP Prozesse genutzt wie zuvor auf dem alten System. Die Anwendungen sind natürlich samt Konfigurationen 1 zu 1 übernommen worden.

Aber da sich nun der Apache2 und MySQL 4 dort befindet, sowie eine neue GD Version vermute ich das es unter umständen daran liegen könnte. Die PHP Version selbst ist identisch mit der auf dem alten Server.

Kann sich jemand dies erklären, liegt das an mir oder ist das tatsächlich normal. Schlimm ist das nun reinenweise die Memorylimits auf den VirutalHost hochgescaltet werden müssen damit die Anwendungne laufen...

Gruß

Tomek
10.02.05, 10:34
Schwer zu sagen... Ein Einblick in die Apache-Konfiguration (MPM-Settings) und PHPInfo wäre interessant. Evtl. noch die Ausgabe von:

ps auxf
top -b -n 1

rep
10.02.05, 11:34
Hier die "pa -auxf" ausgabe



top - 12:27:02 up 11 days, 10:42, 1 user, load average: 0.78, 0.87, 0.85
Tasks: 123 total, 1 running, 122 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.4% us, 2.0% sy, 0.0% ni, 88.2% id, 3.3% wa, 0.0% hi, 0.1% si
Mem: 1034404k total, 922832k used, 111572k free, 89452k buffers
Swap: 506036k total, 233888k used, 272148k free, 391972k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 16 0 596 80 452 S 0.0 0.0 0:02.07 init
2 root RT 0 0 0 0 S 0.0 0.0 0:10.04 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.22 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 0:30.97 migration/1
5 root 34 19 0 0 0 S 0.0 0.0 0:00.13 ksoftirqd/1
6 root RT 0 0 0 0 S 0.0 0.0 0:01.63 migration/2
7 root 34 19 0 0 0 S 0.0 0.0 0:00.13 ksoftirqd/2
8 root RT 0 0 0 0 S 0.0 0.0 1:07.22 migration/3
9 root 34 19 0 0 0 S 0.0 0.0 0:00.12 ksoftirqd/3
10 root 5 -10 0 0 0 S 0.0 0.0 0:00.21 events/0
11 root 5 -10 0 0 0 S 0.0 0.0 0:00.02 events/1
12 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/2
13 root 5 -10 0 0 0 S 0.0 0.0 0:00.01 events/3
14 root 5 -10 0 0 0 S 0.0 0.0 0:00.10 khelper
15 root 5 -10 0 0 0 S 0.0 0.0 0:00.05 netlink/0
16 root 5 -10 0 0 0 S 0.0 0.0 0:00.05 netlink/1
17 root 5 -10 0 0 0 S 0.0 0.0 0:00.03 netlink/2
18 root 5 -10 0 0 0 S 0.0 0.0 0:00.02 netlink/3
19 root 5 -10 0 0 0 S 0.0 0.0 3:47.84 kacpid
36 root 5 -10 0 0 0 S 0.0 0.0 0:58.16 kblockd/0
37 root 5 -10 0 0 0 S 0.0 0.0 0:04.35 kblockd/1
38 root 5 -10 0 0 0 S 0.0 0.0 0:00.26 kblockd/2
39 root 5 -10 0 0 0 S 0.0 0.0 0:00.71 kblockd/3
49 root 15 0 0 0 0 S 0.0 0.0 0:00.59 kirqd
52 root 15 0 0 0 0 S 0.0 0.0 4:50.79 kswapd0
53 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
54 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 aio/1
55 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 aio/2
56 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 aio/3
639 root 22 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
1499 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
1500 root 15 0 0 0 0 S 0.0 0.0 0:00.00 ahc_dv_0
1784 root 5 -10 0 0 0 S 0.0 0.0 0:48.10 reiserfs/0
1785 root 5 -10 0 0 0 S 0.0 0.0 0:21.62 reiserfs/1
1786 root 5 -10 0 0 0 S 0.0 0.0 0:01.17 reiserfs/2
1787 root 5 -10 0 0 0 S 0.0 0.0 0:05.70 reiserfs/3
2205 root 19 0 0 0 0 S 0.0 0.0 0:00.00 khubd
2249 root 5 -10 1364 56 1212 S 0.0 0.0 0:00.00 udevd
2527 root 18 0 1436 96 1212 S 0.0 0.0 0:00.00 hwscand
2641 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khpsbpkt
2691 root 15 0 0 0 0 S 0.0 0.0 0:00.00 knodemgrd_0
3151 root 16 0 1444 324 1276 S 0.0 0.0 0:43.58 syslogd
3154 root 16 0 1520 332 1228 S 0.0 0.0 0:16.44 klogd
3175 root 18 0 1412 52 1252 S 0.0 0.0 0:00.00 resmgrd
3291 named 18 0 30688 1840 4116 S 0.0 0.2 0:00.00 named
3343 root 15 0 1388 52 1220 S 0.0 0.0 0:00.00 acpid
3374 root 17 0 2504 52 2320 S 0.0 0.0 0:00.01 powersaved
3472 root 6 -10 1436 96 1212 S 0.0 0.0 0:00.00 hwscand
3883 root 15 0 1656 376 1484 S 0.0 0.0 0:15.06 cron
3887 root 24 0 1816 52 1640 S 0.0 0.0 0:00.16 mingetty
3888 root 25 0 1816 52 1640 S 0.0 0.0 0:00.13 mingetty
3889 root 24 0 1816 52 1640 S 0.0 0.0 0:00.14 mingetty
3890 root 21 0 1816 52 1640 S 0.0 0.0 0:00.14 mingetty
3891 root 24 0 1816 52 1640 S 0.0 0.0 0:00.14 mingetty
3892 root 23 0 1816 52 1640 S 0.0 0.0 0:00.14 mingetty
3893 root 15 0 1350m 1408 4040 S 0.0 0.1 0:00.71 twunxsdr.bin
1544 root 24 0 2592 420 2396 S 0.0 0.0 0:00.01 mysqld_safe
1578 mysql 16 0 142m 73m 6608 S 0.0 7.3 1:09.43 mysqld-max
1647 root 15 0 2080 632 1744 S 0.0 0.1 0:00.16 xinetd
14891 root 16 0 17856 7616 13m S 0.0 0.7 0:32.04 httpd2-prefork
2392 root 30 15 7144 1192 5384 S 0.0 0.1 0:14.62 snmpd
26343 root 15 0 4216 760 4004 S 0.0 0.1 0:06.50 master
15196 root 16 0 5148 840 4748 S 0.0 0.1 0:00.78 sshd
27913 postfix 15 0 4484 924 4080 S 0.0 0.1 0:05.54 qmgr
30835 root 15 0 0 0 0 S 0.0 0.0 0:06.92 pdflush
30908 root 15 0 0 0 0 S 0.0 0.0 0:07.02 pdflush
28045 wwwrun 16 0 22364 13m 13m S 0.0 1.3 0:22.85 httpd2-prefork
28240 wwwrun 16 0 22400 13m 13m S 0.0 1.3 0:34.28 httpd2-prefork
28291 wwwrun 16 0 22344 12m 13m S 0.0 1.3 0:39.88 httpd2-prefork
28640 wwwrun 15 0 22072 12m 13m S 0.0 1.3 0:19.84 httpd2-prefork
28683 wwwrun 16 0 22996 13m 13m S 0.0 1.3 0:35.59 httpd2-prefork
28760 wwwrun 15 0 22420 13m 13m S 0.0 1.3 0:23.73 httpd2-prefork
28763 wwwrun 16 0 29956 20m 13m S 0.0 2.0 0:14.42 httpd2-prefork
28838 wwwrun 15 0 22164 12m 13m S 0.0 1.3 0:12.55 httpd2-prefork
28841 wwwrun 15 0 22540 13m 13m S 0.0 1.3 0:06.86 httpd2-prefork
28960 wwwrun 15 0 22208 12m 13m S 0.0 1.2 0:04.26 httpd2-prefork
29018 wwwrun 15 0 22292 12m 13m S 0.0 1.3 0:04.55 httpd2-prefork
29020 wwwrun 16 0 25148 15m 13m S 0.0 1.6 0:08.79 httpd2-prefork
29021 wwwrun 16 0 22764 13m 13m S 0.0 1.3 0:11.28 httpd2-prefork
29030 wwwrun 16 0 22504 12m 13m S 0.0 1.3 0:10.36 httpd2-prefork
29031 wwwrun 15 0 22008 12m 13m S 0.0 1.2 0:05.82 httpd2-prefork
29118 wwwrun 15 0 21836 12m 13m S 0.0 1.2 0:01.36 httpd2-prefork
29119 wwwrun 16 0 22052 12m 13m S 0.0 1.2 0:07.28 httpd2-prefork
29122 wwwrun 17 0 22144 12m 13m S 0.0 1.2 0:03.65 httpd2-prefork
29123 wwwrun 16 0 30584 20m 13m S 0.0 2.1 0:13.70 httpd2-prefork
29130 wwwrun 16 0 20260 10m 13m S 0.0 1.1 0:02.06 httpd2-prefork
29131 wwwrun 16 0 21880 12m 13m S 0.0 1.2 0:02.40 httpd2-prefork
29137 wwwrun 15 0 21140 11m 13m S 0.0 1.1 0:00.15 httpd2-prefork
29162 wwwrun 16 0 21960 12m 13m S 0.0 1.2 0:00.85 httpd2-prefork
29163 wwwrun 16 0 22232 12m 13m S 0.0 1.2 0:10.85 httpd2-prefork
29188 wwwrun 16 0 24992 15m 13m S 0.0 1.5 0:04.06 httpd2-prefork
29190 wwwrun 18 0 19796 9.9m 13m S 0.0 1.0 0:00.06 httpd2-prefork
29192 wwwrun 16 0 21904 12m 13m S 0.0 1.2 0:00.45 httpd2-prefork
29193 wwwrun 16 0 23100 13m 13m S 0.0 1.3 0:00.74 httpd2-prefork
29202 wwwrun 24 0 31276 21m 13m S 0.0 2.1 0:15.06 httpd2-prefork
29221 wwwrun 15 0 22184 12m 13m S 0.0 1.2 0:03.47 httpd2-prefork
29224 wwwrun 16 0 21820 12m 13m S 0.0 1.2 0:00.30 httpd2-prefork
29226 wwwrun 15 0 28828 18m 13m S 0.0 1.9 0:09.88 httpd2-prefork
29227 wwwrun 16 0 22836 13m 13m S 0.0 1.3 0:02.35 httpd2-prefork
29277 wwwrun 16 0 18936 9408 13m S 0.0 0.9 0:00.11 httpd2-prefork
29299 wwwrun 16 0 18128 8052 13m S 0.0 0.8 0:00.04 httpd2-prefork
29302 wwwrun 15 0 22136 12m 13m S 0.0 1.2 0:00.33 httpd2-prefork
29305 wwwrun 16 0 18876 9452 13m S 0.0 0.9 0:00.15 httpd2-prefork
29306 wwwrun 15 0 18932 9284 13m S 0.0 0.9 0:00.10 httpd2-prefork
29318 postfix 16 0 4780 1820 4052 S 0.0 0.2 0:00.00 trivial-rewrite
29319 postfix 15 0 4364 1648 4144 S 0.0 0.2 0:00.00 smtp
29320 postfix 15 0 4364 1652 4144 S 0.0 0.2 0:00.00 smtp
29321 postfix 15 0 4272 1452 4064 S 0.0 0.1 0:00.00 bounce
29322 postfix 17 0 4272 1452 4064 S 0.0 0.1 0:00.00 bounce
29336 postfix 16 0 4944 1928 4088 S 0.0 0.2 0:00.00 cleanup
29339 root 15 0 8336 2564 4984 S 0.0 0.2 0:00.05 sshd
29342 postfix 18 0 4260 1440 4048 S 0.0 0.1 0:00.00 pickup
29343 root 16 0 3064 1904 2588 S 0.0 0.2 0:00.03 bash
29363 wwwrun 16 0 21804 11m 13m S 0.0 1.2 0:00.19 httpd2-prefork
29367 wwwrun 16 0 17992 7732 13m S 0.0 0.7 0:00.00 httpd2-prefork
29368 wwwrun 15 0 17992 7820 13m S 0.0 0.8 0:00.00 httpd2-prefork
29369 wwwrun 17 0 17992 7740 13m S 0.0 0.7 0:00.00 httpd2-prefork
29373 wwwrun 16 0 17992 7736 13m S 0.0 0.7 0:00.00 httpd2-prefork
29374 wwwrun 16 0 17992 7736 13m S 0.0 0.7 0:00.00 httpd2-prefork
29375 wwwrun 16 0 17992 7736 13m S 0.0 0.7 0:00.00 httpd2-prefork
29377 wwwrun 16 0 17856 7644 13m S 0.0 0.7 0:00.00 httpd2-prefork
29385 root 16 0 1952 1000 1744 R 0.0 0.1 0:00.00 top


und hier die Ausgabe von "ps -b -n 1"



USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 596 80 ? S Jan30 0:02 init [3]
root 2 0.0 0.0 0 0 ? S Jan30 0:10 [migration/0]
root 3 0.0 0.0 0 0 ? SN Jan30 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Jan30 0:30 [migration/1]
root 5 0.0 0.0 0 0 ? SN Jan30 0:00 [ksoftirqd/1]
root 6 0.0 0.0 0 0 ? S Jan30 0:01 [migration/2]
root 7 0.0 0.0 0 0 ? SN Jan30 0:00 [ksoftirqd/2]
root 8 0.0 0.0 0 0 ? S Jan30 1:07 [migration/3]
root 9 0.0 0.0 0 0 ? SN Jan30 0:00 [ksoftirqd/3]
root 10 0.0 0.0 0 0 ? S< Jan30 0:00 [events/0]
root 14 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [khelper]
root 16 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [netlink/1]
root 18 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [netlink/3]
root 36 0.0 0.0 0 0 ? S< Jan30 0:58 \_ [kblockd/0]
root 38 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [kblockd/2]
root 53 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [aio/0]
root 55 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [aio/2]
root 1784 0.0 0.0 0 0 ? S< Jan30 0:48 \_ [reiserfs/0]
root 1786 0.0 0.0 0 0 ? S< Jan30 0:01 \_ [reiserfs/2]
root 30835 0.0 0.0 0 0 ? S Feb09 0:06 \_ [pdflush]
root 30908 0.0 0.0 0 0 ? S Feb09 0:07 \_ [pdflush]
root 11 0.0 0.0 0 0 ? S< Jan30 0:00 [events/1]
root 15 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [netlink/0]
root 17 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [netlink/2]
root 19 0.0 0.0 0 0 ? S< Jan30 3:47 \_ [kacpid]
root 37 0.0 0.0 0 0 ? S< Jan30 0:04 \_ [kblockd/1]
root 39 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [kblockd/3]
root 54 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [aio/1]
root 56 0.0 0.0 0 0 ? S< Jan30 0:00 \_ [aio/3]
root 1785 0.0 0.0 0 0 ? S< Jan30 0:21 \_ [reiserfs/1]
root 1787 0.0 0.0 0 0 ? S< Jan30 0:05 \_ [reiserfs/3]
root 12 0.0 0.0 0 0 ? S< Jan30 0:00 [events/2]
root 13 0.0 0.0 0 0 ? S< Jan30 0:00 [events/3]
root 49 0.0 0.0 0 0 ? S Jan30 0:00 [kirqd]
root 52 0.0 0.0 0 0 ? S Jan30 4:50 [kswapd0]
root 639 0.0 0.0 0 0 ? S Jan30 0:00 [kseriod]
root 1499 0.0 0.0 0 0 ? S Jan30 0:00 [scsi_eh_0]
root 1500 0.0 0.0 0 0 ? S Jan30 0:00 [ahc_dv_0]
root 2205 0.0 0.0 0 0 ? S Jan30 0:00 [khubd]
root 2249 0.0 0.0 1364 56 ? S<s Jan30 0:00 udevd
root 2527 0.0 0.0 1436 96 ? S Jan30 0:00 [hwscand]
root 2641 0.0 0.0 0 0 ? S Jan30 0:00 [khpsbpkt]
root 2691 0.0 0.0 0 0 ? S Jan30 0:00 [knodemgrd_0]
root 3151 0.0 0.0 1444 324 ? Ss Jan30 0:43 /sbin/syslogd -a /var/lib/named/dev/log -a /var/lib/ntp/dev/log
root 3154 0.0 0.0 1520 332 ? Ss Jan30 0:16 /sbin/klogd -c 1 -2 -x
root 3175 0.0 0.0 1412 52 ? Ss Jan30 0:00 /sbin/resmgrd
named 3291 0.0 0.1 30688 1840 ? Ssl Jan30 0:00 /usr/sbin/named -t /var/lib/named -u named
root 3343 0.0 0.0 1388 52 ? Ss Jan30 0:00 /usr/sbin/acpid -c /etc/acpi/events.ignore
root 3374 0.0 0.0 2504 52 ? S Jan30 0:00 /usr/sbin/powersaved -d -x /usr/lib/powersave/scripts -a resmgr -v 3
root 3472 0.0 0.0 1436 96 ? S< Jan30 0:00 [hwscand]
root 3883 0.0 0.0 1656 376 ? Ss Jan30 0:15 /usr/sbin/cron
root 3887 0.0 0.0 1816 52 tty1 Ss+ Jan30 0:00 /sbin/mingetty --noclear tty1
root 3888 0.0 0.0 1816 52 tty2 Ss+ Jan30 0:00 /sbin/mingetty tty2
root 3889 0.0 0.0 1816 52 tty3 Ss+ Jan30 0:00 /sbin/mingetty tty3
root 3890 0.0 0.0 1816 52 tty4 Ss+ Jan30 0:00 /sbin/mingetty tty4
root 3891 0.0 0.0 1816 52 tty5 Ss+ Jan30 0:00 /sbin/mingetty tty5
root 3892 0.0 0.0 1816 52 tty6 Ss+ Jan30 0:00 /sbin/mingetty tty6
root 3893 0.0 0.1 1382920 1408 ? Ssl Jan30 0:00 /usr/local/tapeware/twunxsdr.bin -nodaemon
root 1544 0.0 0.0 2592 420 ? S Jan30 0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/lib/mysql/mysql.
sock --datadir=/var/lib/mysql
mysql 1578 0.0 7.3 145832 75732 ? Sl Jan30 1:09 \_ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysql
d.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
root 1647 0.0 0.0 2080 632 ? Ss Jan30 0:00 /usr/sbin/xinetd
root 14891 0.0 0.7 17856 7616 ? Ss Feb02 0:32 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28045 1.0 1.3 22364 13688 ? S 11:50 0:22 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28240 1.8 1.3 22400 13484 ? S 11:55 0:34 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28291 2.1 1.2 22344 13264 ? S 11:55 0:39 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28640 1.4 1.2 22072 13048 ? S 12:04 0:19 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28683 2.8 1.3 22996 13936 ? S 12:06 0:35 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28760 2.2 1.2 22420 13368 ? S 12:09 0:23 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28763 1.3 2.0 29956 20876 ? S 12:09 0:14 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28838 1.4 1.2 22164 13056 ? S 12:12 0:12 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28841 0.7 1.2 22160 13092 ? S 12:12 0:06 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 28960 0.6 1.2 22208 12904 ? S 12:16 0:04 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29018 0.9 1.2 22292 12984 ? S 12:18 0:04 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29020 1.8 1.5 25148 16128 ? S 12:18 0:08 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29021 2.4 1.2 22764 13444 ? S 12:19 0:11 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29030 2.4 1.2 22504 13244 ? S 12:19 0:10 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29031 1.3 1.2 22008 12856 ? S 12:19 0:05 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29118 0.4 1.2 21836 12740 ? S 12:21 0:01 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29119 2.4 1.2 22052 12704 ? S 12:21 0:07 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29122 1.2 1.2 22144 12828 ? S 12:21 0:03 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29123 3.4 2.0 30584 21388 ? S 12:21 0:10 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29130 0.6 1.0 20260 10904 ? S 12:21 0:01 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29131 0.8 1.2 21880 12764 ? S 12:21 0:02 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29137 0.0 1.1 21140 11776 ? S 12:22 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29162 0.2 0.9 18932 9352 ? S 12:22 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29163 2.9 1.2 22232 12880 ? S 12:22 0:07 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29188 1.9 1.5 24992 15640 ? S 12:23 0:04 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29190 0.0 0.9 19796 10104 ? S 12:23 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29192 0.2 1.2 21904 12484 ? S 12:23 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29193 0.3 1.3 23100 13728 ? S 12:23 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29202 7.6 2.1 31276 21820 ? S 12:23 0:15 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29221 2.0 1.2 22184 12720 ? S 12:23 0:03 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29224 0.1 1.1 21820 12300 ? S 12:24 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29226 6.1 1.8 28828 19376 ? S 12:24 0:09 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29227 1.4 1.3 22836 13560 ? S 12:24 0:02 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29277 0.1 0.8 18936 9288 ? S 12:25 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29299 0.0 0.7 18128 8012 ? S 12:26 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29302 0.0 0.8 18236 8464 ? S 12:26 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29305 0.4 0.9 18876 9348 ? S 12:26 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 29306 0.4 0.8 18932 9284 ? S 12:26 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root 2392 0.0 0.1 7144 1192 ? SN Feb04 0:14 /usr/sbin/snmpd -r -A -Lf /var/log/net-snmpd.log -p /var/run/snmpd.pid
root 26343 0.0 0.0 4216 760 ? Ss Feb05 0:06 /usr/lib/postfix/master
postfix 27913 0.0 0.0 4484 924 ? S Feb06 0:05 \_ qmgr -l -t fifo -u
postfix 29318 0.0 0.1 4780 1820 ? S 12:26 0:00 \_ trivial-rewrite -n rewrite -t unix -u
postfix 29319 0.0 0.1 4364 1648 ? S 12:26 0:00 \_ smtp -t unix -u
postfix 29320 0.0 0.1 4364 1652 ? S 12:26 0:00 \_ smtp -t unix -u
postfix 29321 0.0 0.1 4272 1452 ? S 12:26 0:00 \_ bounce -z -n defer -t unix -u
postfix 29322 0.0 0.1 4272 1452 ? S 12:26 0:00 \_ bounce -z -n defer -t unix -u
postfix 29336 0.0 0.1 4944 1928 ? S 12:26 0:00 \_ cleanup -z -t unix -u
postfix 29342 0.0 0.1 4260 1440 ? S 12:27 0:00 \_ pickup -l -t fifo -u
root 15196 0.0 0.0 5148 840 ? Ss Feb05 0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root 29339 0.0 0.2 8336 2564 ? Ss 12:27 0:00 \_ sshd: root@pts/0
root 29343 0.0 0.1 3064 1900 pts/0 Ss 12:27 0:00 \_ -bash
root 29362 0.0 0.0 2360 864 pts/0 R+ 12:27 0:00 \_ ps auxf



Aber am System selber kann es ja nicht liegen, es ist im PHP Beispielsweise ein Memory limit in der php.ini bzw. dem VirualHost angegeben, das vorher gereicht hat und nun dazu führt das es einen Fehler von php gibt, der sagt das zu viel Speicher genutzt wird für diesen Prozess. Oder sehe ich das falsch?

hier die restliche gewünschte Konfig



<IfModule prefork.c>
# number of server processes to start
StartServers 20
# minimum number of server processes which are kept spare
MinSpareServers 20
# maximum number of server processes which are kept spare
MaxSpareServers 30
# highest possible MaxClients setting for the lifetime of the Apache process.
ServerLimit 250
# maximum number of server processes allowed to start
MaxClients 250
# maximum number of requests a server process serves
MaxRequestsPerChild 0
</IfModule>

rep
16.02.05, 09:27
weiß hier nun keiner mehr weiter? Oder sind die Angaben die ich gemacht habe alle in Ordnung?

Tomek
16.02.05, 11:11
Apache/PHP und MySQL sehen in Ordnung aus hinsichtlich des Speicherverbrauchs.

Jedoch ist ein Prozess vorhanden, der sehr viel Speicher verbraucht und den Server zum Auslagern zwingt. Das Swapfile ist mit über 230 MByte in Benutzung.

root 3893 0.0 0.1 1382920 1408 ? Ssl Jan30 0:00 /usr/local/tapeware/twunxsdr.bin -nodaemon
Dieser Prozess zieht sich 1,4 GByte Speicher rein. Was ist das für ein Programm? Könnte auch ein Memory-Leak sein...

rep
16.02.05, 13:23
Das ist eine Bandsicherungssoftware, sollte mit den Prozessen vom Apache und PHP nichts zu tun haben. Es ist zwar möglich das somit weniger Speicher zur Verfügung steht, aber deswegen meldet PHP nicht das ein Skript zu viel braucht... oder?

Tomek
16.02.05, 15:27
Das ist eine Bandsicherungssoftware, sollte mit den Prozessen vom Apache und PHP nichts zu tun haben.
Hat auch nichts damit zu tun. Aber die Bandsicherungssoftware verbraucht 1,4 GByte Arbeitsspeicher. Das würde ich überprüfen. Entweder die Software rennt Amok oder hat ein oder mehrere Memory-Leaks. Dadurch swappt dein Server 230 MByte, was die Leistung deutlich verringert.


Es ist zwar möglich das somit weniger Speicher zur Verfügung steht, aber deswegen meldet PHP nicht das ein Skript zu viel braucht... oder?
Wenn ein PHP-Skript meldet, dass nicht genügend Speicher zur Verfügung steht, dann musst du das Memory-Limit in der php.ini erhöhen. Das hat übrigens nichts mit Apache1/2 oder der PHP-Version zu tun.

memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Der Standardwert ist 8 MByte. Erhöhe es auf 16 oder mehr:

memory_limit = 16M ; Maximum amount of memory a script may consume (8MB)

rep
12.03.05, 09:19
Wenn ein PHP-Skript meldet, dass nicht genügend Speicher zur Verfügung steht, dann musst du das Memory-Limit in der php.ini erhöhen. Das hat übrigens nichts mit Apache1/2 oder der PHP-Version zu tun.


Genau das ist ja das Problem, wenn du mal oben ließt. Ich habe die selben Einstellungen, sogar das selbe PHP genommen, und der Server beinhaltet auch die selben Packete, nur eben eine SuSE Verion höher was auch einen Apache2 bedeutet.

Auf dem alten Server war also die /etc/php.ini und auch die virtualhosts Einstellungen für php identisch. Beim alten Server ging alles und nun kommt ein Memory warnung.... das kann doch nicht, oder?

rep
12.03.05, 09:22
Und wegen der Bandsoftware, wie das so viel sein konnte weiß ich gerade auch nicht, aber der Server läuft seit dem nach einem Neustart aus anderen Gründen wieder. Und nun sind das "nur" 200 MB.

An dem eigentlichen "php/apache" Problem hat das aber nix geändert.

GRuß
rep