正在启动Stanford CoreNLP服务器-Java堆大小错误

正在启动Stanford CoreNLP服务器-Java堆大小错误,java,server,stanford-nlp,Java,Server,Stanford Nlp,我正在尝试启动斯坦福CoreNLP服务器 以下命令: java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000 生成错误消息: Invalid maximum heap size: -Xmx4g The specified size exceeds the maximum representable size. Error: Could not create the

我正在尝试启动斯坦福CoreNLP服务器

以下命令:

java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000
生成错误消息:

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.
以防万一,以下是我的java版本:

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)

有什么建议吗?

这可能是您在32位模式而不是64位模式下运行时遇到的问题

尝试将
-d64
添加到命令中

此线程将详细介绍此类错误:


“无效的最大堆大小:-Xmx4g”所以它认为命令的最后一部分是堆大小?@markschultheis仅供参考,同样的命令在Ubuntu上工作。
java-mx4g
是文档中的一个输入错误,应该是
java-Xmx4g
。出现此错误时是否使用32位jvm?@ManosNikolaidis.
java-Xmx4g
没有帮助