Forums

WordPress or plugin hangs. Which php file? (5 posts)

  1. LMan
    Member
    Posted 2 years ago #

    Hello.

    I have a server Celeron 2.8Ghz, 1GB RAM, CentOS 5.2 and 2 wordpress sites. One of them hasn't plugins and simple theme. It works fine for 1 year. Other one has theme and with many plugins. I launched it 2 months ago. It works well, but sometimes httpd starts to eat cpu. "top" shows me 20-30 httpd processes and they never die. They don't eat memory, just cpu. php has timeout - 30 secs, but it doesn't help. These httpd never die. How can I know which .php makes this problem? How to log it? I cannot turn off 30 plugins 1 by 1 and check if it hangs. It hangs random - it can work a week or it can work 5 mins then hang.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try deactivating all of the plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

  3. LMan
    Member
    Posted 2 years ago #

    No other way except playing with plugins? No php loggers? No wordpress loggers? I'm noob with linux.

  4. No other way except playing with plugins? No php loggers? No wordpress loggers? I'm noob with linux.

    As usual, Esmi's advice is really the fastest way. Re-activate one at a time until you get that BANG! moment. That'll be the problem plugin.

    If you are feeling adventurous, check your CentOS /var/log/www directory (geez, I think, RedHat was years ago) log files for any errors. But since you don't know where to look already those PHP errors may not help you as much as Esmi's advice...

  5. Mark / t31os
    Moderator
    Posted 2 years ago #

    You serously need to re-consider you dependancies, there's no reason you should ever need 30+ plugins that i can seriously think of..

    Consolidate your plugins and/or move unessential code directly into theme files where you can.

    If you absolutely MUST! keep plugins enabled, then the only option remaining "as i see it", is to create a secondary installation (locally if need be) and run a copy of your site there, and rigorously test each of the plugins.

    The alternative to both would be to hire a professional who can do this for you, it's not 5 or 10 minutes work though... so it won't necessarily be pocket change....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.