有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java我的VP有足够的内存,但vm无法运行

这事发生在我的副总裁身上

[root@kunphen ~]# free -m
             total       used       free     shared    buffers     cached
Mem:         12067         87      11980          0          0          0
-/+ buffers/cache:         87      11980
Swap:            0          0          0
[root@kunphen ~]# java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

当我把它改为“java-Xms16m-Xmx16m-version”时,它就可以工作了。 我试了很多次。它最大的尺寸是22米,但我的记忆也有很多自由区


共 (0) 个答案