Date: Thu, 22 Feb 2018 18:28:25 +0000 From: Marcin Cieslak <saper@saper.info> To: =?ISO-8859-15?Q?Karli_Sj=F6berg?= <karli@inparadise.se> 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: <nycvar.OFS.7.76.6.1802221823530.2659@z.fncre.vasb> In-Reply-To: <1519307212.1980.36.camel@inparadise.se> 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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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 :)
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 :)
Marcin
[-- Attachment #2 --]
0K *H
<0810
`He 0 *H
00HjD\=H
0
*H
0L1 0UGlobalSign Root CA - R310U
GlobalSign10U
GlobalSign0
160615000000Z
240615000000Z0]10 UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G30"0
*H
0
ʰkM
8}feA}; 1M<&8d;rT\dEބqNU{ܣx
Ij:+j;P@q3DG>#cj l1yƆ:43A,DPi\dR0*[x=KtL@Dʢ.(Cu͓(؟PFyxxi26t AYw;>eYM#x d0`0U0'U% 0+++ 0U0 0U'¥zzdco2Ҙ±0U#0K.E$MPc0>+2000.+0"http://ocsp2.globalsign.com/rootr306U/0-0+)'%http://crl.globalsign.com/root-r3.crl0YU R0P0 +2(0A +2_0402+&https://www.globalsign.com/repository/0
*H
wF|NR,ȎwبkEoB"s)!YbUy\a،Ğ8wIrۅJmϦPa9
Q_ A Mz%-Mmf!=EL8TfP&G)\`9\(# $v.OlVGc ViVC7_)P{YXDHKr˟*˜2:
q4wt\I$
ϱ.jp!?00٠N{a90
*H
0]10 UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G30
170525084416Z
200525084416Z0<10Usaper@saper.info10 *H
saper@saper.info0"0
*H
0
÷inYcYuFp\اtyc@/W<lL\@.kWW3Ø٤&55IN15PQdw],(;p..3E }zgAN3̑m\'IR"@{d֘P$'ɹSxi~"5H
dA !ڲQi-̓[73zB&TgˆP?c
V+jAT{'dusѧS]\be3p' F=xG6_{<8([ݤ2 +,+Jr+z!Y%!-
gAJ5*Xoc -!
,xr)b ֆT7w9z͝YIVpNoU`Ale@εL[b-t=lJ)m I# 00U0+00M+0Ahttp://secure.globalsign.com/cacert/gspersonalsign1sha2g3ocsp.crt0=+01http://ocsp2.globalsign.com/gspersonalsign1sha2g30LU E0C0A +2(0402+&https://www.globalsign.com/repository/0 U0 0DU=0;09753http://crl.globalsign.com/gspersonalsign1sha2g3.crl0U0saper@saper.info0U%0++0U^ZB¬(F0U#0'¥zzdco2Ҙ±0
*H
EJ2JyN*Wm{*8_fEe`&t4C$Z$Ԅ;&nU`s'{0iED,WʍI8LN)-ߓfū,wmmθhWobLfLpIk%,7kdA_
@ֵ@ȇDAW-o j;iړ|̠|HZZw_GX)Fqjsʵ3Ķu埰10{0m0]10 UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G3N{a90
`He 0 *H
1 *H
0 *H
1
180222182825Z0/ *H
1" *0ΥLYdApQX/~0y *H
1l0j0 `He*0 `He0 `He0
*H
0*H
0
*H
@0+0
*H
(0
*H
=&}(*m09My=ޗ;(2v4od0_[
ۿGBK≐Z#Ӻp]T())Sܤ($r/嬛_:uGP?}G2-<iŻ=߯TՈW[MGC&G8m.ʫ;rAbBKﯯ)y1<n `B@0S 6<QFGXf(ԠtE7R2YxTJq!V66F: _c`RE}9LA
wD]>A9'-1NPG
KشJ=rBq3d(3rv+w=uk{=YƜ|*S1SPwU|^eJS&W\2{%t9̲i_IwR8-x 1c2J~~ƞ8>s,cn'ܱRt`R̆xҁ=Z
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?nycvar.OFS.7.76.6.1802221823530.2659>
