#Java

记录一个今天遇到的问题。 Java版本:1.4 运行设置: -Xms1G -Xmx4G 报错:[ Incompatible initial and maximum heap sizes specified: ][ initial size:1073741824 bytes, maximum heap size: 67108864 bytes ][ The initial heap size must be less than or equal to the maximum heap size. ][ The default initial and maximum heap sizes are 4194304 and 67108864 bytes. ]无法创建Java虚拟机。 疑问:执行语句中设置初始化内存1G,最大内存4G,但是错误提示中为什么最大内存是64M? 尝试1:固定X...