I have a Scala data processing tool which is failing with a java.lang.OutOfMemoryError exception. The tool needs to make a couple passes over a large data file
java.lang.OutOfMemoryError
As a hack you can edit the scala/bin/scala file to edit the parameters for the java command. Not pretty.
scala/bin/scala
java