shmem release

Dan Nelson dnelson at allantgroup.com
Tue Mar 30 13:11:16 PST 2004


In the last episode (Mar 30), Tim Traver said:
> Hi all,
> 
> Ok, I am running a 4.7 FreeBSD box that is a web server running apache.
> 
> It looks like some module that I have is leaking memory, and eventually, 
> apache crashes on restarts becuase of this error :
> 
> shmget() failed:  No space left on device
> 
> which means it can't get any more memory, which I understand.

ipcs -m will list your current shm segments, and ipcrm will let you
delete the ones not in use anymore.  SYSV shared memory usage is
limited by the kern.ipc.shmmax sysctl, I believe.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list