Created
June 30, 2009 20:23
-
-
Save maiha/138403 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % 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