How much -XX:MaxPermSize size i can mention for 4GB and 8GB Ram and calculation for this?

纵然是瞬间 提交于 2019-12-08 05:13:13

问题


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

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

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

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

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?

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.


回答1:


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

Refer to this information

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

Max amount of memory per java process in windows?

Sizing the Java heap



来源:https://stackoverflow.com/questions/10266404/how-much-xxmaxpermsize-size-i-can-mention-for-4gb-and-8gb-ram-and-calculation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!