Linux - Server This forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
03-28-2010, 10:26 PM
#1
Member
Registered: Sep 2008
Posts: 46
Rep:
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.
03-29-2010, 01:37 AM
#2
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.2, Centos 5.8
Posts: 11,740
What does 'top' show?
03-29-2010, 11:20 PM
#3
Member
Registered: Sep 2008
Posts: 46
Original Poster
Rep:
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
03-30-2010, 08:28 PM
#4
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.2, Centos 5.8
Posts: 11,740
Looks like a very quiet system to me. Are you actually having a performance issue; if so, what are the symptoms?
03-30-2010, 11:25 PM
#5
Member
Registered: Sep 2008
Posts: 46
Original Poster
Rep:
Quote:
Originally Posted by
chrism01
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?
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 08:33 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News