Closed Thread
Results 1 to 1 of 1

Thread: Resource Limit with long polling?

  1. #1
    monroewlkr29 is offline x10Hosting Member monroewlkr29 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    1

    Resource Limit with long polling?

    I'm trying to create a chat page, and the only way I know how is with long polling. The script is set up to check a mysql database to see if there are newer messages, and if not, wait 500 milliseconds and continue. I was working on it last night and got a resource limit reached message.

    In the original script, I had forgotten to put a usleep function, so the loop was going pretty fast. Is that why I hit the resource limit, or is it just long polling?

    I know it's not your responsibility to, but do you know of a better way to do a chat system?


    edit:

    also, is there a way to check the current amount of cpu time used?

    edit 2:

    So I've found the 1h statistics, but I can't really make sense of them.
    Last edited by monroewlkr29; 09-25-2011 at 09:05 PM.

Closed Thread

Similar Threads

  1. resource limit hit!
    By jplam1426 in forum Free Hosting
    Replies: 0
    Last Post: 09-25-2011, 04:58 PM
  2. Another resource limit hit
    By lunasif47 in forum Free Hosting
    Replies: 2
    Last Post: 09-22-2011, 12:15 PM
  3. RESOURCE LIMIT HIT...what now?!
    By lalany201011 in forum Free Hosting
    Replies: 4
    Last Post: 09-20-2011, 12:46 PM
  4. Resource Limit Hit!????
    By eggo9432 in forum Free Hosting
    Replies: 6
    Last Post: 09-19-2011, 09:39 PM
  5. Resource Limit Hit!
    By live_pk12 in forum Free Hosting
    Replies: 1
    Last Post: 09-19-2011, 06:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers