Help me reduce apache process size

oompaloompa

New member
Joined
Apr 15, 2013
Messages
12
Hello,

Can anybody help me to reduce the size of apache process please? I am just starting to learn about optimizing apache and mql. So far I have added several settings to the blank default my.cnf, and changed some settings in http.config and http-default.config to get me started. I installed apc cache last night but have still to learn how to use it, I don't see any real benefit from it when loading website pages so far.
I've read on some websites you can disable apache modules that are not being used, which will help lower the amount of ram each process uses, so I would like to try that please? What information do I need to supply to get started?

Cheers!
 
Loaded Modules:
core_module (static)
authn_file_module (static)
authn_default_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
reqtimeout_module (static)
include_module (static)
filter_module (static)
deflate_module (static)
log_config_module (static)
logio_module (static)
env_module (static)
expires_module (static)
headers_module (static)
unique_id_module (static)
setenvif_module (static)
version_module (static)
proxy_module (static)
proxy_connect_module (static)
proxy_ftp_module (static)
proxy_http_module (static)
proxy_scgi_module (static)
proxy_ajp_module (static)
proxy_balancer_module (static)
ssl_module (static)
mpm_prefork_module (static)
http_module (static)
mime_module (static)
dav_module (static)
status_module (static)
autoindex_module (static)
asis_module (static)
suexec_module (static)
cgi_module (static)
dav_fs_module (static)
dav_lock_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
rewrite_module (static)
so_module (static)
php5_module (shared)

I tried this:

#Include conf/extra/httpd-dav.conf

in http.config and restarted apache, but dav_fs_module and dav_lock_module are still showing on this list, could someone share how to disable dav_fs_module and dav_lock_module please?
 
Probably this will sound stupid to some who know the answer, but where are the LoadModule lines kept? I can see then in http.config.backup but direct admin rewrites the config and uses the extra folder? When I look in all the files inside the extra folder I can see any references to LoadModule?
 
Can anybody help me to reduce the size of apache process please?

Yes, I can for instance. Consider to move to suPHP if you want apache to take less RAM. I'd not suggest PHP-FPM yet, as it's beta currently and has some bugs.
 
Probably this will sound stupid to some who know the answer, but where are the LoadModule lines kept? I can see then in http.config.backup but direct admin rewrites the config and uses the extra folder? When I look in all the files inside the extra folder I can see any references to LoadModule?

Note, configs will be rewritten only if you ask for it with:

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

Check this http://help.directadmin.com/item.php?id=351
 
Back
Top