jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
565 stars 50 forks source link

Failure to run because of UseCGroupMemoryLimitForHeap #282

Open mmeroberts opened 6 years ago

mmeroberts commented 6 years ago

Hi I am getting the following error when I start the repl:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized VM option 'UseCGroupMemoryLimitForHeap'
Compilation failed: Subprocess failed

Any ideas? I have some projects I have run the repl ok but not all

mmeroberts commented 6 years ago

this is fixed by including the following in your project.clj:

:jvm-opts ^:replace []

sohilpatel commented 5 years ago

if you are using java 10+ then you can use -XX:+UseContainerSupport instead of -XX:+UnlockExperimentalVMOptions and -XX:+UseCGroupMemoryLimitForHeap