• Hi,

    on one of the servers I manage there is WP running with daily around 6k dynamic page loads. It is a P4 with 1GB RAM, Apache 1.3.37, PHP 4.4.2 and MySQL 4.1.21. The server is well optimized and could easily handle a site with daily 200k page loads all using 2 c++ scripts. Right now there is only the WP site active and its using the whole 1GB of RAM in a pretty short time. Then it is starting to swap and once the swapfile is larger than 1GB its slowing down the server alot. WP is the latest version, caching is disabled and WP-ContactForm and WP-EMail plugins are enabled. There is nothing else running on the server no other Apache scripts and once Apache is restarted all resources are free again starting for the moment. What to do here now? Enable something for caching? Is it possible that only 6k pageloads can cause that RAM usage? I appreciate any help since I have no experience with WP yet. Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • I would suggest you try wp-cache (think it’s at 2.0.17). You may want to look at your PHP config, as that really controls what resources WP uses. What OS/version?

    I may be nuts (and often am) but I wouldn’t even run my workstation on 1GB RAM (‘course I am using WinXP ;’).

    Thread Starter alexsc

    (@alexsc)

    Well installing the cache might help.

    PHP is set to this options:

    max_execution_time = 20
    max_input_time = 60
    memory_limit = 8M

    This should be fine for WP also i would assume.

    And well youre not nuts for WindowsXP and Vista I also use 2GB. But thats MS Software ??

    Um, WP is using all the memory? Or is Apache? what’s it show in top, sorted by mem usage?

    I realize I should clarify my last post.

    memory_limit = 8M

    WP runs on PHP. You’ve configured php to give WP 8MB of ram.
    Thus, I’m wondering how much configuration of your apache web server you’ve done (in other words, not necessarily a WordPress issue). There are some good apache tuning articles and forums.

    Thread Starter alexsc

    (@alexsc)

    Well 8M is actually the default setting in the php.ini and I never had any trouble with this number with any other PHP script I used.

    I have some scripts working with large jpegs for them I had to increase the number ( and i did it only for those scripts then ) and they also dont cause any problems.

    Only because I have set a memory limit of 8M does not mean every script have to use the 8M.

    Hi Alexsc.

    Dumb idea but have you tried disabling keep alives on the apache by any chance?

    I’ve tried that in the past on couple sites seems to help.

    Thread Starter alexsc

    (@alexsc)

    Thanks Choopafrank but the problem is that the site is using alot if images so doing this would most likely let the page load alot slower.

    I think MySQL is usually where the RAM bottlenecks occur, but not everyone has access to configuring their my.cnf file. If you do, here’s some tips from someone who’s site was linked on slashdot:
    https://error.wordpress.com/2006/06/03/i-got-slashdotted/

    The WP-Cache plugin is pretty easy to install and will cut down on how much database activity your site needs.
    https://mnm.uib.es/gallir/wp-cache-2/

    1 gig RAM sounds fine to me.

    I am not a sys admin, but I’ve poked around with apache configs now and then. What’s MaxClients set to in your httpd.conf?

    Thread Starter alexsc

    (@alexsc)

    Hi Will, MySQL is doing just fine and is optimized for high usage. And the 2 queries average per second dont even bother MySQL at all ??

    Also Apache is well optimized. Thanks for the ideas.

    HandySolo I dont see why you have to be personal here but I can assure you i sat up more than enough servers, handling up to 1 million daily unique visitors but not using PHP software. For high performance you dont use PHP you use C / C++ . And anyways the issue I have here is not related to having not enough memory to execute the script but using to much memory. And the number of results you get when you google for WP and resource problems also clearly speaks for itself.

    Um, personal? Got a quote of me getting personal?!?

    hmm… i think he misread your post!!

    alexsc: Try reading what HandySolo wrote. The black printed lines, not what you see in-between.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Problems with WP and RAM usage’ is closed to new replies.