This question already has an answer here:
这个问题在这里已有答案:
- Real differences between “java -server” and “java -client”? 11 answers
- “java -server”和“java -client”之间的真正区别? 11个答案
In the Java Hotspot compiler, what the difference between initializing Java with -client
as opposed to -server
, and what are the pros/cons/caveats of each?
在Java Hotspot编译器中,使用-client初始化Java而不是-server之间的区别是什么,以及每个是什么/利弊/警告?
1 个解决方案
#1
5
Nice information can be found in Oracle Documentation and Java Hotspot VM FAQ. Acording to them, a Java HotSpot Server VM:
可以在Oracle Documentation和Java Hotspot VM FAQ中找到不错的信息。根据它们,Java HotSpot Server VM:
- Is intended for running server applications.
- 用于运行服务器应用程序。
- Prefers to maximize operating speed instead of minimizing start-up time.
- 更喜欢最大化运行速度而不是最小化启动时间。
On the other side, a Java HotSpot Client VM:
另一方面,Java HotSpot客户端VM:
- Is better suited for GUI applications
- 更适合GUI应用程序
- Is intended to provide fast start-up times or small footprints.
- 旨在提供快速启动时间或小占地面积。
#1
5
Nice information can be found in Oracle Documentation and Java Hotspot VM FAQ. Acording to them, a Java HotSpot Server VM:
可以在Oracle Documentation和Java Hotspot VM FAQ中找到不错的信息。根据它们,Java HotSpot Server VM:
- Is intended for running server applications.
- 用于运行服务器应用程序。
- Prefers to maximize operating speed instead of minimizing start-up time.
- 更喜欢最大化运行速度而不是最小化启动时间。
On the other side, a Java HotSpot Client VM:
另一方面,Java HotSpot客户端VM:
- Is better suited for GUI applications
- 更适合GUI应用程序
- Is intended to provide fast start-up times or small footprints.
- 旨在提供快速启动时间或小占地面积。