LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2014, 10:39 PM   #1
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Rep: Reputation: Disabled
[Solved] High load web server


Me again,

I'm running a news publishing system on an octacore amd server with 24GB ram. PHP seems to be running every core to the full. I need to know whether I can bring this load down. I know the question may seem desperate and stupid but I can't upgrade the server at least for the next couple of days.


I'm attaching the htop screenshot

http://i1196.photobucket.com/albums/...pse75ee404.png

Here's the prefork MPM portion of httpd.conf
Code:
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild 0
</IfModule>

Here's the fcgid.conf
Code:
  FcgidIdleTimeout 60
  FcgidProcessLifeTime 30
  FcgidMaxProcesses 256
  FcgidMaxProcessesPerClass 20
  FcgidMinProcessesPerClass 0
  FcgidConnectTimeout 30
  FcgidIOTimeout 45
  FcgidInitialEnv RAILS_ENV production
  FcgidIdleScanInterval 10

Server specs:
AMD Octacore
24GB RAM
2TB HDD
CentOS 6.5
Plesk 11.5

Last edited by imadsani; 03-04-2014 at 12:42 PM.
 
Old 03-03-2014, 11:55 PM   #2
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
1) might required application fine tune apache
2) check the i/o (service time & utilization on disk iostat -kdx)
3) it's virtual server or physical then need to set the elevator to fine tune the kernel
3) if possible to install the oswatcher which can give you the most valuable logs to analysis
 
Old 03-04-2014, 12:18 AM   #3
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Original Poster
Rep: Reputation: Disabled
Thank you for the feedback, I'll look into this.
 
Old 03-04-2014, 01:40 AM   #4
scarleo
LQ Newbie
 
Registered: Dec 2010
Distribution: Ubuntu 10.10, SuSE 11.2, Debian Lenny, Puppy
Posts: 9

Rep: Reputation: 1
Try xcache or APC, if you are serving web pages and that is what is causing the load try to put varnish in front of it. With that spec you should be able to serve obscene amounts of requests.
 
Old 03-04-2014, 01:42 AM   #5
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scarleo View Post
Try xcache or APC, if you are serving web pages and that is what is causing the load try to put varnish in front of it. With that spec you should be able to serve obscene amounts of requests.
Yes, its for web pages and yes there is no cache being used currently. We're rushing cache implementation for this.
 
Old 03-04-2014, 12:43 PM   #6
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Original Poster
Rep: Reputation: Disabled
This has been solved.

Updated the application to use memcached and now the server cores are idling between 2-5% each, with more traffic than before.

Thank you all for your valuable input.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql server not responding with high cpu usage and high load avgs landysaccount Linux - Server 2 09-15-2013 03:46 AM
DragonFly BSD as a high-load web-server OS nate56 *BSD 2 11-28-2009 09:33 PM
server load high graziano1968 Linux - General 5 03-12-2009 01:32 PM
LXer: Load-Balanced High-Availability Web Cluster With 2 Xen Servers On Ubuntu 8.04 LXer Syndicated Linux News 0 10-12-2008 12:30 PM
Recommendations on specs for a high-load web server BigFunkyChief Linux - Server 7 08-12-2008 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration