免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3920 | 回复: 1
打印 上一主题 下一主题

设置heap size 的地方 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-31 10:25 |只看该作者 |倒序浏览
On AIX 5.2 or later
If the heap size is 3 GB or greater, LDR_CNTRL=MAXDATA=0@DSA is set.
If the heap size is between 2.3 GB and 3 GB, LDR_CNTR=MAXDATA=0XB0000000@DSA is set.
If the heap size is less than 2.3 GB, LDR_CNTR=MAXDATA=0XA0000000@DSA is set.
也就是说如果在系统里设置了LDR_CNTRL=MAXDATA=0@DSA 那么就可以用到3G以上内存了.


On AIX 5.1
Although the very large address-space model is also available on AIX 5.1, the implementation differs. Consequently, the 1.4.1 SDK does not support the use of the very large address-space model on AIX 5.1. The JVM still sets LDR_CNTRL=MAXDATA based on the maximum size of the heap, but does not use the very large address-space model.
If the heap size is greater than 1 GB, LDR_CNTRL=MAXDATA is set to an appropriate value. Note that this is an inverse relationship because as the heap size increases, fewer segments are reserved through the LD_CNTRL=MAXDATA value. For example, for a 1 GB heap LDR_CNTRL=MAXDATA is set to 0X60000000, while for a 1.5 GB heap, the LDR_CNTRL=MAXDATA value is 0X40000000.

If the heap size is smaller than 1 GB, LDR_CNTRL=MAXDATA is set to 0X80000000

如果要用到大的segment,就是把 LDR_CNTRL=MAXDATA 所指定的heap size 设置得小些.

论坛徽章:
0
2 [报告]
发表于 2005-01-31 17:57 |只看该作者

设置heap size 的地方

还是用 64 位的 jvm 省事一些,只要你的应用中没有编译成 32 位的 JNI。Sun 的 jvm 运行 64 位是加个 -d64 的参数,IBM 的就不知道了,你得去自己查 IBM jdk 的文档了。

感觉就像当初 16 位 Windows 到 32 位 Windows 的转换一样 ... painful experience
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP