Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 21, 2012 4:45 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Hi,

I have a Linode 512 that uses about 200M idle. Cron.daily runs at about 6.30AM and it's giving me some issues. With about 300M left I don't see how the daily cronjobs can give so much trouble. I also don't know which particular cronjob is causing this. Here's a screenshot:

http://i.imgur.com/johOL.png

As you can see, it starts swapping and has a little IO-peak. Does that mean that something is eating up all my RAM during the cronjob?
While this one was no huge issue, sometimes it uses more. This causes mainly apache to go OOM, and restart. I'd rather not have this all the time.

Does anyone know what causes this and how I can fix it? I'm running Debian 6, here's the cronjobs:
Code:

-rwxr-xr-x  1 root root   633 Apr  1 08:40 apache2
-rwxr-xr-x  1 root root 14799 Apr 15  2011 apt
-rwxr-xr-x  1 root root    77 Jun 19  2009 apt-show-versions
-rwxr-xr-x  1 root root   314 Aug 12  2011 aptitude
-rwxr-xr-x  1 root root   502 Jun 17  2010 bsdmainutils
-rwxr-xr-x  1 root root   256 Apr 26  2011 dpkg
-rwxr-xr-x  1 root root    89 Apr 17  2010 logrotate
-rwxr-xr-x  1 root root  1335 Jan  3  2011 man-db
-rw-r--r--  1 root root   606 Nov  4  2009 mlocate
-rwxr-xr-x  1 root root  7628 Nov 27  2010 mod-pagespeed
-rwxr-xr-x  1 root root  1154 Oct 17  2010 ntp
-rwxr-xr-x  1 root root   249 Feb 15  2011 passwd
-rwxr-xr-x  1 root root  3594 Dec 19  2010 standard


I first thought that the mlocate caused it, but I disabled that one and it's still doing it :/

Thanks,


Top
   
 Post subject:
PostPosted: Tue May 22, 2012 12:48 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
They're just scripts, so you can try running each one manually (I would suggest a time other than 6:30 AM) to isolate which might be the culprit. Use something like vmstat to keep an eye on I/O and swapping while running them.


Top
   
 Post subject:
PostPosted: Tue May 22, 2012 8:01 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
That graph you posted doesn't show swapping, it barely shows any disk activity at all. Don't worry about it. FYI it's probably logrotate.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Tue May 22, 2012 12:16 pm 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
obs wrote:
That graph you posted doesn't show swapping, it barely shows any disk activity at all. Don't worry about it. FYI it's probably logrotate.


The reason I worry about it is because apache restarts at the same time as that cronjob runs, which makes me thinks it goes oom & restarts to free up memory.


Top
   
 Post subject:
PostPosted: Tue May 22, 2012 12:59 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
logrotate will gracefully restart apache to flush the logs, checking for an oom is easy connect to lish and you'll see a load of console messages saying out of memory and what was killed.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group