Skip to content

Instantly share code, notes, and snippets.

@mizzy
Created March 24, 2012 17:40
Show Gist options
  • Select an option

  • Save mizzy/2185475 to your computer and use it in GitHub Desktop.

Select an option

Save mizzy/2185475 to your computer and use it in GitHub Desktop.

I4PC + Unicorn のメモリ使用量

試したのは Ruby 1.9.2p290 だったと思う。

起動直後(preload_app false)

                              RSS  Shared
---------------------------------------------
17735 unicorn               21476    6600 (30%)
17761 unicorn               47260    8712 (18%)
17764 unicorn               47264    8712 (18%)
---------------------------------------------
total                      116000   24024 (20%)

起動直後(preload_app true)

                              RSS  Shared
---------------------------------------------
17827 unicorn               48552   43296 (89%)
17865 unicorn               44620   42428 (95%)
17868 unicorn               44620   42424 (95%)
---------------------------------------------
total                      137792  128148 (93%)

しばらく触ってみると、以下のようになった。

                              RSS  Shared
---------------------------------------------
17827 unicorn               48552   23612 (48%)
17865 unicorn               61028   23900 (39%)
17868 unicorn               63652   23932 (37%)
---------------------------------------------
total                      173232   71444 (41%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment