WordPress.org

Ready to get started?Download WordPress

Forums

wp-forecast
[resolved] Overwhelming server load (7 posts)

  1. danetidwell
    Member
    Posted 1 year ago #

    This plugin (as do most weather plugins) for some reason at random times completely crashes my server. I have an Amazon EC2 EBS backed medium instance, so it isn't one of those $5.99 a month shared hosting packages.

    Once or twice a week, the time seems to be random, this plugin causes CPU usage to skyrocket to 100% for several minutes, causing the server to stop responding and requiring a restart. It _is_ this plugin, as it only happens when it is enabled.

    Is there any way to prevent this? I've already set the refresh to once every two hours, so it isn't running the update very often. What is causing it? I know it has something to do with weather sites because every plugin I've ever used to display the weather causes a similar problem.

    Which of the transfer methods result in the least server load? Is there a specific weather service that uses less server overhead?

    Normally the instance runs 20-30% of CPU - so an increase of 70-80% for the weather plugin is way too high.

    http://wordpress.org/extend/plugins/wp-forecast/

  2. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    How many locations did you set up?
    Can you give the URL of your site please?
    The output of phpinfo() would also be a good starting point.

  3. danetidwell
    Member
    Posted 1 year ago #

    There's only one location set up. http://chicagophoenix.com is the site url. http://chicagophoenix.com/info.php is phpinfo().

  4. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    Surprise, I expected you to at least 50 locations setup. We experienced this before when people use a lot of locations.

    Okay, so we first try the easy thing.

    Timeout for connections should be lowered, e.g. 5 secs.
    Refresh 7200 should be okay.
    Try curl method first.

    It would be a good idea to have a look at the log of your server at the time the server gets overloaded to see if there a re some sideeffects. Do you have a chance to do so?

  5. danetidwell
    Member
    Posted 1 year ago #

    Ok I've made those changes - this seems to only happen once or twice a week so it may be a bit before I get back with you.

  6. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    Any news?

  7. tuxlog
    Member
    Plugin Author

    Posted 1 year ago #

    seems to be resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.