scala - How to set heap size in play/activator? -
I get "java.lang.OutOfMemoryError: Java heap space" when you run activation. I want to set the stack in unlimited size. I read somewhere that I somehow need this kind of change SBT_OPTS or _JAVA_OPTION:
Export SBT_OPTS = "- Xmx2G -XX: + UseConcMarkSweepGC -XX: + CMSClassUnloadingEnabled -XX: MaxPermSize = 2G-XSS2M -Deser.timezone = GMT " I did not find any documents anywhere on this.
tl; dr Activator -ship
You can use JAVA_OPTS can affect (other Java programs), SBT_OPTS (SBT also affected), ACTIVATOR_OPTS enable) and there is also a -mem flag that you can use.
I think -J-Xmx512M will also work.
➜ ~ activator -Help use: activator & lt; Command & gt; [Options] to Startatr UI new start Command UI [Name] [template-id] template [template-id] list-templates to print a new project Bnaan- all available template name with [name] using -h | -Press Print this message Option: -V | -Worbose Make This Runner Chat-D | -debug set to debug sbt log level- mem & lt; Integer & gt; Set Memory Options (Default is -Xms1024m -Xmx1024m -XX: MetaspaceSize = 64M -XX: MaxMetaspaceSize = 256M) -jvm- debug & LT; Harbor & gt; Turn on JVM debugging, open on the given port. # Java version (default: Java with path, currently Java version "1.8.0_25") -java- From Home & lt; Path & gt; Optional JAVA_HOME # JVM option and production control -Dkey = Val Pass -Dkey = Java Runtime -JX Pass option for Val directly -x directly for Java runtime (-J is stripped) # Environment variable (read from context) JAVA_OPTS Environment variable, if not set, uses "SBT_OPTS environment variable, if not set" "ACTIVATOR_OPTS environment variable, if not set, uses" "in the case of duplicated or conflicting options, the above The flood It shows: The lowest of the environment variable, the highest order line option.
Comments
Post a Comment