Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 39981

Trying to figure out why my LEB with APACHE2/PHP/OpenVPN-AS is using 92MB of RAM :s

$
0
0

Done:
apt-get remove bind9


Fortunately it is a 768MB RAM VPS, but I don't understand why it was using over 100MB of RAM with APACHE2 (default with the vanilla install) and OpenVPN AS installed. I subsequently installed PHP. which increased the RAM usage by a couple MB.

Anyway, "free -m" currently shows usage of 92MB RAM, but "ps aux" shows a ton of openvpn processes ("openvpn --errors-to-stderr --config stdin") and I'm not sure why they are all running. The VPN works.

Thoughts/suggestions about what to do to improve (reduce) RAM usage (short of getting rid of APACHE2 and replacing it with nginx, though I guess that's a possibility) and clean up the OpenVPN and related processes are welcome.

root@vpsla:/var/www# free -m
total used free shared buffers cached
Mem: 768 129 638 0 0 36
-/+ buffers/cache: 92 675
Swap: 256 0 256

root@vpsla:/var/www# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 2028 732 ? Ss 08:15 0:00 init [2]
root 2 0.0 0.0 0 0 ? S 08:15 0:00 [kthreadd/13377]
root 3 0.0 0.0 0 0 ? S 08:15 0:00 [khelper/13377]
root 437 0.0 0.0 1736 632 ? Ss 08:15 0:00 /sbin/syslogd
bind 497 0.0 1.6 83072 12668 ? Ssl 08:15 0:00 /usr/sbin/named -u bind
root 505 0.0 0.0 1680 588 ? Ss 08:15 0:00 /usr/sbin/anacron -s
root 535 0.0 0.1 8668 820 ? Ss 08:15 0:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 2
root 541 0.0 0.0 8668 384 ? S 08:15 0:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 2
root 556 0.0 0.1 2392 868 ? Ss 08:15 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root 560 0.0 0.1 5488 968 ? Ss 08:15 0:00 /usr/sbin/sshd
root 572 0.0 0.2 9200 1760 ? Ss 08:15 0:00 /usr/sbin/nmbd -D
root 577 0.0 0.3 16544 2880 ? Ss 08:15 0:00 /usr/sbin/smbd -D
root 583 0.0 0.1 16544 1248 ? S 08:15 0:00 /usr/sbin/smbd -D
root 585 0.6 3.3 40556 26308 ? S 08:15 0:00 python -c from pyovpn.sagent.sagent_entry import openvpnas ; openvpnas() --logfile=/var/log/openvpnas.log --pidfile=/var/run/openvpnas.pid
root 592 0.1 1.8 27848 14696 ? S 08:15 0:00 python -c from pyovpn.log.logworker import start ; start()
1001 593 0.3 2.2 21536 18012 ? S 08:15 0:00 python -c from pyovpn.cserv.wserv_entry import start ; start() -no -u openvpn_as -g openvpn_as --pidfile /usr/local/openvpn_as/etc/tmp/wserv.pid -r epoll
root 611 0.1 1.1 12240 9228 ? S 08:15 0:00 python -c from pyovpn.sagent.iptworker import start ; start()
root 612 0.0 0.3 8544 3012 ? Ss 08:15 0:00 sshd: root@notty
1001 615 0.0 0.3 4632 2388 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 617 0.0 0.0 4496 700 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 621 0.0 0.3 4632 2384 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 623 0.0 0.0 4496 696 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 626 0.0 0.3 4632 2392 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 628 0.0 0.0 4496 704 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 631 0.0 0.3 4632 2392 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 633 0.0 0.0 4496 704 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 636 0.0 0.2 4628 2356 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 640 0.0 0.3 4628 2360 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 644 0.0 0.2 4628 2356 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
1001 648 0.0 0.2 4628 2356 ? S 08:15 0:00 openvpn --errors-to-stderr --config stdin
root 650 0.0 0.0 2272 732 ? S 08:15 0:00 iptables-restore -n
root 651 0.0 0.1 1924 808 ? Ss 08:15 0:00 /usr/lib/openssh/sftp-server
root 652 0.0 0.4 8544 3404 ? Ss 08:15 0:00 sshd: root@pts/0
root 654 0.0 0.2 2964 1648 pts/0 Ss 08:15 0:00 -bash
root 664 0.0 0.2 9992 1588 ? Ss 08:16 0:00 sendmail: MTA: accepting connections
root 686 0.0 0.8 20840 6292 ? Ss 08:16 0:00 /usr/sbin/apache2 -k start
www-data 694 0.0 0.4 20840 3588 ? S 08:16 0:00 /usr/sbin/apache2 -k start
root 714 0.0 0.1 2288 876 ? Ss 08:16 0:00 /usr/sbin/cron
www-data 734 0.0 0.4 20840 3580 ? S 08:16 0:00 /usr/sbin/apache2 -k start
www-data 735 0.0 0.4 20840 3580 ? S 08:16 0:00 /usr/sbin/apache2 -k start
www-data 736 0.0 0.4 20840 3580 ? S 08:16 0:00 /usr/sbin/apache2 -k start
root 738 0.0 0.1 2348 920 pts/0 R+ 08:18 0:00 ps aux


Viewing all articles
Browse latest Browse all 39981

Trending Articles