LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-23-2012, 06:14 AM   #16
Tarikc
Member
 
Registered: May 2009
Distribution: CentOS, RedHat, Ubuntu
Posts: 68

Original Poster
Rep: Reputation: 4

Hello unSpawn,

After some more research on the net regarding tuning, example this link.

And more tests on the server increasing and decreasing limits and monitoring the usage and processes.

I think if I need to have it improved more I will have to increase the RAM, coz the website is "sometimes" have huge traffic passing on it, its a news based website.

Quote:
Originally Posted by unSpawn View Post
best look at the 3xx messages in access_log.
I have looked at it and found out that it is 304 Not Modified, so nothing to be worried about?

Quote:
Originally Posted by unSpawn View Post
Lower timeouts seems a good thing and I let the link I gave you before argue against increasing MaxClients.
I have followed the link, and based on the RAM I have I have set the MaxClients to 40, coz the max apache2 process takes 70MB of RAM each… is it normal??

As the apachetop:

Quote:
last hit: 12:13:40 atop runtime: 0 days, 21:50:22 12:13:42
All: 507713 reqs ( 6.5/sec) 4916.3M ( 64.0K/sec) 10153.7B/req
2xx: 369800 (72.8%) 3xx: 113574 (22.4%) 4xx: 11330 ( 2.2%) 5xx: 13009 ( 2.6%)
R ( 30s): 81 reqs ( 2.7/sec) 795.3K ( 26.5K/sec) 10053.9B/req
2xx: 54 (66.7%) 3xx: 22 (27.2%) 4xx: 5 ( 6.2%) 5xx: 0 ( 0.0%)
You think I'm on the right track or I got away to a totally different direction?

Thank you again for your valuable support.
 
Old 11-23-2012, 06:52 AM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
304's are not a problem but I would still wonder what's requesting it then if it takes up over 20 per cent of the 3xx requests. 70MB RAM per child seems a lot but you should compare that number with what other sites have. Your numbers look OK at first glance but the downside of tuning is serving requests dropped to half of what it was first. If that tuning brought stability to the site then that obviously is good but like you said yourself it will work for now and not when the server gets swamped with requests. Keeping in mind you still have to look at php.ini and my.cnf values do explore the idea of handing off static content to a lighter web server like Lighttpd or Nginx and maybe moving MySQL to another VM.
 
  


Reply

Tags
apache, mysql, ubuntu



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
LXer: How To Set Up WebDAV With MySQL Authentication On Apache2 (Ubuntu 9.10) LXer Syndicated Linux News 0 06-02-2010 07:50 AM
[SOLVED] website not doing anything Using Ubuntu, mysql, apache2, php and firefox as browser drk2009 Linux - Newbie 4 07-30-2009 06:01 AM
LXer: Installing Apache2 With PHP5 And MySQL Support On Ubuntu 9.04 (LAMP) LXer Syndicated Linux News 0 07-28-2009 02:40 PM
Slow ssh connection over lan with Ubuntu Desktop and Ubuntu Server Recursion Linux - Networking 1 05-23-2009 02:17 AM
Problems upgrading MySQL on Ubuntu, with Apache2/PHP4 peruvianllama Linux - Software 0 08-16-2005 09:27 AM

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

All times are GMT -5. The time now is 12:20 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