So danke erstmal für die Hilfe gestern der Apache läuft endlich wieder, allerdings ist nun das Problem das der Apache pro Prefork an die 200 MB Ram verbraucht was den Server zwangsläufig in die Knie zwingt.
Wir haben bei uns:
Apache Version 2.2.3 mit php 4.4.4 und MySQL-Version 4.1.13
Leider habe ich patu keine Idee wie ich den Speicherverbrauch runterschrauben kann den so kann man den Server nicht gebrauchen.
Vielen Dank im Vorfeld schonmal
Apache pro Prefork 200mb Speicherverbrauch
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Apache pro Prefork 200mb Speicherverbrauch
Sehr unwahrscheinlich. Ohne konkrete Daten und mehr Details würde ich eher tippen, dass alle Apache Prozesse zusammen 200 MB benötigen.ziegel wrote:So danke erstmal für die Hilfe gestern der Apache läuft endlich wieder, allerdings ist nun das Problem das der Apache pro Prefork an die 200 MB Ram verbraucht was den Server zwangsläufig in die Knie zwingt.
Schau dir doch mal die Ausgabe von "pmap -d `pgrep httpd2-prefork`" an und lies dazu http://virtualthreads.blogspot.com/2006 ... linux.html
Re: Apache pro Prefork 200mb Speicherverbrauch
die ausgabe des befehles ergibt
6018
6019
6020
6021
6022
6023
6029
6031
6033
6036
6037
6039
6040
6047
6048
6049
6050
6051
6052
6054
6055
6071
6072
6078
6080
6081
6082
6085
6086
6087
6089
6090
6091
6098
6099
6104
6105
6106
6107
6108
6109
6111
6112
6113
6121
6122
6123
6124
6125
äh damit kann ich jetzt fast nix anfangen
welche infos benötigt ihr? ich muss leider gestehen das ich mit apache nicht so gut kann und daher recht wenig ahnung von dem ding habe
6018
6019
6020
6021
6022
6023
6029
6031
6033
6036
6037
6039
6040
6047
6048
6049
6050
6051
6052
6054
6055
6071
6072
6078
6080
6081
6082
6085
6086
6087
6089
6090
6091
6098
6099
6104
6105
6106
6107
6108
6109
6111
6112
6113
6121
6122
6123
6124
6125
äh damit kann ich jetzt fast nix anfangen
welche infos benötigt ihr? ich muss leider gestehen das ich mit apache nicht so gut kann und daher recht wenig ahnung von dem ding habe
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Apache pro Prefork 200mb Speicherverbrauch
Das ist die Ausgabe von "pgrep httpd2-prefork". Das Kommando "pmap -d `pgrep httpd2-prefork`" sollte in etwa folgendes ausgeben:
Code: Select all
14047: /usr/sbin/httpd2-prefork -D SSL -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
Address Kbytes Mode Offset Device Mapping
[...]
mapped: 8876K writeable/private: 2780K shared: 316K
5024: /usr/sbin/httpd2-prefork -D SSL -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
Address Kbytes Mode Offset Device Mapping
[...]
mapped: 233824K writeable/private: 225980K shared: 1028K
3794: /usr/sbin/httpd2-prefork -D SSL -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
Address Kbytes Mode Offset Device Mapping
80000000 384 r-x-- 0000000000000000 003:00005 apache2
[...]
mapped: 233000K writeable/private: 226048K shared: 1028K
usw.Re: Apache pro Prefork 200mb Speicherverbrauch
hupala hier der neue auszug leider nicht alles ich hab den oberenteil nicht mehr makieren können (konsole eine sache die ich ja liebe)
[/code]
Code: Select all
002aaaae599000 4 r-x-- 0000000000000000 003:00003 Const.so
00002aaaae59a000 1024 ----- 0000000000001000 003:00003 Const.so
00002aaaae69a000 4 rw--- 0000000000001000 003:00003 Const.so
00002aaaae69b000 4 r-x-- 0000000000000000 003:00003 Const.so
00002aaaae69c000 1024 ----- 0000000000001000 003:00003 Const.so
00002aaaae79c000 4 rw--- 0000000000001000 003:00003 Const.so
00002aaaae79d000 16 r-x-- 0000000000000000 003:00003 ZendExtensionManager.so
00002aaaae7a1000 1020 ----- 0000000000004000 003:00003 ZendExtensionManager.so
00002aaaae8a0000 4 rw--- 0000000000003000 003:00003 ZendExtensionManager.so
00002aaaae8a1000 200 r-x-- 0000000000000000 003:00003 gd.so
00002aaaae8d3000 1024 ----- 0000000000032000 003:00003 gd.so
00002aaaae9d3000 128 rw--- 0000000000032000 003:00003 gd.so
00002aaaae9f3000 80 rw--- 00002aaaae9f3000 000:00000 [ anon ]
00002aaaaea16000 240 r-x-- 0000000000000000 003:00003 libt1.so.1.3.1
00002aaaaea52000 1024 ----- 000000000003c000 003:00003 libt1.so.1.3.1
00002aaaaeb52000 16 rw--- 000000000003c000 003:00003 libt1.so.1.3.1
00002aaaaeb56000 64 rw--- 00002aaaaeb56000 000:00000 [ anon ]
00002aaaaeb66000 476 r-x-- 0000000000000000 003:00003 libfreetype.so.6.3.8
00002aaaaebdd000 1020 ----- 0000000000077000 003:00003 libfreetype.so.6.3.8
00002aaaaecdc000 20 rw--- 0000000000076000 003:00003 libfreetype.so.6.3.8
00002aaaaece1000 1060 r-x-- 0000000000000000 003:00003 libX11.so.6.2
00002aaaaedea000 1024 ----- 0000000000109000 003:00003 libX11.so.6.2
00002aaaaeeea000 24 rw--- 0000000000109000 003:00003 libX11.so.6.2
00002aaaaeef0000 88 r-x-- 0000000000000000 003:00003 libXpm.so.4.11
00002aaaaef06000 1020 ----- 0000000000016000 003:00003 libXpm.so.4.11
00002aaaaf005000 4 rw--- 0000000000015000 003:00003 libXpm.so.4.11
00002aaaaf006000 64 r-x-- 0000000000000000 003:00003 libXext.so.6.4
00002aaaaf016000 1024 ----- 0000000000010000 003:00003 libXext.so.6.4
00002aaaaf116000 4 rw--- 0000000000010000 003:00003 libXext.so.6.4
00002aaaaf117000 48 r-x-- 0000000000000000 003:00003 mysql.so
00002aaaaf123000 1020 ----- 000000000000c000 003:00003 mysql.so
00002aaaaf222000 8 rw--- 000000000000b000 003:00003 mysql.so
00002aaaaf233000 300 r-x-- 0000000000000000 003:00003 libmysqlclient.so.14.0.0
00002aaaaf27e000 1024 ----- 000000000004b000 003:00003 libmysqlclient.so.14.0.0
00002aaaaf37e000 884 rw--- 000000000004b000 003:00003 libmysqlclient.so.14.0.0
00002aaaaf45b000 12 rw--- 00002aaaaf45b000 000:00000 [ anon ]
00002aaaaf45e000 60 r-x-- 0000000000000000 003:00003 unixODBC.so
00002aaaaf46d000 1020 ----- 000000000000f000 003:00003 unixODBC.so
00002aaaaf56c000 8 rw--- 000000000000e000 003:00003 unixODBC.so
00002aaaaf57d000 364 r-x-- 0000000000000000 003:00003 libodbc.so.1.0.0
00002aaaaf5d8000 1024 ----- 000000000005b000 003:00003 libodbc.so.1.0.0
00002aaaaf6d8000 32 rw--- 000000000005b000 003:00003 libodbc.so.1.0.0
00002aaaaf6e0000 16 r-x-- 0000000000000000 003:00003 yp.so
00002aaaaf6e4000 1020 ----- 0000000000004000 003:00003 yp.so
00002aaaaf7e3000 4 rw--- 0000000000003000 003:00003 yp.so
00002aaaaf7e4000 32 r-x-- 0000000000000000 003:00003 xslt.so
00002aaaaf7ec000 1020 ----- 0000000000008000 003:00003 xslt.so
00002aaaaf8eb000 4 rw--- 0000000000007000 003:00003 xslt.so
00002aaaaf8fb000 860 r-x-- 0000000000000000 003:00003 libsablot.so.0.100.2
00002aaaaf9d2000 1024 ----- 00000000000d7000 003:00003 libsablot.so.0.100.2
00002aaaafad2000 40 rw--- 00000000000d7000 003:00003 libsablot.so.0.100.2
00002aaaafadc000 68 rw--- 00002aaaafadc000 000:00000 [ anon ]
00002aaaafaed000 900 r-x-- 0000000000000000 003:00003 libstdc++.so.6.0.6
00002aaaafbce000 1024 ----- 00000000000e1000 003:00003 libstdc++.so.6.0.6
00002aaaafcce000 32 rw--- 00000000000e1000 003:00003 libstdc++.so.6.0.6
00002aaaafcd6000 76 rw--- 00002aaaafcd6000 000:00000 [ anon ]
00002aaaafce9000 52 r-x-- 0000000000000000 003:00003 libgcc_s.so.1
00002aaaafcf6000 1020 ----- 000000000000d000 003:00003 libgcc_s.so.1
00002aaaafdf5000 4 rw--- 000000000000c000 003:00003 libgcc_s.so.1
00002aaaafdf6000 28 r-x-- 0000000000000000 003:00003 wddx.so
00002aaaafdfd000 1020 ----- 0000000000007000 003:00003 wddx.so
mapped: 92300K writeable/private: 9484K shared: 424K
5711: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5713: /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
Address Kbytes Mode Offset Device Mapping
0000000000400000 400 r-x-- 0000000000000000 003:00003 httpd2
0000000000564000 16 rw--- 0000000000064000 003:00003 httpd2
0000000000568000 27896 rw--- 0000000000568000 000:00000 [ anon ]
00002aaaaaaab000 84 r-x-- 0000000000000000 003:00003 ld-2.3.5.so
00002aaaaaac0000 4 rw--- 00002aaaaaac0000 000:00000 [ anon ]
00002aaaaaac1000 4 r---- 0000000000000000 003:00003 LC_IDENTIFICATION
00002aaaaaafa000 4 r---- 0000000000000000 003:00003 LC_MEASUREMENT
00002aaaaaafb000 4 r---- 0000000000000000 003:00003 LC_TELEPHONE
00002aaaaaafc000 4 r---- 0000000000000000 003:00003 LC_ADDRESS
00002aaaaaafd000 4 r---- 0000000000000000 003:00003 LC_NAME
00002aaaaaafe000 4 r---- 0000000000000000 003:00003 LC_PAPER
00002aaaaaaff000 4 r---- 0000000000000000 003:00003 SYS_LC_MESSAGES
00002aaaaab00000 4 r---- 0000000000000000 003:00003 LC_MONETARY
00002aaaaab01000 24 r---- 0000000000000000 003:00003 LC_COLLATE
00002aaaaab07000 4 r---- 0000000000000000 003:00003 LC_TIME
00002aaaaab08000 4 r---- 0000000000000000 003:00003 LC_NUMERIC
00002aaaaab09000 204 r---- 0000000000000000 003:00003 LC_CTYPE
00002aaaaabc0000 4 r---- 0000000000015000 003:00003 ld-2.3.5.so
00002aaaaabc1000 4 rw--- 0000000000016000 003:00003 ld-2.3.5.so
00002aaaaabc2000 344 r-x-- 0000000000000000 003:00003 libm-2.3.5.so
00002aaaaac18000 1020 ----- 0000000000056000 003:00003 libm-2.3.5.so
00002aaaaad17000 8 rw--- 0000000000055000 003:00003 libm-2.3.5.so
00002aaaaad19000 4 rw--- 00002aaaaad19000 000:00000 [ anon ]
00002aaaaad1a000 92 r-x-- 0000000000000000 003:00003 libaprutil-1.so.0.2.7
00002aaaaad31000 1024 ----- 0000000000017000 003:00003 libaprutil-1.so.0.2.7
00002aaaaae31000 4 rw--- 0000000000017000 003:00003 libaprutil-1.so.0.2.7
00002aaaaae32000 132 r-x-- 0000000000000000 003:00003 libexpat.so.0.5.0
00002aaaaae53000 1024 ----- 0000000000021000 003:00003 libexpat.so.0.5.0
00002aaaaaf53000 8 rw--- 0000000000021000 003:00003 libexpat.so.0.5.0
00002aaaaaf55000 4 rw--- 00002aaaaaf55000 000:00000 [ anon ]
00002aaaaaf56000 156 r-x-- 0000000000000000 003:00003 libapr-1.so.0.2.7
00002aaaaaf7d000 1020 ----- 0000000000027000 003:00003 libapr-1.so.0.2.7
00002aaaab07c000 4 rw--- 0000000000026000 003:00003 libapr-1.so.0.2.7
00002aaaab07d000 28 r-x-- 0000000000000000 003:00003 librt-2.3.5.so
00002aaaab084000 1020 ----- 0000000000007000 003:00003 librt-2.3.5.so
00002aaaab183000 8 rw--- 0000000000006000 003:00003 librt-2.3.5.so
00002aaaab185000 4 rw--- 00002aaaab185000 000:00000 [ anon ]
00002aaaab186000 36 r-x-- 0000000000000000 003:00003 libcrypt-2.3.5.so
00002aaaab18f000 1020 ----- 0000000000009000 003:00003 libcrypt-2.3.5.so
00002aaaab28e000 12 rw--- 0000000000008000 003:00003 libcrypt-2.3.5.so
00002aaaab291000 184 rw--- 00002aaaab291000 000:00000 [ anon ]
00002aaaab2bf000 60 r-x-- 0000000000000000 003:00003 libpthread-2.3.5.so
00002aaaab2ce000 1024 ----- 000000000000f000 003:00003 libpthread-2.3.5.so
00002aaaab3ce000 8 rw--- 000000000000f000 003:00003 libpthread-2.3.5.so
00002aaaab3d0000 16 rw--- 00002aaaab3d0000 000:00000 [ anon ]
00002aaaab3d4000 8 r-x-- 0000000000000000 003:00003 libdl-2.3.5.so
00002aaaab3d6000 1020 ----- 0000000000002000 003:00003 libdl-2.3.5.so
00002aaaab4d5000 8 rw--- 0000000000001000 003:00003 libdl-2.3.5.so
00002aaaab4d7000 4 rw--- 00002aaaab4d7000 000:00000 [ anon ]
00002aaaab4d8000 1160 r-x-- 0000000000000000 003:00003 libc-2.3.5.so
00002aaaab5fa000 1020 ----- 0000000000122000 003:00003 libc-2.3.5.so
00002aaaab6f9000 12 r---- 0000000000121000 003:00003 libc-2.3.5.so
00002aaaab6fc000 12 rw--- 0000000000124000 003:00003 libc-2.3.5.so
00002aaaab6ff000 24 rw--- 00002aaaab6ff000 000:00000 [ anon ]
00002aaaab705000 8 r-x-- 0000000000000000 003:00003 mod_authz_host.so
mapped: 40216K writeable/private: 28232K shared: 0K
5714: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5715: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5716: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5717: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5718: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5719: /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
Address Kbytes Mode Offset Device Mapping
0000000000400000 400 r-x-- 0000000000000000 003:00003 httpd2
0000000000564000 16 rw--- 0000000000064000 003:00003 httpd2
0000000000568000 6864 rw--- 0000000000568000 000:00000 [ anon ]
00002aaaaaaab000 84 r-x-- 0000000000000000 003:00003 ld-2.3.5.so
00002aaaaaac0000 4 rw--- 00002aaaaaac0000 000:00000 [ anon ]
00002aaaaabc0000 4 r---- 0000000000015000 003:00003 ld-2.3.5.so
00002aaaaabc1000 4 rw--- 0000000000016000 003:00003 ld-2.3.5.so
00002aaaaabc2000 344 r-x-- 0000000000000000 003:00003 libm-2.3.5.so
00002aaaaac18000 1020 ----- 0000000000056000 003:00003 libm-2.3.5.so
00002aaaaad17000 8 rw--- 0000000000055000 003:00003 libm-2.3.5.so
00002aaaaad19000 4 rw--- 00002aaaaad19000 000:00000 [ anon ]
00002aaaaad1a000 92 r-x-- 0000000000000000 003:00003 libaprutil-1.so.0.2.7
00002aaaaad31000 1024 ----- 0000000000017000 003:00003 libaprutil-1.so.0.2.7
00002aaaaae31000 4 rw--- 0000000000017000 003:00003 libaprutil-1.so.0.2.7
00002aaaaae32000 132 r-x-- 0000000000000000 003:00003 libexpat.so.0.5.0
00002aaaaae53000 1024 ----- 0000000000021000 003:00003 libexpat.so.0.5.0
00002aaaaaf53000 8 rw--- 0000000000021000 003:00003 libexpat.so.0.5.0
00002aaaaaf55000 4 rw--- 00002aaaaaf55000 000:00000 [ anon ]
00002aaaaaf56000 156 r-x-- 0000000000000000 003:00003 libapr-1.so.0.2.7
00002aaaaaf7d000 1020 ----- 0000000000027000 003:00003 libapr-1.so.0.2.7
00002aaaab07c000 4 rw--- 0000000000026000 003:00003 libapr-1.so.0.2.7
00002aaaab07d000 28 r-x-- 0000000000000000 003:00003 librt-2.3.5.so
00002aaaab084000 1020 ----- 0000000000007000 003:00003 librt-2.3.5.so
00002aaaab183000 8 rw--- 0000000000006000 003:00003 librt-2.3.5.so
00002aaaab185000 4 rw--- 00002aaaab185000 000:00000 [ anon ]
00002aaaab186000 36 r-x-- 0000000000000000 003:00003 libcrypt-2.3.5.so
00002aaaab18f000 1020 ----- 0000000000009000 003:00003 libcrypt-2.3.5.so
00002aaaab28e000 12 rw--- 0000000000008000 003:00003 libcrypt-2.3.5.so
00002aaaab291000 184 rw--- 00002aaaab291000 000:00000 [ anon ]
00002aaaab2bf000 60 r-x-- 0000000000000000 003:00003 libpthread-2.3.5.so
00002aaaab2ce000 1024 ----- 000000000000f000 003:00003 libpthread-2.3.5.so
00002aaaab3ce000 8 rw--- 000000000000f000 003:00003 libpthread-2.3.5.so
00002aaaab3d0000 16 rw--- 00002aaaab3d0000 000:00000 [ anon ]
00002aaaab3d4000 8 r-x-- 0000000000000000 003:00003 libdl-2.3.5.so
mapped: 15648K writeable/private: 7152K shared: 0K
5721: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5722: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5729: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5732: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5733: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5743: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5745: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5746: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5747: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5749: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5750: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5751: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5752: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K
5753: [httpd2-prefork]
Address Kbytes Mode Offset Device Mapping
mapped: 0K writeable/private: 0K shared: 0K