Hello,

I manage Sun servers for a living that are ONLY used for DNS. With that said, I've been hired by another company to manage their dedicated server. P4 1gig with CentOS is what they have. They are running mysql, php, and apache 1(httpd). What concerns me, after this transfer of servers is completed (from shared server to dedicated server), is it going to be able to hold up against 400 users? Right now, with no one hitting the box and only me connected via ssh, this is what top brings up:
top - 10:27:17 up 1 day, 15:11, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 126 total, 1 running, 125 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 1018992k total, 946976k used, 72016k free, 390416k buffers
Swap: 2048276k total, 0k used, 2048276k free, 368464k cached
Maximum tasks = 0, change to (0 is unlimited):
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1548 apache 19 4 40592 19m 4204 S 0 1.9 0:00.59 httpd
1541 apache 19 4 40284 18m 4040 S 0 1.9 0:00.49 httpd
1543 apache 19 4 40324 18m 4024 S 0 1.9 0:00.57 httpd
1540 apache 20 4 40324 18m 4020 S 0 1.9 0:00.52 httpd
1542 apache 24 4 40324 18m 4020 S 0 1.9 0:00.45 httpd
1544 apache 20 4 39784 18m 4292 S 0 1.9 0:00.77 httpd
1538 root 21 4 35040 16m 4736 S 0 1.6 0:00.17 httpd
1502 mysql 27 6 32416 12m 2464 S 0 1.2 0:00.05 mysqld
1503 mysql 21 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld
1504 mysql 31 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld
1505 mysql 30 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld
1506 mysql 30 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld
1507 mysql 31 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld
1509 mysql 23 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld
1510 mysql 23 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld
1511 mysql 24 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld
1512 mysql 27 6 32416 12m 2464 S 0 1.2 0:00.00 mysqld

If I restart apache and mysql, I can squeeze almost 100M free, but that still gradually decreases. Note that this is also a NS server. I set crons to email the vmstat over night, and I've seen it as low as 7M. Again, box at idle running just the requirements. I'm familiar with Sun, not CentOS. this is new territory for me. Any help?

Adelsin

That's OK since by default apache and mysql reserve some resources to be in "cache" so it will be accessed more fast because they are into memory.
Of course you can alter those settings to have less resources in the initial state.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.