Reduce the memory consumption of the server WebMin, Virtualmin (CentOS, Red Hat)

In the given article will focus on the decrease of prožorlivosti some services on smaller servers and VPS running CentOS. Danna setting will help to reduce the consumption of memory on the server and will reduce the load on the processor.

Optimization Of WebMin

Disable the preloading of the libraries in the Virtualmin:

Open the/etc/webmin/miniserv.conf and comment out the line or clear:

Preload =

The alternative Panel Webmin:

1 log in as root)
2) Open System Settings on the left menu and click the Virtualmin Configuration.
3) change the “Preload Virtualmin libraries at startup” to No
4) Save by clicking Save.

Webmin Perezguzite

# the webmin service restart

Open the file/etc/webmin/virtual-server/config and change the setting:

preload_mode = 0

Optimization Of LDAP

Edit the file/etc/openldap/DB_CONFIG in the data settings

set_cachesize 26843545 0 1
CacheSize 1000
set_lg_regionmax 26214
set_lg_bsize 209715

Optimize Apache

Change the settings in the file/etc/httpd/conf/httpd.conf
Keepalive On
KeepAliveTimeout 3

StartServers 2
MinSpareServers 2
MaxSpareServers 5
ServerLimit 100
MaxClients 100
MaxRequestsPerChild 500

StartServers 2
Maxclients 150
Minsparethreads 15
Maxsparethreads 50
Threadsperchild 15
Maxrequestsperchild 0


# service httpd restart

Optimize MySQL

Edit the MySQL configuration file/etc/my.cnf

port = 3306
Socket =/var/lib/mysql/mysql.sock
key_buffer = 16 k
max_allowed_packet = 1 m
table_cache = 4
sort_buffer_size = 64 k
read_buffer_size = 256 k
read_rnd_buffer_size = 256 k
net_buffer_length = 2 k
thread_stack = 64 k


# service mysql restart

And that’s probably all the above examples give tangible seizing in the consumption of RAM but can affect the performance of the system.