简体   繁体   中英

Problem with Intellij and Heap Size Minimum

I am importing this project

https://github.com/scalaz/scalaz

into the Intellij.

But I get a problem with minimum heap size. I am not sure where the size is beeing set. Any advices to fix this problem please:

/usr/lib/jvm/java-8-openjdk/bin/java -agentlib:jdwp=transport=dt_socket,address=localhost:34077,suspend=n,server=y -Xdebug -server -Xms3784m -Xmx3784m -XX:MaxMetaspaceSize=1g -Xss4m -Xmx1536M -Didea.managed=true -Dfile.encoding=UTF-8 -jar 
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size

Process finished with exit code 1

In preferences of Intellij you can set the maximum heap size for sbt :

在此处输入图片说明

This works for me - make sure if you open a new project that you check Use sbt shell for imports and for builds . See my default settings in the screenshot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM