Skip to content
Jonathan edited this page Jul 17, 2013 · 2 revisions

Processing Large Files Produces a Stack Overflow / OutOfMemoryError

The prettyprinter produces a stack overflow when processing large files (like the jquery source file with ~10k LOC). Increasing the stack size of the JVM helps with this issue:

sbt -J-Xss32m

In addition, rewriting the tree can produce a OutOfMemoryError. So we recommend

sbt -J-Xss32m -J-Xmx2G

Clone this wiki locally