manveru (owner)

Fork Of

gist: 61840 by Pistos 100% CPU with Thin and Ruby...

Revisions

gist: 62603 Download_button fork
public
Public Clone URL: git://gist.github.com/62603.git
Embed All Files: show embed
README #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
With this code, CPU usage shoots to 100% when serving the index page.
 
 
 
% gem19 list -l
 
*** LOCAL GEMS ***
 
daemons (1.0.10)
diakonos (0.8.7)
eventmachine (0.12.5)
rack (0.9.1)
ramaze (2009.01)
thin (1.0.0)
 
% ruby19 --version
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
 
 
public/style.css #
1
/* No actual CSS needed */
start.rb #
1
2
3
4
5
6
7
8
9
10
require 'rubygems'
require 'ramaze'
 
class MainController < Ramaze::Controller
  def index
    %{ <link rel="stylesheet" href="/style.css" type="text/css" media="screen"/> }
  end
end
 
Ramaze.start :adapter => :thin