[Backgroundrb-devel] Question on number of processes engendered by BDRb

Raghu Srinivasan raghu.srinivasan at gmail.com
Sat Jul 5 02:53:48 EDT 2008


I have two workers (ie two files in my RAILS_ROOT/lib/workers directory) on
my Rails app. When I run a top on my box, I see *three* processes called
packer_worker_r. Shouldn't I just be having two? What is the third process
for?

Here is an extract of the output from my top command. The PIDs are 7084,
7085 and 7083.
============================================
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
10961 raghus    15   0  193m 110m 3508 S    0 10.8   0:52.87 mongrel_rails
10971 raghus    15   0  188m 107m 3440 S    0 10.5   0:50.61 mongrel_rails
11013 raghus    15   0  179m 103m 3348 S    0 10.1   0:45.18 mongrel_rails
* 7084 raghus    15   0  152m  73m 2036 S   11  7.2 116:31.68
packet_worker_r*
11129 raghus    15   0  134m  58m 3336 S    0  5.7   0:05.20 mongrel_rails
* 7085 raghus    15   0  131m  53m 2020 S    0  5.2   2:23.61
packet_worker_r*
 5094 mysql     15   0  215m  38m 3272 S    0  3.7  44:13.99 mysqld
* 7083 raghus    15   0 97.9m  36m 1192 S    0  3.5   2:28.98
packet_worker_r*
 7081 raghus    15   0 98.3m  34m 1036 S    0  3.4   3:21.40 ruby
10996 raghus    15   0 55820  12m 1340 S    0  1.2   0:06.16 god
11091 raghus    15   0 19748 3728 1384 S    0  0.4   0:00.07 bash
11088 root      16   0 51376 2532 1976 S    0  0.2   0:00.01 sshd
11330 postfix   16   0 38660 1992 1572 S    0  0.2   0:00.00 pickup
 7110 www-data  15   0 28568 1476  568 S    0  0.1   0:03.19 nginx
11
..............
============================================

Thanks,

Raghu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080704/84585011/attachment-0001.html>


More information about the Backgroundrb-devel mailing list