Twitter

VPS 256MB config

I am using for two weeks a VPS with 256MB memory. 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

[mpm_prefork_module]
StartServers 1
MinSpareServers 2
MaxSpareServers 2
MaxClients 15
MaxRequestsPerChild 0

[mpm_worker_module]
StartServers 1
MinSpareThreads 2
MaxSpareThreads 2
ThreadLimit 64
ThreadsPerChild 25
MaxClients 15
MaxRequestsPerChild 0

[mpm_event_module]
StartServers 1
MaxClients 15
MinSpareThreads 2
MaxSpareThreads 2
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>