LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   optimize apache 2 in centos 5 (https://www.linuxquestions.org/questions/linux-server-73/optimize-apache-2-in-centos-5-a-798530/)

sokha 03-28-2010 10:26 PM

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.

chrism01 03-29-2010 01:37 AM

What does 'top' show?

sokha 03-29-2010 11:20 PM

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

chrism01 03-30-2010 08:28 PM

Looks like a very quiet system to me. Are you actually having a performance issue; if so, what are the symptoms?

sokha 03-30-2010 11:25 PM

Quote:

Originally Posted by chrism01 (Post 3918594)
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?


All times are GMT -5. The time now is 12:01 AM.