[Devops] apache memory footprint 1gb on centos normal?
devops.wsm at c33s.net
devops.wsm at c33s.net
Wed Mar 9 18:14:39 CET 2011
hi @all,
normally i work with debian only, but now i have the first contact with
centos.
there the httpd processes (prefork), has a memory footprint of 1.5gb, is
this normal?
19 httpd processes (5x ~500mb & 14x ~1.6gb)
apache on debian has only a footprint about 300mb. i looked after some
modules and removed them, but the footprint stays that large.
loaded modules (not all nessessary, its the default config the provider
made for this "managed" server; everything under comments now was loaded
before. i tried to free some memory...)
--- snip1 ---
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
#LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule info_module modules/mod_info.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule suexec_module modules/mod_suexec.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule version_module modules/mod_version.so
---snip1 end---
the provider told me the following:
--- snip2 ---
Wir haben nochmals nachgesehen, wie der Memory Verbrauch gesenkt werden
kann:
In der httpd.conf gäbe es die Möglichkeit unter prefork.c, jedoch sind
die Werte hier schon tief genug.
Da der Server stabil läuft und sich nicht weiter füllt, scheint mir kein
Handlungsbedarf zu bestehen.
Hierzu evtl. noch folgendes:
http://chrisjohnston.org/2009/why-on-linux-am-i-seeing-so-much-ram-usage
"There's no reason to clear what's in RAM until you need more space to
write to it."
Oder auch die Berechnung von #free -m
http://forum.linode.com/viewtopic.php?t=4199
"The-/+ buffers/cache is what we want to look at... that shows you've
got about 151MB of memory effectively free. Subtract out the 16MB of
swap used and there's a good 135MB left. Your system is using ~107MB for
buffers and cache, which is pretty good."
--- snip2 end ---
sound that reasonable or does he has no clue?
greets
julian
More information about the Devops
mailing list