On Wed, May 9, 2012 at 4:42 PM, Jedrin <[email protected]> wrote:

>
>  When I tried to download the csv file (which the server puts into the
> zip file and then crashes),
> I got the same heap space error, but it seemed like it did run longer
> before it crashed. II try to increase that number much higher than
> 1024m, I get:
>

The heap contains all the objects created for the application.. In this
case, it looks like your file is still too big


> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> JVM creation failed
>

This means that you tried to allocate more than is available on the machine

Are you doing this for a single load, or will it be an application that
will commonly receive large files?

If it's the latter, I'd probably try to redesign the code you're using to
load the files.  Sounds like this is part of a third party gem?  If that's
the case, maybe they have some mechanism for handling larger files?

-- 
Greg Akins
http://twitter.com/akinsgre

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to