我可以提到4GB和8GB Ram的-XX:MaxPermSize大小是多少,并为此进行计算? [英] How much -XX:MaxPermSize size i can mention for 4GB and 8GB Ram and calculation for this?

查看:101
本文介绍了我可以提到4GB和8GB Ram的-XX:MaxPermSize大小是多少,并为此进行计算?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以提到4GB和8GB Ram的-XX:MaxPermSize大小.这是我系统的其他细节

How much -XX:MaxPermSize size i can mention for 4GB and 8GB Ram. Here are the other detalis of my system

OS:-Windows XP(32位) 内存:-4 GB java_opt- -Xms1536m -Xmx1536m//(作为环境变量提及): tomcat版本:-6.0.26

OS:-window XP(32 bit) RAM:-4 GB java_opt- -Xms1536m -Xmx1536m //(mentioned as environment variable): tomcat version:-6.0.26

我有另一个具有8GB内存的系统,其他细节完全相同.是的,操作系统是64位窗口7.

I have another system with 8GB ram with other details exactly same . Yes os is 64 bit Window 7.

与此同时,还让我知道两个系统的-Xmx参数的最大值是多少?

Along with this also let me know what can be the max value for -Xmx parameter for both the systems?

如果有人可以告诉我计算得出的数字,这样我们就不必塞满这个数字,而是可以根据RAM系统的逻辑进行计算,那就太好了吗?

It would be great if some body can tell me the calculation to arrive at the figure so that we dont have to cram this figure but we can logically calculate based on RAM ssytem is having?

我真的看到人们收到了permgen错误或堆错误,但是每个人都在不断使用这种参数,直到他们想出办法解决问题为止.

I have really seen people getting permgen error or heap error but every body keeps on playing with this paramters until they come to figure that resolve the issue.

推荐答案

根据

According to IBM document, application runs with a minimum heap usage of 40%, and a maximum heap usage of 70%.

请参阅此信息

为什么我无法获得更大的堆32位JVM?

Why can't I get a larger heap with the 32-bit JVM?

每个Java的最大内存量在Windows中处理?

Max amount of memory per java process in windows?

Sizing the Java heap

这篇关于我可以提到4GB和8GB Ram的-XX:MaxPermSize大小是多少,并为此进行计算?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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