Error 520 : Web Server is returning an unknown error

Discussion in 'PHP' started by Ang Way Shen, Mar 20, 2017.

  1. Ang Way Shen

    Ang Way Shen Member

    May I know how's to increase concurrent connection ?

    I'm getting timeout for all the time.
    upload_2017-3-20_15-54-12.png
     
  2. NiteWave

    NiteWave Administrator

    please note WaitQ: 854

    please increase
    lsws web admin -> Server -> General -> PHP suEXEC Max Conn: 10
    for example, 50, then see if WaitQ will reduce to 0.
     
  3. Ang Way Shen

    Ang Way Shen Member

    I have increase it to 100 and my

    load was high and waitQ still remain high
    upload_2017-3-20_16-13-38.png
     
  4. NiteWave

    NiteWave Administrator

    maybe you're under DDos ?

    please try:
    lsws web admin -> Server -> Security -> Per Client Throttling :
    Dynamic Requests/second: 1
    Connection Soft Limit: 3
    Connection Hard Limit: 5
    Block Bad Request:Yes
     
  5. Ang Way Shen

    Ang Way Shen Member


    Is this show under DDOS ?

    upload_2017-3-20_16-25-22.png
     
  6. NiteWave

    NiteWave Administrator

    looks like it is.
    please continue monitoring.
     
  7. Ang Way Shen

    Ang Way Shen Member

    Do i need to increase my max connection ?
    upload_2017-3-20_18-20-40.png
     
  8. NiteWave

    NiteWave Administrator

    don't touch settings here, best to revert to default values.

    increase "Banned Period (sec)" if DDos continues (under Per Client Throttling)
     
  9. Ang Way Shen

    Ang Way Shen Member

    It seem like my load average getting higher and higher.

    upload_2017-3-21_0-12-51.png

    how about tuning side ?

    upload_2017-3-21_0-13-54.png
     
  10. NiteWave

    NiteWave Administrator

    don't try tuning here.

    in your real-time stats, how about WaitQ under "External Application" after you enabled Per Client Throttling ?
     
  11. Ang Way Shen

    Ang Way Shen Member

    Previously i was using 2 Core and now i upgraded to 4 Core.

    Currently mine WaitQ shown 0 but still webserver still unstable.

    upload_2017-3-21_12-52-41.png
     

Share This Page