Thomas Guyot-Sionnest wrote: > On 14/02/09 09:43 PM, Jeff Frost wrote: > > On Sat, 14 Feb 2009, Thomas Guyot-Sionnest wrote: > > >> Which OS/distribution are you running? How much RAM do you have? Free > >> RAM? SWAP? > >> > >> Please send results of "free -m" with and without Nagios running. > > Gentoo > > > With nagios running (and fork errors happening): > > > free -m > > total used free shared buffers > cached > > Mem: 4096 1421 2674 0 51 > 1078 > > -/+ buffers/cache: 292 3803 > > Swap: 511 0 511 > > > nagios 4808 6.8 0.2 72716 11916 ? Rsl 02:00 2:47 > > /usr/sbin/nagios -d /etc/nagios/nagios.cfg > > > Without nagios running: > > > # free -m > > total used free shared buffers > cached > > Mem: 4096 1364 2732 0 51 > 1073 > > -/+ buffers/cache: 238 3857 > > Swap: 511 0 511 > > > Immediately after nagios start: > > > # free -m > > total used free shared buffers > cached > > Mem: 4096 1386 2709 0 51 > 1079 > > -/+ buffers/cache: 255 3840 > > Swap: 511 0 511 > > > This is very strange as you should have plenty of available memory (this > is a 64bit system right?) even when you see the fork() errors. > I know, huh? 64-bit: > Are you able to find the exact errorno with strace? >
ENOMEM: [pid 21754] clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|S IGCHLD, child_tidptr=0x2b482d8ad440) = -1 ENOMEM (Cannot allocate memory) [pid 21754] clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|S IGCHLD, child_tidptr=0x2b482d8ad440) = -1 ENOMEM (Cannot allocate memory) Let me know if you want anything more specific. That was done with a -e trace=process. > Which kernel are you using? Do you have any security features enabled > (selinux, grsecurity, pax, etc?) > 2.6.18-xenU #1 SMP Fri Jun 15 17:50:34 PDT 2007 x86_64 Intel(R) Xeon(R) CPU E5345 @ 2.33GHz GenuineIntel GNU/Linux None of the security features are enabled. > Is there anything logged by the kernel (dmesg)? > No. :-( -- Jeff Frost, Owner <[email protected]> Frost Consulting, LLC http://www.frostconsultingllc.com/ Phone: 916-647-6411 FAX: 916-405-4032 ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
