Results 1 to 5 of 5

Thread: Optimising chat box

  1. #1

    Optimising chat box

    Currently the chat box plugin puts a too heavy load on the network as it transfer all the chats (around 30) every 5-6 seconds even if nothing has been updated or even if no user is active on the chat. This transforms to around 20 (each request) * 10 (for 1 Minute) * 60 (for one hour) = 12000KB. That's more than 10MB/per hour for just being active on Jatland.

    Can something be done so that only the updated stuff is returned back, so that the bandwidth consumption can go down?

    Or can we look for some lighter alternatives to the current "VSA" chat?

  2. #2
    Ye statistics chat box ke laage hain munnai to..

    Quote Originally Posted by Arvindc View Post
    Besides the wiki issue.

    Some script in the /forms is continuously, at every 5 seconds interval, posting the attached data to http://www.jatland.com/forums/misc.php?show=ccbmessages
    This must be putting too much of load on the client and server machines.

    00:10:31.669 0.436 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:10:37.161 0.514 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:10:41.661 0.471 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:10:47.667 0.519 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:10:53.673 0.469 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:10:59.681 0.438 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:03.680 0.385 1482 378 POST 200 text/xml http://www.jatland.com/forums/ajax.php?do=autosave
    00:11:05.687 0.467 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:11.693 0.527 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:17.701 0.570 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:23.696 0.434 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:29.704 0.472 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:35.711 0.448 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:41.717 0.574 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:47.723 0.422 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:53.726 0.484 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:11:59.732 0.524 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:03.688 0.743 1598 378 POST 200 text/xml http://www.jatland.com/forums/ajax.php?do=autosave
    00:12:05.740 0.581 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:11.751 0.419 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:17.758 0.464 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:23.764 0.514 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:29.772 0.564 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:35.775 0.449 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:41.814 0.462 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:47.820 0.513 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:53.827 0.457 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:12:59.833 0.413 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:13:04.400 0.848 63327 380 POST 200 text/xml http://www.jatland.com/forums/ajax.php?do=autosave
    00:13:05.839 0.459 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:13:11.845 0.516 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:13:17.851 0.454 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:13:23.859 0.505 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    00:13:29.866 0.453 958 1651 POST 200 text/html http://www.jatland.com/forums/misc.php?show=ccbmessages
    Attachment 13216
    Last edited by vicky84; November 15th, 2011 at 05:52 AM.

  3. #3
    Quote Originally Posted by atishmohan View Post
    Ye statistics chat box ke laage hain munnai to..
    yes, however, the attached file is the returned result (not the post data). To my surprise, I found out that, vBulletin uses "POST", even for fetching data.

    Baki, yeh, front-end mane gana nahin aanda. ess khatar eb aali company ma mane koi apne project ma na leta.
    Last edited by Arvindc; November 15th, 2011 at 12:34 PM.

  4. #4
    le bhai Arvind kar di optimize Chat box........Subah 8:11 AM pe chat box ka "Shout Box" ban rya tha......arr ibb katti e kho di ......

    oopss...fer install kar di.....
    The word "EQUAL" has no meaning in human life

  5. The Following User Says Thank You to akshaymalik84 For This Useful Post:

    anilsangwan (November 18th, 2011)

  6. #5
    Default Admin Account
    Login to view details.
    Quote Originally Posted by Arvindc View Post
    Currently the chat box plugin puts a too heavy load on the network as it transfer all the chats (around 30) every 5-6 seconds even if nothing has been updated or even if no user is active on the chat. This transforms to around 20 (each request) * 10 (for 1 Minute) * 60 (for one hour) = 12000KB. That's more than 10MB/per hour for just being active on Jatland.

    Can something be done so that only the updated stuff is returned back, so that the bandwidth consumption can go down?

    Or can we look for some lighter alternatives to the current "VSA" chat?
    Arvind,
    You're right about the number of requests on the chat page, but not about the size. You can not open misc.php in the browser and see the actual datastream, but at the backend the sizes served is easier to see. Each request is actually less than 1K. The chat has to refresh - its ajax based- the trade off is data transfer and refresh frequency.

    We are quite focused on page load speeds etc - the forums homepage is about 200k for the first load, but only 20k for the repeat view. even there a significant portion is coming from the google ads.

    For chat, we are still trying to figure out the optimum solution - right now this appears to be the best, but we continue to evaluate.

Posting Permissions

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