开发者

Does using the 64bit tomcat give you a performance boost over 32bit tomcat?

Suppose someone is using a 64-bit OS and a 64-bit JVM.

Does using the 64-bit Tomcat increase performance?

This may seem a little stange, however someone suggested that the 64-bit Tomcat basically, only had a different installer. This seems wrong to me, but I don't really have any proof.

I开发者_如何学Gos there some doc about this?

I mean can the 64bit tomcat reach more RAM, than the 32-bit version?


Tomcat is a Java application. There isn't a 32 and 64 bit version, unless you are talking about any native extentions such as APR.


You can access more RAM, which may help performance, yes, but that depends on your application, e.g. if it actually does need more than the approx 1.5Gb a 32 bit JVM can handle.

Be wary though, you might see occasional performance degradation as garbage collection has more to clean up!


Regarding performance. You might want to look at this answer.

Regarding RAM - yes, 32 bit Java apps (Tomcat included) can only use up to ~1.4G. If you need more, use 64 bit JVM.


The question is performance and not if the application can use more memory.

The main point is the JVM used. As mentioned, the JAVA primary data object are 64bits. It will be more efficient to run Tomcat and JVM 64 bits if the CPU of the host is natively 64 bits. In 32 bits, calculating a 64bit value will require more cpu cycles than doing the equivalent operation on a 64bits native system. Same is true for string object and manipulation. The operation work on 4 bytes at a time instead of 2.

So, in summary, it is more efficient to run Tomcat and the underplaying JVM on 64bits.

Tkx.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