1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Too much cpu usage

Discussion in 'Server Configuration and Hosting' started by Claudio, Nov 5, 2011.

  1. Claudio

    Claudio Well-Known Member

    I´m on a shared hosting and my new xenforo site is using too much cpu resources
    5.0 30994 0.1 01:04 0:00 /usr/bin/php /home/XX_USER/public_html/forum/index.php

    why the index.php is using so many resources?
  2. NiCk Newman

    NiCk Newman Member

    How many users u have online 24/7?
  3. Claudio

    Claudio Well-Known Member

    20 online users (right now) its the normal traffic and 20% cpu usage

    I hope it still the same :)
  4. D.O.A.

    D.O.A. Well-Known Member

    I have roughly 300 users online 24/7 with a VPS node, you clearly need more resources then whatever that shared account provides, providing you've made no modifications to index.php. Shared hosting can be pretty rough sometimes, even a shoutbox constantly refreshing can bring it all down.
  5. Claudio

    Claudio Well-Known Member

  6. NiCk Newman

    NiCk Newman Member

    Should ask the tech people on the other end were most of resources are coming from, theres some pointless stuff this system has that could be eating your resources/etc like the Alert module/etc
  7. Brogan

    Brogan XenForo Moderator Staff Member

    You consider alerts to be pointless?
  8. NiCk Newman

    NiCk Newman Member

    On a forum yeah... xenforo is not a social networking platform, it's merely a forum.

    Imagine the alert module with a forum with thousands online, would be horrendous I imagine
  9. MarcosPreviato

    MarcosPreviato Active Member

    I'm sorry but i using xenforo for 6 months and so far no problem, it may be your host!
  10. mrGTB

    mrGTB Well-Known Member

    When I first installed XenForo on my shared hosting using Beta 3, I have to be honest and say compared to using MyBB before the time-outs and me hitting server resource CPU limit was getting totally out of hand and I very nearly pulled XenForo down that first week. My shared host uses a tool displayed in my cPanel that monitors resource limit and acts on it also, I checked one day when things was bad and the site had hit the CPU limit around 49 times.

    Later, when upgrading to Beta 4 from 3 things have been great since. Not sure why it's made such a huge difference, but I was getting many of the same error logs with Beta 3 that I'm no longer getting now using Beta 4.

    I've no complaints about how it's running now, but that very first week using Beta 3 was a nightmare.

    01.PNG 03.PNG 02.PNG
  11. Forsaken

    Forsaken Well-Known Member

    A forum is a medium that requires social interaction, making alerts a feature that benefits your users.

    Also, none of the big boards have yet to complain about the alerts having a negative impact on their forums.
    M@rc, Markos and Jeremy like this.
  12. Brogan

    Brogan XenForo Moderator Staff Member

    You couldn't be more wrong.

    The alerts feature alone is single handedly responsible for posting rates tripling on my forum.
    AzzidReign, Andy.N, zappaDPJ and 3 others like this.
  13. Claudio

    Claudio Well-Known Member

    yes but you are talking about beta 3/4 of XF 1.1?
    currently I´m using 1.0.4 version
    yes but you are talking about beta 3/4 of XF 1.1?
    currently I´m using 1.0.4 version
  14. Trekkan

    Trekkan Well-Known Member

    Then you're probably going to want to wait until 1.1 is gold or take the plunge and do it now. I don't think there will probably be too many more betas before gold (of course, I have no idea really), but it seems to be the case. If you look at the updates posted for each of the betas for 1.1, you'll see that many of them have performance based changes in them.
  15. Claudio

    Claudio Well-Known Member

    thanks, these are good news. However, I dont expect too much perfomance improvement on cpu usage
  16. Krochinzky

    Krochinzky Member

    I'd be surprised if your host doesn't use an opcode cacher like APC or XCache, which are great ways to save on cpu usage.
  17. Forsaken

    Forsaken Well-Known Member

    Most shared hosts do not make opcaches available.
  18. snowman

    snowman Member

    How so Brogan? In what way are you using alerts to boost the posting rate of members?

    In general, I would love to hear creative ideas on how XF Admins are using the Alerts.
  19. ENF

    ENF Well-Known Member

    It really quite elementary...

    With older forum systems, people would have to subscribe to threads or check their User CP for updates to threads they are watching. But with the XF alerts system, people are more aware about threads, posts & other activities. For me, even here at the XenForo site, I'm much more alert on what's going on by the alert system. I don't have to go looking for threads I replied to or check another screen for threads I watch. I can just simply click on the alerts button and I click right into the thread that was updated.

    I'm planning on rolling XF out onto a medium-sized site and based on what I have seen here and other XF sites, I expect to user interaction increase because of this positive response alert system.
  20. Brogan

    Brogan XenForo Moderator Staff Member

    Exactly what ENF said ^

    I'm not doing anything different or special, all I have done is check all alert types for new registrations; that at least makes new members aware of the system and if they wish, they can change the settings via their account.

Share This Page