How to make OutOfMemoryError occur on Linux JVM 64bit
<p>in my unit test I deliberately trying to raise an OutOfMemoryError exception. I use a simple statement like the following:</p>

<pre><code>byte[] block = new byte[128 * 1024 * 1024 * 1024];
</code></pre>

<p>The code works on Win7 64bit with jdk6u21 64bit. But when I run this on Centos 5 64bit with jdk6u21 no OutOfMemoryError thrown, even when I make the size of the array bigger.</p>

<p>Any idea?</p>
