# jRuby support

**URL:** <https://community.miniprofiler.com/t/jruby-support/102>\
**Category:** uncategorized\
**Created:** [July 19, 2012, 6:32am UTC](https://community.miniprofiler.com/t/jruby-support/102 "2012-07-19T06:32:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Hauck](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/matt_hauck/32/1026_2.png) [@Matt\_Hauck](https://community.miniprofiler.com/u/Matt_Hauck)\
**Post date:** [July 19, 2012, 6:32am UTC](https://community.miniprofiler.com/t/jruby-support/102/1 "2012-07-19T06:32:48Z")

</div>

Does miniprofiler work in jruby as well? I just tried firing it up now (in 1.9 mode) and got the following:

```
 NoMethodError: undefined method `bytesize' for #<ActionDispatch::Response:0xd3db5a>
 org/jruby/RubyBasicObject.java:1688:in ` __send__' 
 /Users/mhauck/.rvm/gems/jruby-1.6.5.1/gems/rack-mini-profiler-0.1.7/lib/mini_profiler/body_add_proxy.rb:18:in ` method_missing'
 /Users/mhauck/.rvm/gems/jruby-1.6.5.1/gems/rack-1.2.5/lib/rack/utils.rb:276:in `bytesize'
 /Users/mhauck/.rvm/gems/jruby-1.6.5.1/gems/rack-1.2.5/lib/rack/content_length.rb:22:in `call'
 org/jruby/RubyArray.java:1612:in `each'
 org/jruby/RubyEnumerable.java:830:in `inject'
 /Users/mhauck/.rvm/gems/jruby-1.6.5.1/gems/rack-1.2.5/lib/rack/content_length.rb:22:in `call'
 /Users/mhauck/.rvm/gems/jruby-1.6.5.1/gems/rack-1.2.5/lib/rack/handler/webrick.rb:52:in `service'
 /Users/mhauck/.rvm/rubies/jruby-1.6.5.1/lib/ruby/1.9/webrick/httpserver.rb:111:in `service'
 /Users/mhauck/.rvm/rubies/jruby-1.6.5.1/lib/ruby/1.9/webrick/httpserver.rb:70:in `run'
 /Users/mhauck/.rvm/rubies/jruby-1.6.5.1/lib/ruby/1.9/webrick/server.rb:183:in `start_thread'
```

---

<div class="post-metadata">

**Author:** ![Matt\_Hauck](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/matt_hauck/32/1026_2.png) [@Matt\_Hauck](https://community.miniprofiler.com/u/Matt_Hauck)\
**Post date:** [July 19, 2012, 7:23am UTC](https://community.miniprofiler.com/t/jruby-support/102/2 "2012-07-19T07:23:46Z")

</div>

Looks like the issue was with Rails being old (3.0.10). I’m on 3.2.6 and it works fine now.
