查看机器上安装的jdk能支持多大内存
命令:java -Xmx1024m -version
C:\Users\maite>java -Xmx1024m -version java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
支持不了就会报错
C:\Users\maite>java -Xmx1024m -version java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)