简体   繁体   English

如何将内存大小增加到java堆

[英]How to increase memory size to the heap of java

I want to increase heap java to avoid this error message I have windows 7 64bit with java version我想增加堆 java 以避免此错误消息我有带有 java 版本的 windows 7 64bit

C:\Users\Rasha>java -version
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode)

java -Xms1024m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m
Error occurred during initialization of VM
Could not reserve enough space for object
Could not create the Java virtual machine.

Although I have already 6 Gigabyte memory, how to made the system to recognize them?虽然我已经有6G内存了,怎么让系统识别出来呢?

any suggestions for this problem?对这个问题有什么建议吗?

Use the 64 bit JVM.使用 64 位 JVM。 The 32 bit JVM cannot allocate much beyond 1.5 gb (eg right about where you are having difficulties) due to need for contiguous address space.由于需要连续的地址空间,32 位 JVM 不能分配超过 1.5 gb 的空间(例如,正好在您遇到困难的地方)。 I KNOW you are using the 32 bit JVM because it says "Client VM" above, and there is no "Client VM" for 64 bit.我知道您使用的是 32 位 JVM,因为上面写着“客户端 VM”,而没有 64 位的“客户端 VM”。

谢谢,我找到问题了,我有多个版本的java,配置冲突解决方案是删除所有版本并安装java 64位版本,空间分配好谢谢大家

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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