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.
  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
  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 ?

  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 ?
  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.


    how about tuning side ?

  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.


Share This Page