David Wickstrom
David Wickstrom

Reputation: 5188

Unrecognized VM option 'ExitOnOutOfMemoryError' when starting Presto

I was following the installation manual for presto.

But when I lanched the presto server from the command line I got this error:

$ bin/launcher run

Unrecognized VM option 'ExitOnOutOfMemoryError'
Did you mean 'OnOutOfMemoryError=<value>'?
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Upvotes: 2

Views: 3189

Answers (2)

Zack
Zack

Reputation: 1254

Per @kavehmb's answer on another question, as of June 2019 the way to work around this issue is:

brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8

Upvotes: 2

David Wickstrom
David Wickstrom

Reputation: 5188

I suspected the java version was wrong and checked it. I had Java 1.8.0_65-b17.

The documentation for the installation did not mention anything about needed java version. It was hard to find out the needed Java version for the newest Presto version (v0.208)

I updated to the currently newest Java8 version using brew (on Mac).

brew cask install java8

After successful upgrading of Java I had version 1.8.0_181-b13.

Then prestodb could start.

Upvotes: 0

Related Questions