int [int] map;
for i from 1 to 1000000000 {
map[i] = i;
}

Exception in thread "CommandQueueHandler" java.lang.OutOfMemoryError: Java heap space

It's really not a surprise, I hope.