You're essentially running out of memory to run the process smoothly. Options that come to mind:
-Xmx512m
HashMap
String.intern()
HashMap(int initialCapacity, float loadFactor)
1.4m articles
1.4m replys
5 comments
57.0k users