Jedrin wrote in post #1060204:
> On May 9, 2:42pm, Greg Akins <[email protected]> wrote:
>>
>> The default heapsize for the jvm is pretty small. I believe you can pass
>> args to jvm when you start jruby
>>
>> if you do something like -xmx1024m (Not sure that syntax is exactly
>> correct, but it's close) you might get enough. Of course that depends on
>> the size of the file
>>
>> --
>> Greg Akinshttp://twitter.com/akinsgre
>
>  Well, the csv file has something like 1.4 million rows and maybe 20
> columns or something like that. When I get a chance, maybe I'll look
> into that if that seems like the thing to try ..

"When I get a chance, maybe..."???

Greg gave you the answer. A default JVM instance heap space is limited 
to 64 Megabytes. If the file you're loading, plus the memory consumed by 
your application, goes over that memory limit the JVM will report "out 
of memory" and begin exhibiting unpredictable behavior.

It make no difference how much physical RAM your machine might contain. 
The JVM will NOT use more heap space that the maximum defined by the 
-xmx argument (-xmx64m being the default when not specified).

-- 
Posted via http://www.ruby-forum.com/.

-- 
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