title: Is there a maximum number you can set Xmx to when trying to increase jvm memory?
body: <p>Is there a max. size you can set Xmx to? I set it to 1024m and eclipse opens ok. When I set it above 1024, eclipse doesn't open and I get the error "jvm terminated. Exit code=-1"...</p>
  
  <p>I was doing this because I keep getting an "java.lang.OutOfMemoryError: Java heap space". I am reading in a 35.5Mb .txt file and this error occurs when it's just reading in the file using the "<code>while((line = reader.readLine()) != null)</code>" loop. I would have thought that 1024mb would have been enough. Can anyone help me?</p>