Date: Fri, 23 Feb 2018 20:59:57 +0100 From: Karli =?ISO-8859-1?Q?Sj=F6berg?= <karli@inparadise.se> To: Marcin Cieslak <saper@saper.info> Cc: ports@freebsd.org, ruby@freebsd.org Subject: Re: monitoring ruby app memory usage with passenger-recycler (was: Cannot require library for passenger in ruby) Message-ID: <1519415997.5031.2.camel@inparadise.se> In-Reply-To: <nycvar.OFS.7.76.6.1802221823530.2659@z.fncre.vasb> References: <nycvar.OFS.7.76.6.1802202034350.2659@z.fncre.vasb> <1519282237.1980.26.camel@inparadise.se> <1519290717.1980.31.camel@inparadise.se> <1519307212.1980.36.camel@inparadise.se> <nycvar.OFS.7.76.6.1802221823530.2659@z.fncre.vasb>
index | next in thread | previous in thread | raw e-mail
On Thu, 2018-02-22 at 18:28 +0000, Marcin Cieslak wrote: > On Thu, 22 Feb 2018, Karli Sjöberg wrote: > > > > > > > > > How do I interpret the output of 'procstat -v <pid>' though? Can > > > I > > > sum > > > up all of the RES or PRES numbers to get the total virtual memory > > > that > > > this process is consuming? > > I hacked at it a bit and came up with an updated patch that > > includes > > the changes you made, plus my own. > > > > Since "private dirty RSS" isn´t available, I´ve used "maximum RSS" > > from > > 'procstat -r <pid>', which is far from perfect, but it´s better > > than > > nothing. It now runs and does what you´d expect :) > > > > I have attached it to this email. > Thanks! Now we should try to integrate it into the passenger itself > :) No it´s just 'foreman_maintain' that needs fixing. I´m actually d oing the git dance right now getting it accepted upstream :) https://github.com/theforeman/foreman_maintain/pull/146 /K > > I think you might be looking for "private resident pages" (PRES), > but I am not sure. > > For your particular problem I would log procstat -v output in its > entirety > at regular intervals and see where the memory grows. > > Happy you got there somehow :) > > Marcinhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1519415997.5031.2.camel>
