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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2018-02-22 at 18:28 +0000, Marcin Cieslak wrote: > On Thu, 22 Feb 2018, Karli Sj=C3=B6berg wrote: >=20 > >=20 > > >=20 > > > 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. > >=20 > > Since "private dirty RSS" isn=C2=B4t available, I=C2=B4ve used "maxim= um RSS" > > from > > 'procstat -r <pid>', which is far from perfect, but it=C2=B4s better > > than > > nothing. It now runs and does what you=C2=B4d expect :) > >=20 > > I have attached it to this email. > Thanks! Now we should try to integrate it into the passenger itself > :) No it=C2=B4s just 'foreman_maintain' that needs fixing. I=C2=B4m actually= d oing the git dance right now getting it accepted upstream :) https://github.com/theforeman/foreman_maintain/pull/146 /K >=20 > I think you might be looking for "private resident pages" (PRES), > but I am not sure.=C2=A0 >=20 > For your particular problem I would log procstat -v output in its > entirety > at regular intervals and see where the memory grows. >=20 > Happy you got there somehow :) >=20 > Marcin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1519415997.5031.2.camel>