in reply to Quiting gracefully before Memory is exhausted

I don't think you can call it "graceful" if you use POSIX::_exit. You're skipping all the cleanup, including flushing buffers of things you printed. You could actually lose some of your output by doing this.

I don't have a Solaris system to test with, but you might consider using Solaris::Procfs or making it cross-platform with GTop.

  • Comment on Re: Quiting gracefully before Memory is exhausted

Replies are listed 'Best First'.
Re: Re: Quiting gracefully before Memory is exhausted
by smellysocks (Beadle) on Sep 09, 2003 at 17:48 UTC
    true.

    This was my test code. My production code doesn't use POSIX:_exit. I was simply annoyed that my test code seemed to "hanging."

    I'll have to take a look at those mods.