JVM在32位操作系统上堆叠 [英] JVM Heapsize on 32 bit OS

查看:168
本文介绍了JVM在32位操作系统上堆叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用32位win.7并使用Eclipse。还有4GB RAM。



我想分配我的java应用程序最大大约3 GB的堆叠,但是我可以通过VM参数分配最大1.5GB -Xmx1056m



我该怎么办?如果我安装64位win.7。那么可以将3GB的堆叠分配给我的应用程序?

解决方案

常规的32位Windows进程只能解决2GB的内存,即使你有更多的内存可用。您可以找到不同Windows版本的内存限制这里



由于VM需要的内存不仅仅是堆,所以最大堆大小将略小于该进程可用的最大内存空间。通常,对于32位Windows VM,您可以调整堆大约1.6GB的堆栈。


I am using 32 bit win.7 and using Eclipse. Also having 4GB RAM.

I want to allocate my java application a maximum heapsize of around 3 GB, but I am able to allocate maximum 1.5GB through VM arguments -Xmx1056m.

What should I do? If I Install a 64 bit win.7. it would be able then to allocate 3GB heapsize to my app?

解决方案

A regular 32-bit Windows process can only address 2GB of memory, even if you have more memory available. You can find the memory limits for different Windows versions here.

Since the VM need memory for more things than just the heap, the max heap size will be slightly less than the maxmimum memory available to the process. Usually, you can tweak the heap up to around 1.6GB for a 32-bit Windows VM.

这篇关于JVM在32位操作系统上堆叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