Skip to main content

Config apache for high traffic

Comments

6 comments

  • SysSachin
    First of all let me know your VPS configuration and how many sites you have hosted on that VPS ? Might be there are high load on your server and that is the main reason of this issues. If there is high load on your server then following post will be helpful for you Troubleshooting high server loads on Linux servers
    0
  • benash
    Hi, i have 5 sites on the VPS but just one of them is active (4 of them got max 1-5 users a day) and this is the one i got problem with the high traffic. do you have any idea for configuration?
    0
  • benash
    crashing again and again last error log:
    httpd Service Status failed Notification The service "httpd" appears to be down. Service Check Method The system failed to connect to this service"s TCP/IP port. Reason Timeout while trying to connect to service: Died Number of Restart Attempts 5 Startup Log No startup log Memory Information Used 4.63 GB Available 2.54 GB Installed 3 GB Load Information 3.39 2.09 1.87 Uptime 1 day, 5 hours, 34 minutes, and 58 seconds IOStat Information avg-cpu: %user %nice %system %iowait %steal %idle 5.37 0.01 0.66 0.02 0.00 93.94 Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn Top Processes PID Owner CPU % Memory % Command 32396 root 8.74 0.70 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect 32324 nobody 6.28 0.27 /usr/sbin/httpd -k start 31974 nobody 6.16 0.29 /usr/sbin/httpd -k start 31903 nobody 5.54 0.29 /usr/sbin/httpd -k start 32283 nobody 5.05 0.27 /usr/sbin/httpd -k start The chkservd process attempts to connect to "127.0.0.1:80" in order to validate that this service is functioning. If you blocked connections with iptables or the "Host Access Control" interface in WHM, this failure may be a false positive. To resolve this issue, either open the firewall to allow connections as the root user to "127.0.0.1:80" or disable checks for this service in WHM"s "Service Manager" interface with the "Configure Monitor Settings" link below.
    0
  • cPanelMichael
    Hello, Do you notice any additional error messages in /usr/local/apache/logs/error_log at the times Apache fails? Thank you.
    0
  • danielpmc
    Hello benash, Do you have WHM/Configserver Firewall installed? If yes you can look through the following logs to see if you can find any issues. Take a look for any unusually large blocks of activity from individual IPs within these logs. Analyze what that IP is doing and the frequency of its activity. If its hitting a same page over and over it could be a hacker or someone trying to DDOS or DOS your domain. Or maybe a broken page on your site could be creating a loop in your system. If it is only hitting your Registration or Login pages then you may consider banning the IP. Somehow somebody is creating a bottleneck in your system and one or more of the logs listed below should offer you some insight. whm/configserver explorer/usr/local/apache/logs/access_logs whm/configserver explorer/usr/local/apache/logs/error_logs whm/configserver explorer/var/log/exim_mainlog whm/configserver explorer/var/log/exim_paniclog whm/configserver explorer/var/log/exim_rejectlog whm/configserver explorer/var/log/lfd.log whm/configserver explorer/var/log/messages whm/configserver explorer/var/log/secure
    0
  • SpaceCowboy
    Wow 800 users on a VPS! i thought you needed at least a dedicated server for that kind of traffic, specially on wordpress site which isn't exactly optimized specially when you add fancy themes and plugins.
    0

Please sign in to leave a comment.