|
|

01-21-2009, 08:20 AM
|
|
Senior Member
|
|
Join Date: Jan 2009
Posts: 75
|
|
Here it is, just in case if you need it i will paste you my memory usage:
Quote:
total used free shared buffers cached
Mem: 4054 3329 724 0 282 2232
-/+ buffers/cache: 815 3238
Swap: 1992 0 1992
|
Code:
Name lsphp5
Address uds://tmp/lshttpd/lsphp5.sock
Max Connections 35
Environment PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_CHILDREN=35
Initial Request Timeout (secs) 60
Retry Timeout (secs) 0
Persistent Connection No
Connection Keepalive Timeout Not Set
Response Buffering No
Auto Start Yes
Command $SERVER_ROOT/fcgi-bin/lsphp5
Back Log 100
Instances 1
Run On Start Up Not Set
Max Idle Time Not Set
Priority Not Set
Memory Soft Limit (bytes) 450M
Memory Hard Limit (bytes) 500M
Process Soft Limit 400
Process Hard Limit 500
|

01-21-2009, 08:25 AM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
|
Try setting persistent connection to Yes and raise max connections and PHP_LSAPI_CHILDREN to 60 or higher. Also, check the last post on Page 1.
|

01-21-2009, 08:32 AM
|
|
Senior Member
|
|
Join Date: Jan 2009
Posts: 75
|
|
Quote:
Originally Posted by anewday
Try setting persistent connection to Yes and raise max connections and PHP_LSAPI_CHILDREN to 60 or higher. Also, check the last post on Page 1.
|
Answer to the last post on the first page is zero, nothing is waiting. And i have applied those two values so now i need look and see if it will help.
It looks like that didn't helped much:
Quote:
top - 19:33:16 up 88 days, 11:23, 1 user, load average: 68.72, 61.33, 44.86
Tasks: 191 total, 86 running, 105 sleeping, 0 stopped, 0 zombie
Cpu(s): 26.2% us, 17.8% sy, 55.9% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 4151296k total, 3718644k used, 432652k free, 298232k buffers
Swap: 2040212k total, 144k used, 2040068k free, 2445288k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15666 mysql 10 -5 531m 371m 3768 S 81.4 9.2 12377:26 mysqld
22551 nobody 19 1 276m 8084 5324 R 12.9 0.2 0:00.28 lsphp5
22549 nobody 19 1 276m 7996 5316 R 11.9 0.2 0:00.14 lsphp5
22550 nobody 19 1 276m 8512 5596 R 11.9 0.2 0:00.13 lsphp5
22546 nobody 19 1 276m 8552 5872 R 9.9 0.2 0:00.13 lsphp5
22547 nobody 19 1 276m 7996 5316 R 9.9 0.2 0:00.13 lsphp5
22265 nobody 17 1 275m 8144 6200 S 7.9 0.2 0:04.09 lsphp5
22548 nobody 19 1 276m 7988 5308 R 7.9 0.2 0:00.11 lsphp5
22271 nobody 19 1 276m 12m 9.8m R 4.0 0.3 0:04.01 lsphp5
22476 nobody 19 1 276m 10m 8000 R 4.0 0.3 0:00.75 lsphp5
22499 nobody 19 1 276m 10m 8332 R 4.0 0.3 0:00.75 lsphp5
22261 nobody 18 1 276m 10m 8092 R 3.0 0.3 0:03.36 lsphp5
22540 nobody 19 1 276m 8000 5324 R 3.0 0.2 0:00.13 lsphp5
20638 nobody 17 1 276m 29m 27m S 2.0 0.7 0:05.54 lsphp5
21895 nobody 17 1 276m 17m 15m S 2.0 0.4 0:02.95 lsphp5
22270 nobody 18 1 276m 11m 8780 R 2.0 0.3 0:02.99 lsphp5
22278 nobody 19 1 276m 8484 5784 R 2.0 0.2 0:03.41 lsphp5
22364 nobody 18 1 276m 8912 6208 R 2.0 0.2 0:01.95 lsphp5
22462 nobody 18 1 276m 8892 6192 R 2.0 0.2 0:00.61 lsphp5
22489 nobody 18 1 276m 8376 5680 R 2.0 0.2 0:00.62 lsphp5
22493 nobody 18 1 276m 8896 6200 R 2.0 0.2 0:00.62 lsphp5
22498 nobody 18 1 276m 10m 8324 R 2.0 0.3 0:00.68 lsphp5
22500 nobody 18 1 276m 8652 5728 R 2.0 0.2 0:00.62 lsphp5
22542 nobody 18 1 276m 7856 5216 R 2.0 0.2 0:00.02 lsphp5
21162 nobody 16 1 276m 24m 21m S 1.0 0.6 0:04.46 lsphp5
22558 nobody 18 1 275m 7368 4996 R 1.0 0.2 0:00.01 lsphp5
22559 nobody 18 1 275m 7180 4860 R 1.0 0.2 0:00.01 lsphp5
|
Last edited by Bono; 01-21-2009 at 10:34 AM..
|

