WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Buddypress-Ajax-Chat] Using Too Much Server Resources

[Plugin: Buddypress-Ajax-Chat] Using Too Much Server Resources

  • Hello,

    I installed BuddyPress Chat Component again on a quite small BuddyPress installation (around 300 members). This got my whole hosting account closed down (suspended) due to use of too much server resources.

    The hosting company sent a part of their log, I’ll quote a bit of it:

    basshive 749 0.0 0.2 179384 13340 ? S 01:09 0:00 /usr/bin/php /home/basshive/public_html/wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/index.php
    basshive 772 0.0 0.2 179384 13340 ? S 01:09 0:00 /usr/bin/php /home/basshive/public_html/wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/index.php
    basshive 775 0.0 0.2 179384 13344 ? S 01:09 0:00 /usr/bin/php /home/basshive/public_html/wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/index.php
    basshive 795 0.0 0.2 179384 13340 ? S 01:09 0:00 /usr/bin/php /home/basshive/public_html/wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/index.php
    basshive 847 0.0 0.2 179384 13344 ? S 01:09 0:00 /usr/bin/php /home/basshive/public_html/wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/index.php

    Can improvements be made to the resource hungriness of this plugin?

    Regards,
    Sam

    http://wordpress.org/extend/plugins/buddypress-ajax-chat/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Wow, that is harse. There are two things you can do now and a 3rd makes me think it might be needed.

    1. Change the default poll time in bp-chat/chat/config.php
    2. Enable socket based communication at the bottom of config.php

    3. A redesign of pushing the logic down to the client and key off of events. But also open up ports between you and the person you’re talking to directly bypassing the server. This would be a fundamental change.

    Lastly, I’d recommend a beefier hosting company. They are usually based on volume of data, not connections. The volume of data in the chat is small.

    Hi,

    Thanks for the response. For the time being I will go without the chat plugin as sad as that is. I can’t just switch the hosting company so quickly and I promised them to remove the plugin…

    Hi,

    I also looked in to this further and I rewrote how I generate the user list and when (once, not every 2 seconds!) So it is way better as far as playing nice. This is in 1.2.8.

    However, it does do a check to the server every 2 seconds to see if there was a new chat message. That’s chat for ya. While it sends no data if it is empty it stills hits your server 30 times a minute.

    You could limit the amount of active users too, from the default of 100 to say 5-10?

    It’s highly configurable, but I think a big part of it was how I was hitting the server too much for db queries.

    Thanks for bringing this to my attention.

    Thanks,
    Dave

    Hello, I’m having the same problem… Could you be more specific on what to edit to solve this or make the issue less severe? Thanks in advance.

    1.3.1 Made this a lot friendly to servers. I also totally changed the way db access is done recently.

    You can go further if you have the ability to do socket server on your hosting account. Let me know.

    Thanks,
    Dave

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Buddypress-Ajax-Chat] Using Too Much Server Resources’ is closed to new replies.
Skip to toolbar