[Glass] out of resources

Dale Henrichs dale.henrichs at gemtalksystems.com
Thu May 8 08:58:21 PDT 2014


You are correct ... in normal operation the resources should be cleaned up
...

Another thing to consider is that if you are running on linux and get low
on swap space, linux will start killing off processes ... in recent
versions of 3.x we have made the necessary system calls so that the os
won't kill the important gemstone processes, but I'm not exactly sure what
version these calls were put in ... if you look in the system logs, there
should be messages listing the pids that have been killed ...

Dale


On Thu, May 8, 2014 at 8:32 AM, Otto Behrens <otto at finworks.biz> wrote:

> Thanks for the response
>
> > The way that we use shared memory resources, we have things setup so that
> > the resources are deallocated when the last process detaches from the
> cache.
> >
> > So I would look around the system for rogue stoned, topaz or gem
> processes
> > that may be hung/refusing to quit ... if you find some hanging around
> note
> > their process ids and track down their log file...there should be
> > information there as to why they are hung ...
>
> There are no rogue stoned, topaz, gem or shared cache monitor
> processes hanging around. The output from ipcs -m tells me that there
> are no processes attached. eg:
>
> ------ Shared Memory Segments --------
> key        shmid      owner      perms      bytes      nattch     status
> 0x6a0180a5 819200     wonka      660        1059602432 0
> 0x16018585 1146881    wonka      660        1059602432 0
> 0x950180a5 163844     wonka      660        1059602432 0
> 0xfd0180a5 458757     wonka      660        1059602432 0
>
> The command
>
> ipcrm -m 819200
>
> frees up the memory instantly (the docs says that it frees up only
> after the last process detatches), which is consistent with the nattch
> count of 0.
>
> > Another thing is if you 'kill -9' the shrpc monitor process, the shared
> > memory segment will not be told to clean up when the last process
> detaches
> > and the shared memore/semaphores will be left around.
>
> No shrpc process around
>
> > While not recommended, it is "safe" to kill -9 the stoned process as a
> last
> > resort, you will lose any transactions that are in progress and will
> need to
> > restore from tranlogs on restart, but kill -9 on stoned should not
> corrupt
> > the db  ... the shrpc monitor process is really the only process that it
> is
> > not "safe" to use kill -9 on but even then the db will not be corrupted,
> > like killing the stone, you will lose any transactions in progress AND
> you
> > will leave shared memory resources around to be cleaned up manually ...
>
> AFAIK we are not killing processes. But we should have a very close
> look to make sure.
>
> What I can conclude from your response is that it is unexpected then
> that these resources are not freed up?
>
> Thanks
> Otto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140508/919710c5/attachment.html>


More information about the Glass mailing list