java memory usage command line code example Example: java memory increase command set SBT_OPTS="-Xmx4096M"