title: how to solve 'java.lang.OutOfMemoryError: GC overhead limit exceeded'
body: <p>I read <a href="https://stackoverflow.com/questions/1393486/what-does-the-error-message-java-lang-outofmemoryerror-gc-overhead-limit-excee">this stack overflow page</a> about solving this problem and tried adding the command line option -XX:-UseGCOverheadLimit and also "-Xmx" arguments. However, my program still threw the out of memory error.</p>
  
  <p>The program saves a large number (>40,000 keys) of words into a MultiKeyMap and is running on a server with plenty of memory.</p>
  
  <p>Any suggestions on how I can aviod the error?</p>