My web server was very slow. Yesterday I upgraded RAM from 1GB to 2GB.
It has become some better.
I have a feeling that it is still not using the full potential of this upgrade.
Linux machine:
Fedora Core release 5 (Bordeaux)
TOP
Tasks: 75 total, 1 running, 73 sleeping, 1 stopped, 0 zombie
Cpu(s): 46.3% us, 28.6% sy, 0.0% ni, 25.0% id, 0.0% wa, 0.2% hi, 0.0% si, 0.0% st
Mem: 2058992k total, 1754924k used, 304068k free, 204396k buffers
Swap: 2096472k total, 0k used, 2096472k free, 668684k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1790 mysql 15 0 694m 222m 3936 S 143 11.1 2518:32 mysqld
1291 root 15 0 75644 62m 6016 S 4 3.1 13:17.81 php
12523 apache 15 0 22952 6640 3020 S 1 0.3 0:00.28 httpd
12542 apache 16 0 24956 8656 3024 S 1 0.4 0:00.22 httpd
MY.CNF:
max_connections=200
old_passwords=1
key_buffer_size=512M
table_cache=1024
sort_buffer_size=15M
skip-innodb
skip-bdb
skip-ndbcluster
query_cache_size=128M
query_cache_type=1
HTTPD.CONF:
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 2
##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
#<IfModule prefork.c>
StartServers 8
MinSpareServers 4
MaxSpareServers 12
#ServerLimit 256
MaxClients 150
#MaxRequestsPerChild 4000
MaxRequestsPerChild 20
Start Free Trial