Friday, 16 August 2013

Can someone explain to me the output of pstree?

Can someone explain to me the output of pstree?

Below is the output of my pstree command. I have 2 unicorn workers,
Sidekiq running concurrency set at 25.
Examining the pids in my app directory, I know that
10366 - sidekiq 974 - unicorn master
Then:
1) Why does sidekiq spawn that many workers? 2) What is 978 and 17699
doing there? 3) If 17698 is the worker, why is there 17702 and 17703?
(Same goes for 26146)
Some context:
I'm using cap unicorn:add_worker/remove_worker pretty frequently, because
I am noticing that the memory is growing continuously. Could this be the
issue where the workers are not removed cleanly?
Thank you!
„¥„Ÿruby,974
„  „¥„Ÿruby,17698
„  „  „¥„Ÿ{ruby},17702
„  „  „¤„Ÿ{ruby},17703
„  „¥„Ÿruby,26146
„  „  „¥„Ÿ{ruby},26150
„  „  „¤„Ÿ{ruby},26151
„  „¥„Ÿ{ruby},978
„  „¤„Ÿ{ruby},17699
„¥„Ÿruby,10366
„  „¥„Ÿ{ruby},10407
„  „¥„Ÿ{ruby},10408
„  „¥„Ÿ{ruby},10409
„  „¥„Ÿ{ruby},10410
„  „¥„Ÿ{ruby},10454
„  „¥„Ÿ{ruby},10455
„  „¥„Ÿ{ruby},10545
„  „¥„Ÿ{ruby},10806
„  „¥„Ÿ{ruby},10807
„  „¥„Ÿ{ruby},10809
„  „¥„Ÿ{ruby},10810
„  „¥„Ÿ{ruby},10811
„  „¥„Ÿ{ruby},10812
„  „¥„Ÿ{ruby},10813
„  „¥„Ÿ{ruby},10814
„  „¥„Ÿ{ruby},10817
„  „¥„Ÿ{ruby},10818
„  „¥„Ÿ{ruby},10819
„  „¥„Ÿ{ruby},10821
„  „¥„Ÿ{ruby},10824
„  „¥„Ÿ{ruby},10825
„  „¥„Ÿ{ruby},10828
„  „¥„Ÿ{ruby},10829
„  „¥„Ÿ{ruby},10830
„  „¥„Ÿ{ruby},10833
„  „¥„Ÿ{ruby},10836
„  „¥„Ÿ{ruby},10838
„  „¥„Ÿ{ruby},10839
„  „¥„Ÿ{ruby},10840
„  „¥„Ÿ{ruby},10843
„  „¥„Ÿ{ruby},10844
„  „¥„Ÿ{ruby},10860
„  „¥„Ÿ{ruby},10862
„  „¥„Ÿ{ruby},10863
„  „¥„Ÿ{ruby},10864
„  „¥„Ÿ{ruby},10866
„  „¥„Ÿ{ruby},10867
„  „¥„Ÿ{ruby},10872
„  „¥„Ÿ{ruby},10874
„  „¥„Ÿ{ruby},10878
„  „¥„Ÿ{ruby},10879
„  „¥„Ÿ{ruby},10881
„  „¥„Ÿ{ruby},10882
„  „¥„Ÿ{ruby},16646
„  „¥„Ÿ{ruby},16647
„  „¥„Ÿ{ruby},16648
„  „¥„Ÿ{ruby},16649
„  „¥„Ÿ{ruby},16650
„  „¥„Ÿ{ruby},16658
„  „¥„Ÿ{ruby},16659
„  „¤„Ÿ{ruby},16660

No comments:

Post a Comment