Web Hosting Talk







View Full Version : Cpanel, Memory, and 4AM?


mainarea
11-06-2002, 01:43 PM
As seen in my MRTG graph at http://www.ukee.com/mrtg/localhost.mem.html , memory usage jumps at 4AM on my server (it dropped back down when I restarted) - see the weekly and daily chart.

Out of all of these programs:

Analog Stats
Webalizer Stats
Awstats Stats
Horde Webmail
Neomail Webmail
Spamassassin

I only have Neomail Webmail enabled, no stats programs. How can I fix this?

Here's what "top" displays:

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
26899 nobody 9 0 4384 4200 3624 S 0.0 3.3 0:00 httpd
4242 nobody 9 0 4384 4200 3620 S 0.0 3.3 0:00 httpd
9831 nobody 9 0 4320 4136 3612 S 0.0 3.2 0:00 httpd
29476 nobody 9 0 4148 3964 3628 S 0.0 3.1 0:00 httpd
25416 nobody 9 0 4132 3948 3628 S 0.0 3.1 0:00 httpd
13381 nobody 9 0 4116 3932 3628 S 0.0 3.1 0:00 httpd
5329 nobody 9 0 4112 3928 3628 S 0.0 3.1 0:00 httpd
7555 nobody 8 0 4108 3924 3620 S 0.0 3.1 0:00 httpd
3931 nobody 9 0 4100 3916 3632 S 0.0 3.1 0:00 httpd
11000 nobody 7 0 4076 3892 3640 S 0.0 3.0 0:00 httpd
20976 nobody 9 0 3920 3736 3568 S 0.0 2.9 0:00 httpd
3119 nobody 9 0 3920 3736 3568 S 0.0 2.9 0:00 httpd
486 root 8 0 3812 3628 3472 S 0.0 2.8 0:10 httpd
15676 root 9 0 6072 3608 1432 S 0.0 2.8 0:48 mrtg
2427 named 9 0 3256 3208 1932 S 0.0 2.5 0:00 named
8630 named 9 0 3256 3208 1932 S 0.0 2.5 0:00 named
6500 named 9 0 3256 3208 1932 S 0.0 2.5 0:25 named
8374 named 9 0 3256 3208 1932 S 0.0 2.5 0:00 named
30772 named 9 0 3256 3208 1932 S 0.0 2.5 0:04 named
20041 root 18 19 3072 3072 1452 S N 0.0 2.4 0:00 cpanellogd
24164 root 9 0 2908 2184 1392 S 0.0 1.7 0:00 cppop
28768 root 9 0 2504 1932 1340 S 0.0 1.5 0:00 whostmgrd
17603 root 9 0 1952 1920 1484 S 0.0 1.5 0:00 sshd
28700 root 9 0 2516 1888 1356 S 0.0 1.5 0:00 cpaneld
20187 root 9 0 2336 1840 1352 S 0.0 1.4 0:00 webmaild
20238 mysql 9 0 1776 1776 1120 S 0.0 1.4 0:00 mysqld
22530 mysql 8 0 1776 1776 1120 S 0.0 1.4 0:00 mysqld


Any ideas?

Thanks,

Matt

DD-SNC
11-06-2002, 02:34 PM
Check your crontab. If it's every day @ 4 AM, something is obviously scheduled to be run.

mpope
11-06-2002, 03:17 PM
Maybe a backup script of some sort running? Looks like you use CPanel... do you have the backup to 2nd hard drive option enabled?

porcupine
11-06-2002, 03:21 PM
CPanel does backups around that time. Why bother restarting? Unless it's severely hindering performance, memory is there to be used :), it'll be partially freed later when it's done most likely.

mainarea
11-06-2002, 03:28 PM
It was hindering performance, so I did a restart. I don't have Cpanel do backups, so that can't be the problem. Let me check crontab...

2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
41 2 * * * /scripts/upcp
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1

Anybody have any more ideas?

- Matt

porcupine
11-06-2002, 03:32 PM
is it happening every night at 4am? It could also be a user crontab, not a root crontab :). The cpanel update can hinder performance sometimes, but thats at a different time according to that.

mainarea
11-06-2002, 03:52 PM
It could also be a user crontab, not a root crontab .
Nope, I'm 1 of 2 people on the server, and no, nothing in their crontab either.

- Matt
:confused: :confused:

porcupine
11-06-2002, 04:02 PM
is this a recurring problem, or a one timer? It could possibly be a bug/glitch of some sort.

mainarea
11-06-2002, 04:11 PM
This has happened 3 times (I found out about this after looking at my new MRTG graph linked above), but only once did it go past 50% memory used. That particular machine only has 128MB ram, because not much is needed for my site.

- Matt

porcupine
11-06-2002, 04:13 PM
Running CPanel with 128mb of ram? Are you clinically insane?!?! :D, it needs 512mb min if you ask me to run whatsoever well, on a 512mb machine it'll use 70% off default install.

mainarea
11-06-2002, 04:36 PM
Running CPanel with 128mb of ram? Are you clinically insane?!?!
I'm not running any stats programs or other cpanel stuff that is turned on by default (such as interchange which takes up a LOT of memory). I may be clinically insane, but I can upgrade the RAM at any time. Memory use is only at 27-40% normally, even when my php/mysql sites are being hit every other second (I have ~40,000 pageviews per day, concentrated from 4PM-1AM EST, no slowdown at all).

I'm only using this server for personal stuff.

- Matt

ffeingol
11-06-2002, 06:20 PM
What's in /etc/cron.daily/ Those all run @ 4:00 am.

Frank

mainarea
11-06-2002, 06:30 PM
root@server1 [/etc/cron.daily]# ls
./ ../ 0anacron* logrotate* makewhatis.cron* rpm* slocate.cron* tetex.cron* tmpwatch*


Is there anything not important that I can remove (such as tetex.cron, which "Removes TeX fonts not used in 180 days".

Thanks,

Matt