When I try to initialize a big array:
double [][][] test = new double[500][1000][1000];
There comes the error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at tests.Test.main(Test.java:6)
When I give arguments to java:
-Xmx2048m
There comes the error:
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
and the text is black.
Task manager says
Physical Memory: 44%
and from my computer I have these stats:
Windows 7 Ultimate
Processor: Intel(R) 'Core(TM) i5-3470 CPU @ 3.20GHz
Installed memory (RAM): 8,00 GB (7,89 GB usable)
System type: 64-bit Operating System