Generate RDOC for rails

Why does my attempts to generate RDoc for Rails end up so badly.
The processs size grows to 1.6GB and then I have to kill it.

Pratik had a recipe, I remember.