Add some script stop / block the website / visitor when server load goes high

Discussion in 'PHP' started by xDragonZ, Aug 30, 2009.

  1. #1
    Add some script stop / block the website / visitor when server load goes high

    anyone know how?
    my script is being causing the allowed shared hosting resources used up.

    The PHP Process have used up to 80+ processes which causes the server working in high loaded environment when shared with other share user.

    how to pervent this?

    and code to pervent?
     
    xDragonZ, Aug 30, 2009 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    you need to optimize mysql queries if thats causing it

    u can use a firewall and set rules if someone tries to open a page many times

    Regards

    alex
     
    kmap, Aug 30, 2009 IP
  3. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #3
    Most hosters van setup mysql/apache so that you can't misuse the server.. i don't know how to... this is all i know :)
     
    EricBruggema, Aug 31, 2009 IP