几年前,我尝试过 64 位 JDK,但它确实有问题。
您认为它现在有多稳定?你会推荐它吗?我应该安装 64 位 JDK + eclipse 还是坚持使用 32 位?另外,除了绕过 4 GB 内存限制外,64 位比 32 位有什么优势吗?
最佳答案
只有在您想要构建一个会使用大量内存(即大于 2GB 的堆)的应用程序时才开始为此烦恼。
请允许我引用 Red Hat 的话:
The real advantage of the 64-bit JVM is that heap sizes much larger than 2GB can be used. Large page memory with the 64-bit JVM give further optimizations. The following graph shows the results running from 4GB heap sizes, in two gigabyte increments, up to 20GB heap.
在一个漂亮的图表中:
看,没什么大区别。
查看更多(更多图表,耶!):Java Virtual Machine Tuning
关于java - 我应该使用 32 位还是 64 位 JDK?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16369044/