Hi Alex,

My ISP only has 1.8.5 and Rails 2.1.
I think there is a logic error somewhere in my code, prior to about a
week ago, the site was functioning fine.

If someone has any ideas on how to debug the 99% CPU usage, I'd be
interested in hearing.

Anthony

On Fri, Oct 10, 2008 at 2:50 PM, Alex Malinovich
<[EMAIL PROTECTED]> wrote:
>
> 1.8.5? Wow. That's pretty old. I wouldn't think that that would be the
> problem, but it certainly couldn't hurt to upgrade to something a bit
> more recent. Unless you're using rails 2.1 exclusively I'd suggest
> 1.8.6 p287 and see if that resolves your problem.
>
> On Oct 10, 1:35 pm, "Anthony Ettinger" <[EMAIL PROTECTED]> wrote:
>> $ ruby -v
>> ruby 1.8.5 (2006-08-25) [i386-linux]
>>
>> On Fri, Oct 10, 2008 at 11:15 AM, Alex Malinovich
>>
>>
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > Anthony,
>>
>> > What version of Ruby are you running? (ruby -v) I've seen this problem
>> > quite a few times with 1.8.6 p114.
>>
>> > On Oct 8, 10:31 pm, "Anthony Ettinger" <[EMAIL PROTECTED]> wrote:
>> >> Monit doesn't really solve the problem though. I've also heard
>> >> mod_rails isn't ready for primetime yet.
>>
>> >> I'd like to know what is causing it to eat up memory and CPU usage so
>> >> badly...as it ran fine for the last few weeks up until the last few
>> >> releases.
>>
>> >> I've read that it could be anything from a bad regex to low disk
>> >> space, gdb debugging rails didn't give me much that a simpleton like
>> >> myself could understand:
>>
>> >>http://weblog.jamisbuck.org/2006/9/22/inspecting-a-live-ruby-processh...
>>
>> >> On Tue, Oct 7, 2008 at 6:36 PM, seth b <[EMAIL PROTECTED]> wrote:
>>
>> >> > Run monit on it and restart the fuckers when they aren't playing nicely.
>>
>> >> > Here's a sample of my old monit config that did just that:
>> >> >http://pastie.org/287363
>>
>> >> > ...OR switch to mod_rails. I just made the switch and I'm loving not
>> >> > having to slap my mongrels around or deal with monit madness anymore.
>>
>> >> > --------------------
>> >> > seth - subimage llc
>> >> > -----
>> >> >http://sublog.subimage.com
>> >> > -----
>> >> > Cashboard - Estimates, invoices, and time tracking software - for free!
>> >> >http://www.getcashboard.com
>> >> > -----
>> >> > Substruct - Open source RoR e-commerce software.
>> >> >http://code.google.com/p/substruct/
>>
>> >> > On Tue, Oct 7, 2008 at 6:26 PM, Anthony Ettinger <[EMAIL PROTECTED]> 
>> >> > wrote:
>>
>> >> >>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+   PPID
>> >> >> COMMAND
>> >> >> 12565 ettinger  39   0 1110m 1.1g 2680 R 99.9 54.4  21:53.77     1
>> >> >> /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -C
>> >> >> /home/ettinger/directoryofdirect
>>
>> >> >> CPU: 99.9%
>> >> >> Mem: 54.4%
>>
>> >> >> What can I do to bring this back inline with an acceptable value?
>>
>> >> >> --
>> >> >> Anthony Ettinger
>> >> >> 408-656-2473
>> >> >>http://anthony.ettinger.name
>>
>> >> --
>> >> Anthony Ettinger
>> >> 408-656-2473http://anthony.ettinger.name
>>
>> --
>> Anthony Ettinger
>> 408-656-2473http://anthony.ettinger.name
> >
>



-- 
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to