Skip to content

Instantly share code, notes, and snippets.

@maiha
Created June 30, 2009 20:23
Show Gist options
  • Select an option

  • Save maiha/138403 to your computer and use it in GitHub Desktop.

Select an option

Save maiha/138403 to your computer and use it in GitHub Desktop.
% jruby -J-Xmx2048m =merb -i
irb(main):001:0> buf = File.read('/tmp/1GB.txt'); buf.size
Error: Your application used more memory than the safety cap of 2048m.
Specify -J-Xmx####m to increase it (#### = cap size in MB).
Specify -w for full OutOfMemoryError stack trace
% jruby -J-Xmx4096m =merb -i
Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.
Could not create the Java virtual machine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment