LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-28-2010, 10:26 PM   #1
sokha
Member
 
Registered: Sep 2008
Posts: 46

Rep: Reputation: 15
optimize apache 2 in centos 5


I saw many people were talking about how to optimize apache and mysql here and also in other forums and blogs. I am currently hosting some sites and some IRCD processes (a tiny network)in a dedicated server with spec:

Quote:
Intel Dual Core 1.6GHz E1200
1GB RAM
160 HDD
10Mbits port
We got about 30,000 to 40,000 page views per day. I would like to ask people here about the opinion of apache and mysql optimization based on this server spec and current number of page view.
 
Old 03-29-2010, 01:37 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
What does 'top' show?
 
Old 03-29-2010, 11:20 PM   #3
sokha
Member
 
Registered: Sep 2008
Posts: 46

Original Poster
Rep: Reputation: 15
optimize apache 2 in centos 5

Here is recent top:

Quote:
top - 11:18:56 up 1 day, 20:27, 2 users, load average: 0.18, 0.92, 0.76
Tasks: 117 total, 2 running, 115 sleeping, 0 stopped, 0 zombie
Cpu(s): 14.5%us, 0.7%sy, 0.0%ni, 84.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1024900k total, 926268k used, 98632k free, 14052k buffers
Swap: 2064376k total, 42288k used, 2022088k free, 607232k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
21505 apache 15 0 52436 14m 4624 S 19.3 1.4 0:05.45 httpd
21506 apache 15 0 53784 15m 4928 S 4.7 1.6 0:05.66 httpd
19968 apache 15 0 56108 17m 4656 S 4.3 1.8 0:13.62 httpd
8831 mysql 15 0 146m 15m 3048 S 0.7 1.6 43:10.58 mysqld
20001 apache 17 0 53740 15m 4644 S 0.3 1.6 0:19.16 httpd
20016 apache 15 0 55692 17m 4688 S 0.3 1.8 0:16.75 httpd
20682 apache 15 0 53688 15m 4708 S 0.3 1.6 0:12.12 httpd
20685 apache 21 0 54596 16m 4728 S 0.3 1.7 0:22.67 httpd
21507 apache 15 0 54824 16m 4536 S 0.3 1.7 0:04.50 httpd
1 root 15 0 2072 92 64 S 0.0 0.0 0:07.48 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.07 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.06 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1
7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
8 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/1
10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
11 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
15 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 kblockd/0
16 root 19 -5 0 0 0 S 0.0 0.0 0:00.17 kblockd/1
17 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
105 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0
106 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1
109 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
111 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
180 root 10 -5 0 0 0 S 0.0 0.0 1:18.62 kswapd0
181 root 18 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
 
Old 03-30-2010, 08:28 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
Looks like a very quiet system to me. Are you actually having a performance issue; if so, what are the symptoms?
 
Old 03-30-2010, 11:25 PM   #5
sokha
Member
 
Registered: Sep 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
Looks like a very quiet system to me. Are you actually having a performance issue; if so, what are the symptoms?
The time I run that top command, there was no issue. But before I noticed that it almost run out of memory.

If we put files to let people download, does it make the server overload?
 
  


Reply

Tags
apache, centos, mysql, optimize


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
Please help to optimize a server Centos 5 anebi Linux - Server 2 12-09-2009 07:23 AM
Apache Error 403 - CentOS 5.2 with Apache 2.2.3 gordymann Linux - Newbie 2 04-08-2009 08:57 AM
Centos 5 Apache error swhitehead Linux - Newbie 2 04-09-2008 01:10 PM
Can I optimize my CentOS install? nyheat Linux - Desktop 3 03-12-2008 05:41 AM
Permissions Apache and CentOS Mr. Slappy Linux - Server 1 07-09-2007 03:57 PM


All times are GMT -5. The time now is 07:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration