简体   繁体   中英

Stanfordcore Nlp invalid maximum heap size error

i have the following error when i run the command java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000 in folder of stanford core nlp i have installed java runtime environment:

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.

Do you use 64-bit Java?

It depends on the OS you are using, but with 32-bit Java, you can't usually give all 4g for the heap.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM