> > 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 viahttp://www.ruby-forum.com/.
So I launched my sinatra app like this and from my google searches the -J arg looks like what I want. jruby -J-Xmx1024m -S recordset.rb 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: Error occurred during initialization of VM Could not reserve enough space for object heap JVM creation failed -- 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.

