Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting alerts for low server mem or pid kills
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6308
Location: /usr/lib64/lv2

PostPosted: Thu Aug 16, 2012 3:44 pm    Post subject: Getting alerts for low server mem or pid kills Reply with quote

I have a hosted Gentoo server that seems to need to be rebooted about once a month. Processes start getting killed and someone suggested it might be because the server runs out of memory over time (or something like that).

Is there something I can run that will monitor memory and email me if things start to look too crowded or if something gets killed that I need not to get killed?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Aug 16, 2012 4:47 pm    Post subject: Re: Getting alerts for low server mem or pid kills Reply with quote

audiodef wrote:
Is there something I can run that will monitor memory and email me if things start to look too crowded or if something gets killed that I need not to get killed?

audiodef ... one or more tools from app-admin/sysstat perhaps, though its more of a set of general reporting tools. sa2 or sar will create daily reports (via cron) which can then be mailed. You might want to look at the documentation.

Your problem however can probably be traced to a specific application/memory leak and so the offender probably stands out in ps/htop output.

HTH & best ... khay
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5595

PostPosted: Thu Aug 16, 2012 4:57 pm    Post subject: Reply with quote

sys-apps/watchdog can automate what you're currently doing.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6308
Location: /usr/lib64/lv2

PostPosted: Fri Aug 17, 2012 1:49 pm    Post subject: Reply with quote

Thanks for the suggestions, guys. :)
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum