I would turn on debug for active record and see if you can correlated the spikes of the cpu with the backgroundrb call to the db queue since you are using a persistant queue.<br><br>Have a tail of your log file open and another window with top.<br>
<br>-Samer Masry<br>dryBlis<br><br><div class="gmail_quote">On Thu, Feb 5, 2009 at 12:43 PM, Christian Billen <span dir="ltr">&lt;<a href="mailto:cbillen@warmlyyours.com">cbillen@warmlyyours.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br clear="all"><br><div>Well I disabled the schedule for all the workers, so all i have left in backgrounddrb.yml is</div><div><br></div><div><br></div><div>When I start backgrounddrb on Ubuntu 8.10 I get the 4-5% cpu humming on packetworker and backgrounddrb. &nbsp;I get this issue also on my rails app running on Mac OS X 10.5</div>

<div><br></div><div>This is all I have in my backgrounddrb.yml:</div><div><br></div><div><div class="Ih2E3d"><div>:backgroundrb:&nbsp;</div><div>&nbsp;&nbsp;:ip: 0.0.0.0</div><div>&nbsp;&nbsp;:port: 11006</div><div>&nbsp;&nbsp;</div></div><div>gem versions:</div>
<div><br></div><div>
rails (2.2.2)<br></div><div>packet (0.1.14)<br></div><div>chronic (0.2.3)<br></div><div><br></div><div>Background drb installed from</div><div><br></div><div>sudo ./script/plugin install git://<a href="http://github.com/gnufied/backgroundrb.git" target="_blank">github.com/gnufied/backgroundrb.git</a>&nbsp;<br>

</div><div><br></div><div>Since no background drb workers are running at all I do not know how to profile this as you suggest.</div><div><br></div><div>Where else could look to determine where this is coming from?<br></div>

<div><br></div></div><div>Thank you</div><div><div class="Ih2E3d"><br>Christian Billen<br>Director of IT<br>Warmlyyours.com, inc.<br> <br>Phone: (800) 875-5285 ext.800<br>Fax: &nbsp; &nbsp; &nbsp;(847) 550-2600<br>Email: &nbsp; <a href="mailto:cbillen@warmlyyours.com" target="_blank">cbillen@warmlyyours.com</a><br>

<br>WarmlyYours<br>Honeywell authorized licensee<br>2 Corporate Dr., Suite 100<br>Long Grove, Illinois 60047<br> <br>Visit the WarmlyYours website at: <a href="http://www.warmlyyours.com" target="_blank">www.warmlyyours.com</a><br>
 <br>24/7 Installation Support • Lifetime Technical Assistance • Free Design Service<br>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.<br>


