jre在64位的windows下最多可以分配多少内存?
解决方案 »
- 【新手提问】请问如果有多个JPanel,怎么样把指定的JPanel移动顶层显示..要不后面的会被前面的栏住哦.
- awt的Label如何设置背景图片
- 概念性问题~~
- 还是有一些问题不太清楚,希望大家能帮忙,关于配置java sdk环境变量后,能编译却不能执行。
- String转换成char
- 求解几个jar文件是哪个来的
- mina 传输大文件(200M以上)
- 寻java set**(),get**()投机取巧的方法!急!!!
- 《Java 2 核心技术 卷I:原理(原书第5版)》这本书适合一点都没学过java的人吗?
- 谢谢大家,程序已编译通过,但是解释出现死循环,再线等待,代会结帐!急盼回答!
- 嵌入JPanel里面的模态对话框
- .jsp文件如何放如classes目录
最大使用2G,不过有消息,Sun 的Solaris 可以到8G? 我没用过,不确定。
http://www.w3china.org/blog/more.asp?name=hongrui&id=23973声明,我没测试过,不敢确认,2G我可以确认!
64bit可用的heap size 是相当大的几乎不用考虑。楼主可以看一下对websphere的描述。
For IBM on the 32-bit Windows platform, the maximum heap size we could use was 1640 megabytes RAM (the theoretical limit is 2048 megabytes or ~2 gigabytes, however we found the default install of WebSphere will not start on 32-bit Windows with a heap size greater than 1640 megabytes, possibly due to the fact the JVM requests a contiguous block of memory for the heap, and Windows 32-bit doles out up 1,640 megabytes of contiguous memory per process). On Linux, we were able to configure the 32-bit WebSphere heap size to 2,300 megabytes of RAM, which represents more RAM available for cache entries on Linux vs. Windows for 32-bit WebSphere. For 64-bit WebSphere on Windows, we were able to run with a heap size of 14,500 megabytes without incurring OS swapping. For 64-bit WebSphere on Linux, we were able to also run with a heap size of 14,500 megabytes without incurring OS swapping (see the heap size setting discussion for a more detailed explanation). For WebSphere, we found the maximum number of entries allowed in the cache (within a margin of roughly 500 entries) via trial and error -- simply by running with an estimate of 500K per entry up to available heap size, then running the test with a max cache entry value until we found the point at which WebSphere would not crash/heap dump. For 32-bit Windows/ WebSphere, this number was 2500 entries. For 32-bit WebSphere on Linux this was 3000 entries. For 64-bit WebSphere the numbers were 27,000 allowable cache entries on both Windows 64-bit and Linux 64-bit, respectively given our matching configured Java heap sizes on these platforms.