Utkrisht Mittal
Utkrisht Mittal

Reputation: 19

Heap Error while running spark?

I was Trying to run spark on my Ubuntu terminal but i am getting the following error

$Using /usr/lib/jvm/java-7-oracle as default JAVA_HOME.
$Note, this will be overridden by -java-home if it is set.
$Picked up _JAVA_OPTIONS: -Xmx10M -Xms2048M
$Error occurred during initialization of VM
$Incompatible minimum and maximum heap sizes specified

Please Help, Thanks in advance.

Upvotes: 1

Views: 1253

Answers (2)

Ravindra babu
Ravindra babu

Reputation: 38910

The -Xms and -Xmx parameters define the minimum and maximum heap sizes, respectively. You have set small value for -Xmx and large value for -Xms which is INVALID combination.

Have a look at this vmoptions article by oracle for for better understanding.

Upvotes: 0

Scary Wombat
Scary Wombat

Reputation: 44834

-Xmx10M -Xms2048M

The first argument is the maximum heap size and the second is the start that you are setting. Max should be bigger than start.

Upvotes: 3

Related Questions