Hi guys,
As of a day or two ago my server is shutting down due to low RAM, according to my host. But, I can not pin down the cause, I have replicated it by running a find command on /usr/local/etc/apache22/extras so no huge task but it has occurred both times I ran the command today. It is a media streaming server so it should not have any trouble with such a small request.
I have started looking through /var but so far I can not find out what is freaking it out.
Here is top at idle:
Can anyone please suggest a way to find the culprit? This is a production server and I am getting my arse kicked every time it goes down
As of a day or two ago my server is shutting down due to low RAM, according to my host. But, I can not pin down the cause, I have replicated it by running a find command on /usr/local/etc/apache22/extras so no huge task but it has occurred both times I ran the command today. It is a media streaming server so it should not have any trouble with such a small request.
I have started looking through /var but so far I can not find out what is freaking it out.
Here is top at idle:
Code:
last pid: 2750; load averages: 0.00, 0.00, 0.00
62 processes: 2 running, 60 sleeping
CPU: 0.3% user, 0.0% nice, 0.2% system, 0.0% interrupt, 99.5% idle
Mem: 76M Active, 83M Inact, 51M Wired, 444K Cache, 85M Buf, 521M Free
Swap: 988M Total, 988M Free
Order to sort: [B]res[/B]
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
2609 88 18 44 0 86896K 45168K ucond 0:01 0.00% mysqld
2694 www 1 45 0 124M 27496K lockf 0:01 0.00% httpd
2698 www 1 50 0 122M 25460K lockf 0:01 0.00% httpd
2695 www 1 50 0 122M 25420K lockf 0:01 0.00% httpd
2697 www 1 50 0 122M 25420K lockf 0:01 0.00% httpd
2696 www 1 44 0 112M 14808K lockf 0:00 0.00% httpd
2706 www 1 44 0 112M 14752K lockf 0:00 0.00% httpd
2705 www 1 44 0 112M 14752K kqread 0:00 0.00% httpd
2693 root 1 44 0 112M 14744K select 0:00 0.00% httpd
1450 www 1 44 0 71420K 7248K accept 0:00 0.00% httpd
1451 www 1 63 0 71420K 7248K accept 0:00 0.00% httpd
1452 www 1 63 0 71420K 7248K accept 0:00 0.00% httpd
1453 www 1 63 0 71420K 7248K accept 0:00 0.00% httpd
1454 www 1 63 0 71420K 7248K accept 0:00 0.00% httpd
1376 root 1 44 0 71420K 7244K select 0:00 0.00% httpd
2667 admin 1 44 0 38104K 5176K RUN 0:00 0.00% sshd
2664 root 1 45 0 38104K 5168K sbwait 0:00 0.00% sshd
1405 root 1 44 0 26172K 4500K select 0:00 0.00% sshd
1242 root 1 44 0 11092K 4184K select 0:00 0.00% openvpn
1411 root 1 44 0 12096K 4080K select 0:00 0.00% sendmail
1417 smmsp 1 76 0 12096K 4012K pause 0:00 0.00% sendmail
1780 smmsp 1 76 0 12004K 3864K pause 0:00 0.00% sendmail
1774 root 1 44 0 12004K 3616K select 0:00 0.00% sendmail
2670 root 1 44 0 10216K 2800K wait 0:00 0.00% bash
2668 admin 1 44 0 10216K 2796K wait 0:00 0.00% bash
2750 root 1 44 0 9336K 2288K RUN 0:00 0.00% top
2669 admin 1 44 0 21668K 2008K wait 0:00 0.00% su
2040 88 1 76 0 8264K 1860K wait 0:00 0.00% sh
2077 root 1 44 0 8080K 1636K nanslp 0:00 0.00% cron
1787 root 1 44 0 7952K 1612K nanslp 0:00 0.00% cron
1424 root 1 44 0 7952K 1612K nanslp 0:00 0.00% cron
1913 root 1 44 0 7024K 1584K select 0:00 0.00% syslogd
1089 root 1 44 0 7024K 1564K select 0:00 0.00% syslogd
1611 root 1 44 0 6896K 1560K select 0:00 0.00% syslogd
2287 root 1 76 0 9008K 1396K select 0:00 0.00% inetd
2440 root 1 76 0 6892K 1288K ttyin 0:00 0.00% getty
2445 root 1 76 0 6892K 1288K ttyin 0:00 0.00% getty
2441 root 1 76 0 6892K 1288K ttyin 0:00 0.00% getty
2446 root 1 76 0 6892K 1288K ttyin 0:00 0.00% getty
2447 root 1 76 0 6892K 1288K ttyin 0:00 0.00% getty
2442 root 1 76 0 6892K 1288K ttyin 0:00 0.00% getty
2443 root 1 76 0 6892K 1288K ttyin 0:00 0.00% getty
2444 root 1 76 0 6892K 1288K ttyin 0:00 0.00% getty
115 root 1 76 0 2744K 1024K pause 0:00 0.00% adjkerntz
852 root 1 44 0 3204K 724K select 0:00 0.00% devd
Can anyone please suggest a way to find the culprit? This is a production server and I am getting my arse kicked every time it goes down