Apache issues
Hello,I have a FreeBsd-5.2.1 release server with some apache issues.
My server had huge hits. I have recompiled apache with the maxclients limit set to 50000. But, apache is getting killed due to large no
f connections.Apache was running fine until the connection reaches about 3000 and then it was getting killed.
Then, I set the kern.maxfiles to 65536 and kern.maxfilesperproc to 32768 in systctl.
At that point, the apache was running fine, except for the 2 domains which had the huge hits. All other sites were working fine.
Netstat output shows that apache hangs on close wait state.
Since the close_wait hangs,the resource usage was high and all the resource
available were consumed and even root user was not able to do anything. It
was showing resources unavailable.
#########################################
# netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c
2623 CLOSE_WAIT
5 CLOSING
682 ESTABLISHED
51 FIN_WAIT_1
102 FIN_WAIT_2
9 LAST_ACK
26 LISTEN CLOSE_WAIT
124 TIME_WAIT
--------------------------------------------------
Is there any option to limit connections from a particular domain. Or is there any other settings in sysctl, that would help me improve the webserver performance. Any tweaks to improve resource limits?
Also, how can i get rid of the connections in CLOSE_WAIT state as this uses much of the resourses.
As i am new to FreeBsd, any help would be appreciated. Thank you.
Regards,
Neeths

