Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2003
    Posts
    286

    Need help with server load issue...

    I've recently been helping out a forum which has been warned by their host for server load. The cpu usage of the forum rocketed seemingly randomly and stuck, with a single php file taking up a large amount of CPU time...

    This is a heavily modified XMB forum. It is not the busiest board in the world, with a maximum of 20 users online at one time. XMB usually handles this kind of usage with ease, so I thought it was probably the modifications which had been applied to it. So I uploaded a clean version of the file which was causing the problem, and CPU usage by the file did not decrease. I'm kind of at a loss.. Could this have been a change to server settings by the host which caused this jump in CPU usage?

    If this isn't solved by Monday, the host is kicking the forum out, so I'm trying numerous things to reduce the load. Any tips at all for this, possible routes I could take to reduce the CPU usage by this file would be greatly appreciated.

  2. #2
    Join Date
    Oct 2002
    Location
    York, United Kingdom
    Posts
    260
    Try using a different forum software. If not there your host is playing with you.

  3. #3
    Join Date
    Feb 2003
    Posts
    286
    I know an XMB board with just as much modifications with more users which runs fine. There is something paticular which is causing this.

    Conversion also isn't really an easy option at this point. The database is 350mb and is heavily modified.

  4. #4
    Join Date
    Feb 2003
    Posts
    286
    Nope, its viewthread.php. Like showthread.php on this forum...

    It was using a maximum of 65 queries before, but by uploading a clean file it is now 22. But its still using a lot of CPU...

    edit: thats weird.. my post is above yours. oh well.

  5. #5
    Join Date
    Nov 2004
    Location
    England
    Posts
    513
    Is the file in question a statistics file? Those things can take ages to run, especially on a 350Mb db.

  6. #6
    Join Date
    Nov 2000
    Location
    Thailand
    Posts
    3,355
    It isn't always the number of users, I've seen boards with a dozen users on at a time cause all sorts of problem, sloppy coding, poor add-on like ones that generate unique images for posts etc.. (think its something to do with winamp?' and corrupt (but not flagged as corrupt) database tables can all case problem.
    MattF - Since the start...

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •