Perlçã®LLã§ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ããæ¸ãã¦ããã¨ãæ®éã¯ãã«ãããã»ã¹ã¢ãã« (apache ãªã prefork ã¨ã) ã§éç¨ãããã¨ã«ãªãã¨æããã§ãããããã©ãã ãã¡ã¢ãªã使ã£ã¦ããããã£ã¦ããã®ã¯ãã¥ã¼ãã³ã°ã«ããã¦éè¦ã«ãªã£ã¦ããããã (ããããªããã¨æã) ãã©ãããããã¡ã¢ãªã®ç·ä½¿ç¨éãã©ããã£ã¦æ¸¬å®ããã®ãã 20:20追è¨: PSSã使ã£ã¦ã¯ã³ã©ã¤ãã¼ã§æ¸¬å®ããã®ãç°¡å (ã³ã¡ã³ãæ¬åç §)ãkosakiãããããã¨ããããã¾ãã $ sudo perl -le 'for my $p (@ARGV) { open my $fh, "< /proc/$p/smaps" or die $!; map { /^Pss:\s*(\d+)/i and $s += $1 } <$fh> } print $s' `pgrep plackup` 914325以ä¸ã¯ååæ稿æ
{{#tags}}- {{label}}
{{/tags}}