Reputation: 7730
I am trying to start Stanford CoreNLP server the link
The following command:
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000
generates error message:
Invalid maximum heap size: -Xmx4g
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Just in case, here is my java version:
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode)
Any suggestions?
Upvotes: 1
Views: 761
Reputation: 8739
This is probably an issue with you running in 32-bit mode instead of 64-bit.
Try adding -d64
to your command.
This thread goes into more detail about this kind of error:
Avoiding Initial Memory Heap Size Error
Upvotes: 1