Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Any tips for optimizing 128MB (apache,php,mysql,sendmail,vsdftp)?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Any tips for optimizing 128MB (apache,php,mysql,sendmail,vsdftp)?

detpackdetpack Member
edited September 2012 in Help

So here it goes, I have setup my first VPS (production?) server and am looking for a couple tips to optimize it for a 128MB (256MB swap) OpenVZ setup.

Here is what the site will be doing:
-Running:
--apache
--vsftp
--sendmail
--mysql

Serving:
-Static homepage
-simple php order page for small local community.
-sendmail used after order is submitted to mysql.
-simple admin backend for viewing orders and marking them as fulfilled.
-phpmyadmin to manage the database

After uploading everything and making things work correctly the server was using ~200MB ram, so i rebooted the server and now it idles at ~38MB. After running through the site a little (using phpmyadmin, placing a test order, and using admin backend) it sits at ~71MB.

Here's what the top command gives:
top - 09:33:54 up 45 min, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 25 total, 1 running, 24 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 262144k total, 71340k used, 190804k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 18148k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
789 root 20 0 2564 1060 876 R 5.2 0.4 0:00.93 top
1 root 20 0 2896 1336 1160 S 0.0 0.5 0:00.01 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd/4629
3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper/4629
130 root 16 -4 2484 584 340 S 0.0 0.2 0:00.00 udevd
469 root 20 0 2052 512 440 S 0.0 0.2 0:00.00 portreserve
475 root 20 0 35968 1272 952 S 0.0 0.5 0:00.00 rsyslogd
489 root 20 0 8520 988 508 S 0.0 0.4 0:00.00 sshd
496 root 20 0 3192 864 684 S 0.0 0.3 0:00.00 xinetd
506 root 20 0 6784 632 272 S 0.0 0.2 0:00.00 vsftpd
540 root 20 0 6264 1336 1144 S 0.0 0.5 0:00.00 mysqld_safe
611 mysql 20 0 132m 16m 5468 S 0.0 6.3 0:00.60 mysqld
638 root 20 0 8732 712 280 S 0.0 0.3 0:00.00 saslauthd
639 root 20 0 8732 492 60 S 0.0 0.2 0:00.00 saslauthd
654 root 20 0 12312 2080 828 S 0.0 0.8 0:00.05 sendmail
661 smmsp 20 0 12108 1676 640 S 0.0 0.6 0:00.00 sendmail
669 root 20 0 26532 7232 4136 S 0.0 2.8 0:00.06 httpd
674 apache 20 0 32796 10m 3500 S 0.0 4.2 0:00.18 httpd
677 root 20 0 7080 1164 600 S 0.0 0.4 0:00.00 crond
767 root 20 0 11440 3708 2984 S 0.0 1.4 0:00.15 sshd
769 root 20 0 6268 1588 1348 S 0.0 0.6 0:00.00 bash
864 apache 20 0 33076 11m 3496 S 0.0 4.3 0:00.22 httpd
865 apache 20 0 33052 11m 3604 S 0.0 4.3 0:00.23 httpd
866 apache 20 0 32804 10m 3456 S 0.0 4.2 0:00.29 httpd
867 apache 20 0 32784 10m 3456 S 0.0 4.2 0:00.13 httpd

I know its still running under the limit, but if anyone has some helpful input for using the current setup that would be great! Thanks for looking

Comments

Sign In or Register to comment.