Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at it.unimi.dsi.fastutil.longs.LongArrays.ensureCapacity(LongArrays.java:107)
at it.unimi.dsi.fastutil.longs.LongArrayList.ensureCapacity(LongArrayList.java:202)
at it.unimi.dsi.fastutil.longs.LongArrayList.size(LongArrayList.java:271)
(etc etc).
The program just hangs at that point, doesn't seem to do
anything except generate a "progress" message every two minutes.
I added a hint about this problem to "How to Create a Map" wiki
page. Please have a look at it.