• We have a blog build with WP and for two years worked weel on a shared hosting, but traffic is increasing and some days ago we switched to a VPS (Linux-Debian) with 512Mb Ram. We have about 700 visitors/day and load time of the home is quite fast (45 queries in 1,5 seconds).

    We noticed that the apache process eats all the available memory and that this can cause some problem, but we can’t solve this. We tried to change apache configuration, following our sysadmin hints. We also removed all unnecessary plugins but this didn’t solve the problem.

    By now the solution we are using is a crontab entry with apache restart every 30 minutes, but we don’t like this…

    can you help me? thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Wich php version are you using? and what was your previous php version with you last web hosting provider?

    Are you running mod_php? If you do, then you are prob. running apache in mpm_prefork.

    You should try throttling down apache’s MaxClients. Your site will run a bit slower, but that may resolve the issue…

    Thread Starter taloweb

    (@taloweb)

    php5 before and now…

    I’m running in worker mode (worker.c loaded as I can see with apache -l)

    I lowered some days ago MaxClients to 50 for worker module here it is current configuration:
    <IfModule mpm_worker_module>
    StartServers 2
    MaxClients 50
    MinSpareThreads 15
    MaxSpareThreads 35
    ThreadsPerChild 15
    MaxRequestsPerChild 2
    </IfModule>

    any ideas?
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP huge memory usage’ is closed to new replies.