On 10/16/07, Ola Bini <[EMAIL PROTECTED]> wrote:
>
> Christian Seiler wrote:
> > You mean doing something like this (I'm new to Ruby)?
> >
> > begin
> > app.get '/shop/viewCategory.shtml?category=DOGS'
> > rescue Exception => e
> > puts e.to_s
> > end
> >
> > No error reported (running slightly slower). Maybe I'll play with the
> > JIT-logging options later.
> No, that won't work, you need to wrap it within the perform_action:
>
>
> class ActionController::Base
>
>   def perform_action
>
> #snip
>
>     rescue => e
>       p e
>   end
>
> end
>
>
ah, I need to get used to this open-classes thing ;-) So I copied the
perform_action code from AR/base.rb,
pasted it to the benchmark script and added the rescue statement
-> no error output

I don't really know what to do. One thing that worries me a bit is that all
of you guys seem to be using
OS-X (JVM-wise, it's probably a good OS ;-). If anyone running an original
JVM from Sun could confirm
that Petstore if faster with JIT, then I'd know that really something is
wrong with my setup (probably
not very likely that it's the JVM, but still it's one possible cause to
exclude) and I can stop bothering
you with my weird case (although other users may step into the same pit).

Reply via email to