-2
cpu 1.3%
mem 476/490MB
swap 347/511mb

tasks: 43, 29 thr; 1 running
load average: 0.10 0.08 0.06

via htop:<br>
/usr/sbin/apache2 -k start (listed 8x @ 8.1% mem each)
/usr/sbin/mysqld (listed 24x @ 2.1% mem each)

if I restart apache, pages load much quicker. after few days, page load takes much longer.

running small wordpress site with < 100 daily visits on vps with 512mb. didn't run into this problem before transfer to vps. it was previously on shared hosting.

how can i improve performance without restarting each time? where should i start looking for potential issues? if htop doesn't provide enough information, what commands should i run to provide additional details?

Charles
  • 41

1 Answers1

2

Problem: You are running a memory heavy web server application and a non-lightweight database on a single server with only 512M of memory and a 1:1 ratio of swap to RAM.

Solution: Get better hardware.

Giacomo1968
  • 3,561
  • 28
  • 41
  • are you saying that a vps with 512mb can't handle one small wordpress site with less than 100 daily visits? – Charles May 08 '14 at 16:49
  • 1
    @Charles wordpress eats memory for breakfast and has lots of snacks on it thereafter. – user9517 May 08 '14 at 16:57
  • WordPress is great but a memory hog. But that said, you can always performance tune Apache & MySQL to improve things without a RAM upgrade. But as the site grows it is inevitable that you will need one. – Giacomo1968 May 08 '14 at 17:06