01-21-2009, 11:14 AM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
|
I don't know what else you can do, wait for mistwang's reply. How many req/s do you see in real-time stats?
Last edited by anewday; 01-21-2009 at 11:17 AM..
|

01-21-2009, 12:19 PM
|
|
Senior Member
|
|
Join Date: Jan 2009
Posts: 75
|
|
Quote:
Originally Posted by anewday
I don't know what else you can do, wait for mistwang's reply. How many req/s do you see in real-time stats?
|
ATM 188 req/s outgoing 632KB/sec. 
I'm under big attack so it's not best time to switch, but i don't have any choice apache dies after few minutes.
|

01-21-2009, 12:50 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
|
It's not that much. Did you set these under Security tab?
Outbound Bandwidth (bytes/sec)
Inbound Bandwidth (bytes/sec)
May be worth a try.
|

01-21-2009, 01:07 PM
|
|
Senior Member
|
|
Join Date: Jan 2009
Posts: 75
|
|
Quote:
Originally Posted by anewday
It's not that much. Did you set these under Security tab?
Outbound Bandwidth (bytes/sec)
Inbound Bandwidth (bytes/sec)
May be worth a try.
|
Yea I have tried that too, but my main problem is extremely high load and too many mysql threads. I will see over night if load will be lower.
|

01-21-2009, 01:13 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
|
Maybe the bottleneck lies elsewhere, not the webserver. Is your mysql on a separate hdd/server?
|

01-21-2009, 01:45 PM
|
|
Senior Member
|
|
Join Date: Jan 2009
Posts: 75
|
|
Quote:
Originally Posted by anewday
Maybe the bottleneck lies elsewhere, not the webserver. Is your mysql on a separate hdd/server?
|
No same, but there is no iowait. It is just that somebody is attacking and lite speed can't help me much. Only good thing is that it doesn't lock like apache.
Code:
r b swpd free buff cache si so bi bo in cs us sy id wa
47 0 144 262292 306640 2649820 0 0 29 16 3 0 16 7 76 1
56 0 144 260628 306640 2650080 0 0 3 184 1370 1214 87 13 0 0
60 0 144 256212 306640 2650080 0 0 1 165 1286 1205 84 16 0 0
61 0 144 253716 306640 2650080 0 0 0 204 1217 1042 90 10 0 0
70 0 144 244676 306648 2650592 0 0 0 411 1492 1369 84 16 0 0
73 0 144 241396 306652 2650328 0 0 0 279 1399 1354 89 11 0 0
78 0 144 231540 306656 2650584 0 0 1 188 1477 1351 88 12 0 0
87 0 144 213172 306656 2650584 0 0 0 117 1197 1064 84 16 0 0
|

01-21-2009, 02:16 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
|
What did you set for connection soft, hard and grace period? How many IPs are attacking and how big? I hope you have a firewall installed to block the offenders.
My site got hit with a ddos from 20 different IPs 2 weeks ago and the forum was still running fine with load of 15, though it was slower than normal. Server is a Xeon 3060 with 3GB of memory. Mysql on a separate drive.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:15 PM.
|
|