<br><br></div><div><div></div><div class="Wj3C7c"><div class="gmail_quote">On Thu, Feb 5, 2009 at 4:26 AM, hemant <span dir="ltr">&lt;<a href="mailto:gethemant@gmail.com" target="_blank">gethemant@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I doubt there would be a problem with bdrb. However I would suggest<br>
you to run your program with ruby-prof or use one of the memory<br>
profiles (bleakhouse).<br>
<br>
Try to reduce the case and paste your worker code.<br>
<div><div></div><div><br>
<br>
On Wed, Feb 4, 2009 at 10:56 PM, Christian Billen<br>
&lt;<a href="mailto:cbillen@warmlyyours.com" target="_blank">cbillen@warmlyyours.com</a>&gt; wrote:<br>
&gt; Good morning list,<br>
&gt; We are a new user of BackgroundDrb and we use it to run specific cron-like<br>
&gt; jobs at certain times of the day<br>
&gt; What we&#39;ve been noticing is that even when no jobs are running,<br>
&gt; backgrounddrb will be running and &#39;humming&#39; . &nbsp;This happen as soon as<br>
&gt; background drb is started. Notice the CPU usage for it and packet worker<br>
&gt; will be between 4% to 7%<br>
&gt; &nbsp; PID USER &nbsp; &nbsp; &nbsp;PR &nbsp;NI &nbsp;VIRT &nbsp;RES &nbsp;SHR S %CPU %MEM &nbsp; &nbsp;TIME+ &nbsp;COMMAND<br>
&gt;<br>
&gt;<br>
&gt; 22523 heatwave &nbsp;20 &nbsp; 0 &nbsp;284m 134m 1292 S &nbsp; &nbsp;3 &nbsp;6.6 &nbsp; 0:01.94 ruby<br>
&gt;<br>
&gt;<br>
&gt; 22524 heatwave &nbsp;20 &nbsp; 0 99.7m &nbsp;41m 3200 S &nbsp; &nbsp;1 &nbsp;2.0 &nbsp; 0:01.68 packet_worker_r<br>
&gt;<br>
&gt;<br>
&gt; My packet gem is at this release:<br>
&gt; packet (0.1.14)<br>
&gt;<br>
&gt; My backgrounddrb is at this release:<br>
&gt; 1.1<br>
&gt;<br>
&gt; Running on ubuntu 8.10 x86 on slicehost<br>
&gt; Here&#39;s our backgrounddrb.xml, i&#39;ve tried with or without debug, as you can<br>
&gt; see the script are only running once a day.<br>
&gt; :backgroundrb:<br>
&gt; &nbsp; :ip: 0.0.0.0<br>
&gt; &nbsp; :port: 11006<br>
&gt; &nbsp; :debug_log: true<br>
&gt; :schedules:<br>
&gt; &nbsp; :order_shipped_worker:<br>
&gt; &nbsp; &nbsp; :complete_orders:<br>
&gt; &nbsp; &nbsp; &nbsp; :trigger_args: 0 30 21 * * * *<br>
&gt; &nbsp; &nbsp; :reconcile_committed_items:<br>
&gt; &nbsp; &nbsp; &nbsp; :trigger_args: 0 0 22 * * * *<br>
&gt; &nbsp; &nbsp; :check_for_receipts:<br>
&gt; &nbsp; &nbsp; &nbsp; :trigger_args: 0 30 22 * * * *<br>
&gt; &nbsp; :exchange_rates_worker:<br>
&gt; &nbsp; &nbsp; :get_exchange_rates_for_today:<br>
&gt; &nbsp; &nbsp; &nbsp; :trigger_args: 0 0 6 * * * *<br>
&gt; &nbsp; &nbsp; :get_all_exchange_rates:<br>
&gt; &nbsp; &nbsp; &nbsp; :trigger_args: 0 30 6 1 * * *<br>
&gt;<br>
&gt; Can anyone shed some light on how to debug or is this cpu usage normal?<br>
&gt; Thank you<br>
&gt;<br>
&gt; Christian Billen<br>
&gt; Director of IT<br>
&gt; Warmlyyours.com, inc.<br>
&gt;<br>
&gt; Phone: (800) 875-5285 ext.800<br>
&gt; Fax: &nbsp; &nbsp; &nbsp;(847) 550-2600<br>
&gt; Email: &nbsp; <a href="mailto:cbillen@warmlyyours.com" target="_blank">cbillen@warmlyyours.com</a><br>
&gt;<br>
&gt; WarmlyYours<br>
&gt; Honeywell authorized licensee<br>
&gt; 2 Corporate Dr., Suite 100<br>
&gt; Long Grove, Illinois 60047<br>
&gt;<br>
&gt; Visit the WarmlyYours website at: <a href="http://www.warmlyyours.com" target="_blank">www.warmlyyours.com</a><br>
&gt;<br>
&gt; 24/7 Installation Support • Lifetime Technical Assistance • Free Design<br>
&gt; Service<br>
&gt; This email and any files transmitted with it are confidential and intended<br>
&gt; solely for the use of the individual or entity to whom they are addressed.<br>
&gt; If you have received this email in error please notify the system manager.<br>
&gt; Please note that any views or opinions presented in this email are solely<br>
&gt; those of the author and do not necessarily represent those of the company.<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Backgroundrb-devel mailing list<br>
&gt; <a href="mailto:Backgroundrb-devel@rubyforge.org" target="_blank">Backgroundrb-devel@rubyforge.org</a><br>
&gt; <a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel" target="_blank">http://rubyforge.org/mailman/listinfo/backgroundrb-devel</a><br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Let them talk of their oriental summer climes of everlasting<br>
conservatories; give me the privilege of making my own summer with my<br>
own coals.<br>
<br>
<a href="http://gnufied.org" target="_blank">http://gnufied.org</a><br>
</font></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Backgroundrb-devel mailing list<br>
<a href="mailto:Backgroundrb-devel@rubyforge.org">Backgroundrb-devel@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel" target="_blank">http://rubyforge.org/mailman/listinfo/backgroundrb-devel</a><br></blockquote></div><br>