Twitter

VPS 512MB config

Yesterday i upgraded my VPS from 256MB to 512MB memory (1GB Burst) to have some more resources to handle traffic.

On this VPS the following software is installed:
– Ubuntu 10
– Apache 2.2.16
– MySQL 5.1.61
– PHP 5.5.3

I am running five website with regular traffice (+/- 15.000 requests a day) on the VPS:
– PlaatScrum (Self made PHP site)
– PlaatSoft (WordPress site)
– Family van der Plaat (WordPress site)
– Education (Self made PHP site)
– Service (Self made PHP site)

I found out the below configuration results in the best performance:

Apache2

The following modules are activated:
– alias
– dir
– mime
– negotiation
– php5
– rewrite
– status

The following apache2.conf is active:

MaxKeepAliveRequests 0
KeepAliveRequests 15

[mpm_prefork_module]
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 30
MaxRequestsPerChild 0

[mpm_worker_module]
StartServers 1
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 30
MaxRequestsPerChild 0

[mpm_event_module]
StartServers 1
MaxClients 30
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestsPerChild 0

MySQL

[mysqld]
skip-innodb

key_buffer = 8M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 4

myisam-recover = BACKUP
max_connections = 50
table_cache = 128

query_cache_limit = 512K
query_cache_size = 8M

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>