The obscure world of Jruby — JRuby with Rails Under a Microscope
This is a guide for understanding and using Jruby with Ruby on Rails.
It become much easier to understand jruby errors once you understand how options, garbage collectors and JVM works. I spent a lot of time working with jruby recently and I decided to come up with a post that summarize any information I may have found online to better understand what I was dealing with. Most of the information below are a combination of blog posts and articles that helped me better understand how Jruby works under the hood.
What you’ll find in this post:
- What is Ruby?
- Why Should I Use JRuby?
- How to install JRuby?
- What’s JRuby -S
- Where to put the JVM Options?
- What’s the difference between JAVA_OPTS and JRUBY_OPTS?
- JVM options cheat-sheet
- Understanding java.lang.OutOfMemoryError: GC overhead limit exceeded — How Garbage Collection works?
- Solution for OutOfMemoryError in Java & Jruby
- How to solve java.lang.OutOfMemoryError: Java heap space
- How to solve java.lang.OutOfMemoryError: PermGen space
- The main points you should know…