我们正在开发一个用 Java 编写的 Swing 应用程序,它只需要大约 128MB 的内存,在不久的将来,我认为它不会需要更多的内存,如 4GB.以前,我们始终提供 3 种不同的版本,一种用于 32 位 Windows,一种用于 32 位 Linux,另一种用于 64 位 Linux,带有包含 JRE 的安装程序.直到几周前,64 位版本才被任何人使用,并且报告了 OutOfMemoryException,因为该应用程序比 32 位版本消耗了大约 40-50% 的内存.
We are developing a swing application written by Java which requires only about 128MB memory, and in the short future I don't see it will require much more memory like 4GB. Previously we provide always 3 different releases, one for 32-bit Windows, one for 32-bit Linux and another for 64-bit Linux, with an installer which has JRE included. The 64-bit version was not used by anyone until couple of weeks ago, and an OutOfMemoryException was reported because the application consumes about 40-50% more memory than the 32-bit version.
我的问题是,如果应用程序永远不需要使用超过 4GB 的内存,我们是否需要为 64 位 Linux 提供 64 位版本?我们进行了一些快速测试,结果表明 32 位版本也适用于 64 位 Linux.但我不确定我们会有什么缺点,例如性能和/或兼容性问题?
My question is, is it needed at all for us to provide the 64-bit version for 64-bit Linux if the application will never need to use more than 4GB memory? We had some quick test which revealed that 32-bit version works also on 64-bit Linux. But I'm not sure what could be the cons we would have, e.g. performance and/or compatibility issue?
推荐答案检查这个 64 位 java
更多推荐
64 位操作系统上的 32 位或 64 位应用程序?
发布评论