Java: Java 热点服务端编译器和客户端编译器的区别

Java: Difference between Java Hotspot Server Compiler and Client Compiler

今天,当我在 JVM 中阅读 http://docs.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html 中有关 Escape Analysis 的内容时。在此,他们讨论了Java Hotspot Server Compiler。我混淆了 Java 中的 Server Compiler 是什么。我也对此 Google,有些地方他们使用 Java Hotspot Client Compiler。我还是没明白,服务器和客户端编译器到底是什么?服务器编译器是不同于普通的 JDK 还是它是 JVM 的一部分?

他们在谈论 Hotspot VM 中的 JIT(即时)编译器。

Java Hotspot Client Compiler - is usually used for client environments (less processing)

Provides improved runtime performance for applications and applets. The Java HotSpot Client VM has been specially tuned to reduce application start-up time and memory footprint, making it particulary well suited for client environments.

Java Hotspot Server Compiler The Java HotSpot Server VM is similar to the Java HotSpot Client VM, except that it has been specially tuned to maximize peak operating speed. It is intended for running long-running server applications, for which having the fastest possible operating speed is generally more important than having the fastest possible start-up time.

检查 this and this 以获得详细说明。