Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Stray 100% CPU Usage
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  24 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
shmay  
View profile  
 More options Nov 17 2008, 7:26 pm
From: shmay <kmurp...@hotmail.com>
Date: Mon, 17 Nov 2008 16:26:21 -0800 (PST)
Local: Mon, Nov 17 2008 7:26 pm
Subject: Stray 100% CPU Usage
I recently deployed an app with Passenger and MRI.  And I've been
getting some seemingly random 100% CPU usages, which, looking through
some threads, has happened to others.

What should I do?

Thanks you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kennon Ballou  
View profile  
 More options Nov 18 2008, 4:03 am
From: Kennon Ballou <ken...@angryturnip.com>
Date: Tue, 18 Nov 2008 01:03:29 -0800 (PST)
Local: Tues, Nov 18 2008 4:03 am
Subject: Re: Stray 100% CPU Usage
This definitely happens to me and is the main reason why I have to
keep switching from REE back to normal Ruby (I really wish I could use
REE consistently, it's much faster and memory-efficient).

Does anyone know how to debug an already running passenger thread? It
happens so sporadically that I have no idea how to reproduce it. Is
there some way to attach to a running passenger process a la gdb?

Btw, Phusion do great work, passenger is amazing and once I can use
REE consistently, it will be amazing as well!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 18 2008, 7:42 am
From: Hongli Lai <hon...@phusion.nl>
Date: Tue, 18 Nov 2008 13:42:50 +0100
Local: Tues, Nov 18 2008 7:42 am
Subject: Re: Stray 100% CPU Usage

Kennon Ballou wrote:
> This definitely happens to me and is the main reason why I have to
> keep switching from REE back to normal Ruby (I really wish I could use
> REE consistently, it's much faster and memory-efficient).

> Does anyone know how to debug an already running passenger thread? It
> happens so sporadically that I have no idea how to reproduce it. Is
> there some way to attach to a running passenger process a la gdb?

> Btw, Phusion do great work, passenger is amazing and once I can use
> REE consistently, it will be amazing as well!

shmay, Kennon, what platforms are you running REE on?

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
amos  
View profile  
 More options Nov 18 2008, 4:08 pm
From: amos <famosea...@gmail.com>
Date: Tue, 18 Nov 2008 13:08:26 -0800 (PST)
Local: Tues, Nov 18 2008 4:08 pm
Subject: Re: Stray 100% CPU Usage
This happens to us a lot. Some of the things we've tried to do to fix
it:

- used 'conservative' spawning method
- used regular ruby
- wrote a bash script to find and kill these runaway processes (we've
now isolated the runaway processes to machines that handle media
uploads)

I tried once to use gdb to identify the issue. I got as far as seeing
an infinite loop in Ruby GC's finalize_list, but that was with REE on
Rails 1.2 (we've since upgraded). I haven't used REE on production
machines since. If you're looking for better performance with regular
ruby, try applying stefan kaes' GC patch.

On Nov 18, 1:03 am, Kennon Ballou <ken...@angryturnip.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 18 2008, 4:51 pm
From: Hongli Lai <hon...@phusion.nl>
Date: Tue, 18 Nov 2008 22:51:51 +0100
Local: Tues, Nov 18 2008 4:51 pm
Subject: Re: Stray 100% CPU Usage

amos wrote:
> This happens to us a lot. Some of the things we've tried to do to fix
> it:

> - used 'conservative' spawning method
> - used regular ruby
> - wrote a bash script to find and kill these runaway processes (we've
> now isolated the runaway processes to machines that handle media
> uploads)

> I tried once to use gdb to identify the issue. I got as far as seeing
> an infinite loop in Ruby GC's finalize_list, but that was with REE on
> Rails 1.2 (we've since upgraded). I haven't used REE on production
> machines since. If you're looking for better performance with regular
> ruby, try applying stefan kaes' GC patch.

Hi Amos.

Do you happen to have a spare staging server around on which you can
reproduce this problem? So far we haven't been able to find the cause of
this problem, or even seen the problem ourselves. If you had saved the
gdb backtrace somewhere then we'd be happy to take a look at it.

Also, finalize_list does not have any infinite loops. :) But I don't
exclude the possibility that something very weird might be going on
which causes finalize_list to freeze anyway.

Finally, what platform are your servers running on?

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shmay  
View profile  
 More options Nov 18 2008, 6:36 pm
From: shmay <kmurp...@hotmail.com>
Date: Tue, 18 Nov 2008 15:36:05 -0800 (PST)
Local: Tues, Nov 18 2008 6:36 pm
Subject: Re: Stray 100% CPU Usage
I'm using regular MRI, on a Linode Ubuntu 360.  Is that what you
meant?

I'm a noob, so it's probably me just doing something stupid, but it's
something I really want fixed.  Is there some logs I could post, or
something?

On Nov 18, 1:51 pm, Hongli Lai <hon...@phusion.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 18 2008, 7:10 pm
From: Hongli Lai <hon...@phusion.nl>
Date: Wed, 19 Nov 2008 01:10:40 +0100
Local: Tues, Nov 18 2008 7:10 pm
Subject: Re: Stray 100% CPU Usage

shmay wrote:
> I'm using regular MRI, on a Linode Ubuntu 360.  Is that what you
> meant?

Actually I was referring to Ruby Enterprise Edition.

But if you need to debug an application that has gone crazy, please try
to generate a backtrace for it and post it to this mailing list. You can
do it as follows:
1. Identify the PID of the process that has gone crazy.
2. Type:
sudo gdb
attach 12345     <--- replace "12345" with the actual PID
thread apply all bt

Please copy & paste the result.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
amos  
View profile  
 More options Nov 18 2008, 9:35 pm
From: amos <famosea...@gmail.com>
Date: Tue, 18 Nov 2008 18:35:23 -0800 (PST)
Local: Tues, Nov 18 2008 9:35 pm
Subject: Re: Stray 100% CPU Usage
Here's where I originally posted the stack trace:

http://groups.google.com/group/emm-ruby/browse_thread/thread/c91b52e2...

We're using:

Centos 5 x86_64
Rails 2.1.0 (although the above trace was in Rails 1.2.3)

Some libraries:
five_runs memcache-client with our crc32 extension (http://github.com/
fiveruns/memcache-client/tree/master)
our version of data_fabric (which had some issues with passenger
reopening db connections in spawn_server since data_fabric does not
define a :production db connection)
rmagick
hpricot

I can't reproduce this problem on a staging server, only production
ones. I can possibly give you access to a live machine in a hanging
state if you contact me directly.

On Nov 18, 4:10 pm, Hongli Lai <hon...@phusion.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 19 2008, 5:49 am
From: Hongli Lai <hon...@phusion.nl>
Date: Wed, 19 Nov 2008 11:49:25 +0100
Local: Wed, Nov 19 2008 5:49 am
Subject: Re: Stray 100% CPU Usage

amos wrote:
> Here's where I originally posted the stack trace:

> http://groups.google.com/group/emm-ruby/browse_thread/thread/c91b52e2...

Thanks. I seem to have missed that one.

> We're using:

> Centos 5 x86_64
> Rails 2.1.0 (although the above trace was in Rails 1.2.3)

Are other people who experience the same problem on 64-bit as well?

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roderick van Domburg  
View profile  
 More options Nov 19 2008, 5:49 am
From: Roderick van Domburg <r.s.a.vandomb...@nedforce.nl>
Date: Wed, 19 Nov 2008 11:49:20 +0100
Local: Wed, Nov 19 2008 5:49 am
Subject: RE: Stray 100% CPU Usage
We're running REE and Passenger on several 64-bit CentOS 5.2 boxes and have
not experienced this issue. That said, the applications on those boxes do
not use memcache.

Kind regards,

Roderick van Domburg
http://www.nedforce.com

-----Oorspronkelijk bericht-----
Van: phusion-passenger@googlegroups.com
[mailto:phusion-passenger@googlegroups.com] Namens Hongli Lai
Verzonden: woensdag 19 november 2008 11:49
Aan: phusion-passenger@googlegroups.com
Onderwerp: Re: Stray 100% CPU Usage

amos wrote:
> Here's where I originally posted the stack trace:

http://groups.google.com/group/emm-ruby/browse_thread/thread/c91b52e2...
5/6bb0eaf6b51f3486?lnk=gst&q=finalize_list#6bb0eaf6b51f3486

Thanks. I seem to have missed that one.

> We're using:

> Centos 5 x86_64
> Rails 2.1.0 (although the above trace was in Rails 1.2.3)

Are other people who experience the same problem on 64-bit as well?

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shmay  
View profile  
 More options Nov 19 2008, 6:55 pm
From: shmay <kmurp...@hotmail.com>
Date: Wed, 19 Nov 2008 15:55:44 -0800 (PST)
Local: Wed, Nov 19 2008 6:55 pm
Subject: Re: Stray 100% CPU Usage
How do I determine which process is causing the problem?

On Nov 18, 4:10 pm, Hongli Lai <hon...@phusion.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
amos  
View profile  
 More options Nov 19 2008, 7:54 pm
From: amos <famosea...@gmail.com>
Date: Wed, 19 Nov 2008 16:54:04 -0800 (PST)
Local: Wed, Nov 19 2008 7:54 pm
Subject: Re: Stray 100% CPU Usage
I'm running a test with REE again. I'll try to give you another stack
trace if I see a runaway process.

On Nov 19, 2:49 am, Hongli Lai <hon...@phusion.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 20 2008, 4:21 am
From: Hongli Lai <hon...@phusion.nl>
Date: Thu, 20 Nov 2008 10:21:49 +0100
Local: Thurs, Nov 20 2008 4:21 am
Subject: Re: Stray 100% CPU Usage

amos wrote:
> Here's where I originally posted the stack trace:

> http://groups.google.com/group/emm-ruby/browse_thread/thread/c91b52e2...

Thanks for the link. I seem to have missed that message.

> We're using:

> Centos 5 x86_64
> Rails 2.1.0 (although the above trace was in Rails 1.2.3)

> Some libraries:
> five_runs memcache-client with our crc32 extension (http://github.com/
> fiveruns/memcache-client/tree/master)
> our version of data_fabric (which had some issues with passenger
> reopening db connections in spawn_server since data_fabric does not
> define a :production db connection)
> rmagick
> hpricot

I've been spending some time stress testing a sample Rails app which
uses FiveRuns's memcache-client and RMagick with REE on 64-bit Ubuntu
8.10 server. So far I haven't been able to find any stability issues.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 20 2008, 4:48 am
From: Hongli Lai <hon...@phusion.nl>
Date: Thu, 20 Nov 2008 10:48:10 +0100
Local: Thurs, Nov 20 2008 4:48 am
Subject: Re: Stray 100% CPU Usage

amos wrote:
> I'm running a test with REE again. I'll try to give you another stack
> trace if I see a runaway process.

OK.

The stack trace you gave previously might not be accurate because of
compiler optimizations. Could you install REE without optimizations? You
can do that by setting the CFLAGS environment variable to an empty
string, then running the installer:

   export CFLAGS=
   ./installer

And I'm also wondering whether your REE installation uses the system
Ruby's gems. By default, REE adds the system Ruby's gem path to its own
gem path, allowing it to use already-installed gems. But I've received a
few reports from users who say that this can cause crashes when REE
tries to load a native extension that's compiled for the system's Ruby.
So you are advised to reinstall all your gems for REE, e.g. with
'/path/to/ree/bin/gem install imagemagick'.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
amos  
View profile  
 More options Nov 21 2008, 1:49 am
From: amos <famosea...@gmail.com>
Date: Thu, 20 Nov 2008 22:49:04 -0800 (PST)
Local: Fri, Nov 21 2008 1:49 am
Subject: Re: Stray 100% CPU Usage
unfortunately or fortunately i haven't been able to reproduce that old
infinite loop. i have a hunch it might when trying to allocate a bunch
of memory real quickly by loading in a ton of ar objects from a db
table. we've since optimized our code and removed a few memory leaks
by limiting the number of models we initialize at one time. i'll try
to do some debugging with the compilation options you gave me.

in the meantime, we still get the 100% usage on our upload servers.
i'm looking at one now. here is the output of strace:

lseek(8, -2, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
lseek(8, -2, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
lseek(8, -2, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
lseek(8, -2, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
....

gdb backtrace is:

#0  0x00000037f0ad1e5b in lseek64 () from /lib64/libc.so.6
#1  0x00000037f0a6b536 in _IO_new_do_write () from /lib64/libc.so.6
#2  0x00000037f0a6c9b2 in _IO_new_file_xsputn () from /lib64/libc.so.6
#3  0x00000037f0a61d8b in fwrite () from /lib64/libc.so.6
#4  0x00000037f1a50835 in rb_io_fptr_finalize () from /usr/lib64/
libruby.so.1.8
#5  0x00000037f1a5673b in rb_io_eof () from /usr/lib64/libruby.so.1.8
#6  0x00000037f1a31731 in rb_exc_jump () from /usr/lib64/libruby.so.
1.8
#7  0x00000037f1a31c38 in rb_exc_jump () from /usr/lib64/libruby.so.
1.8
#8  0x00000037f1a3bd86 in rb_apply () from /usr/lib64/libruby.so.1.8
#9  0x00000037f1a3d65d in rb_apply () from /usr/lib64/libruby.so.1.8
#10 0x00000037f1a31753 in rb_exc_jump () from /usr/lib64/libruby.so.
1.8
#11 0x00000037f1a31c38 in rb_exc_jump () from /usr/lib64/libruby.so.
1.8
#12 0x00000037f1a3bd86 in rb_apply () from /usr/lib64/libruby.so.1.8
#13 0x00000037f1a3fc0c in rb_apply () from /usr/lib64/libruby.so.1.8
#14 0x00000037f1a3c08b in rb_apply () from /usr/lib64/libruby.so.1.8
#15 0x00000037f1a3d65d in rb_apply () from /usr/lib64/libruby.so.1.8
#16 0x00000037f1a31753 in rb_exc_jump () from /usr/lib64/libruby.so.
1.8
#17 0x00000037f1a31c38 in rb_exc_jump () from /usr/lib64/libruby.so.
1.8
#18 0x00000037f1a3bd86 in rb_apply () from /usr/lib64/libruby.so.1.8
#19 0x00000037f1a3e00a in rb_apply () from /usr/lib64/libruby.so.1.8
....

this is with:
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]

i don't know if it's something specific to our system or passenger,
but i don't think it ever happened with mongrel. any suggestions on
how to debug this one further?

On Nov 20, 1:48 am, Hongli Lai <hon...@phusion.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 24 2008, 8:41 am
From: Hongli Lai <hon...@phusion.nl>
Date: Mon, 24 Nov 2008 14:41:42 +0100
Local: Mon, Nov 24 2008 8:41 am
Subject: Re: Stray 100% CPU Usage

I've been spending some time reading the Ruby source code and glibc
source code for clues. I haven't found any so far, but I suspect it
might have something to do with the way we handle Unix sockets.

Could you try the following:
1. Create a script, say '/usr/bin/ruby-wrapper-script', which sets
PASSENGER_NO_ABSTRACT_NAMESPACE_SOCKETS=1 and executes Ruby, like this:

   #!/bin/bash
   export PASSENGER_NO_ABSTRACT_NAMESPACE_SOCKETS=1
   exec ruby "$@"

2. Set the PassengerRuby config option to your wrapper script.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MarcoJ  
View profile  
 More options Nov 24 2008, 9:52 am
From: MarcoJ <m.c.jan...@gmail.com>
Date: Mon, 24 Nov 2008 06:52:09 -0800 (PST)
Local: Mon, Nov 24 2008 9:52 am
Subject: Re: Stray 100% CPU Usage
Over the last two week I have had the 100% cpu usage problem also on
my servers. Traffic has gone up during the last two weeks and also the
number of CPUs has been increased on these machines.

I found out that these cases always have been related to an illegal
seek in my production log. Seems similar to the previous mentioned
strace.

I found an interesting post from ep's blog who had the samen problem
and published a monkey patch that resolved it for him. He mentioned
that it is related to uploading a file: http://ep.blogware.com/blog/_archives/2008/10/14/3930392.html

I haven't tried the monkey patch myself yet. Oh, and I am using
FiveRuns as well, but I am not sure if that is related to the problem.

Hope this helps,

Marco

Stacktrace:

"Illegal seek"
Errno::ESPIPE

        [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/
cgi_process.rb:215:in `flush'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/
cgi_process.rb:215:in `out'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:171:in `handle_request'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:115:in `dispatch'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:126:in `dispatch_cgi'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:9:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
request_handler.rb:38:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_request_handler.rb:163:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
application_spawner.rb:307:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
application_spawner.rb:276:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/utils.rb:
165:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/utils.rb:
163:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/utils.rb:
163:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
application_spawner.rb:274:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/utils.rb:
165:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/utils.rb:
163:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/utils.rb:
163:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
application_spawner.rb:273:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:135:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:112:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:112:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
application_spawner.rb:177:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
framework_spawner.rb:270:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
framework_spawner.rb:263:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
framework_spawner.rb:263:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:135:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:112:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:112:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/railz/
framework_spawner.rb:87:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
spawn_manager.rb:224:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
spawn_manager.rb:219:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
spawn_manager.rb:219:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
spawn_manager.rb:122:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
spawn_manager.rb:253:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/lib/passenger/
abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/bin/passenger-spawn-server:
46

On Nov 24, 2:41 pm, Hongli Lai <hon...@phusion.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 24 2008, 11:20 am
From: Hongli Lai <hon...@phusion.nl>
Date: Mon, 24 Nov 2008 17:20:42 +0100
Local: Mon, Nov 24 2008 11:20 am
Subject: Re: Stray 100% CPU Usage

Very interesting. Can others confirm whether this money patch works and
whether the problem description is correct?

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
amos  
View profile  
 More options Nov 24 2008, 6:16 pm
From: amos <famosea...@gmail.com>
Date: Mon, 24 Nov 2008 15:16:52 -0800 (PST)
Local: Mon, Nov 24 2008 6:16 pm
Subject: Re: Stray 100% CPU Usage
I just implemented the patch on one of our production machines. I'll
respond back later if I feel like it's working.

On Nov 24, 8:20 am, Hongli Lai <hon...@phusion.nl> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
amos  
View profile  
 More options Nov 26 2008, 2:23 pm
From: amos <famosea...@gmail.com>
Date: Wed, 26 Nov 2008 11:23:35 -0800 (PST)
Local: Wed, Nov 26 2008 2:23 pm
Subject: Re: Stray 100% CPU Usage
Looks like the patch totally fixed the problem. Thank you, ep!

On Nov 24, 3:16 pm, amos <famosea...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Nov 26 2008, 2:27 pm
From: Hongli Lai <hon...@phusion.nl>
Date: Wed, 26 Nov 2008 20:27:01 +0100
Local: Wed, Nov 26 2008 2:27 pm
Subject: Re: Stray 100% CPU Usage

amos wrote:
> Looks like the patch totally fixed the problem. Thank you, ep!

Great. I've talked to the Rails core team about this problem, and they
think that fixing it in Rails is probably the best solution.

I still haven't figured out *why* this problem occurs so I'm going to
investigate it a bit more.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Wallace  
View profile  
 More options Jan 7 2009, 2:06 am
From: Jonathan Wallace <jonathan.wall...@gmail.com>
Date: Tue, 6 Jan 2009 23:06:49 -0800 (PST)
Local: Wed, Jan 7 2009 2:06 am
Subject: Re: Stray 100% CPU Usage
On Nov 26 2008, 2:27 pm, Hongli Lai <hon...@phusion.nl> wrote:

> I still haven't figured out *why* this problem occurs so I'm going to
> investigate it a bit more.

For what its worth, we're using:

ruby -v:
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]

passenger 2.0.3

rails 2.1

uname -r:
2.6.18-xenU-ec2-v1.0

on gentoo

and have experienced this issue 3 times in the past two days.  If it
continues to occur, we'll use ep's monkey patch.

 Jonathan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ramon Tayag  
View profile  
 More options Nov 3 2011, 2:11 pm
From: Ramon Tayag <ramon.ta...@gmail.com>
Date: Thu, 3 Nov 2011 11:11:34 -0700 (PDT)
Local: Thurs, Nov 3 2011 2:11 pm
Subject: Re: Stray 100% CPU Usage

I found an ApplicationSpawner that was at 99% for over 5 minutes. I had to
kill it, but before I did, I did what you asked:
https://gist.github.com/1337203


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Kaplan  
View profile  
 More options Feb 8, 6:27 pm
From: Max Kaplan <m...@dynamicdeeds.com>
Date: Wed, 8 Feb 2012 15:27:04 -0800 (PST)
Local: Wed, Feb 8 2012 6:27 pm
Subject: Re: Stray 100% CPU Usage

I had the same issue with a rouge ruby process running at 99% CPU when I
was running passenger 3.0.8.

*I updated the gem to 3.0.11 and recompiled passenger and it seemed to fix
the issue. *

PS. I was running Apache 2 on CentOS


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »