Rails & HTMLDoc - Error: Cannot allocate memory - htmldoc

Hi Guys,

I'm converting HTML file by HTMLDoc and I'm getting the error below.
Does anyone know how to solve this problem?

HTML filesize: 7.5 MB

Thanks,

Error Message: