JVM performance tuning for large applications

前端 未结 7 677
生来不讨喜
生来不讨喜 2021-01-29 20:10

The default JVM parameters are not optimal for running large applications. Any insights from people who have tuned it on a real application would be helpful. We are running the

7条回答
  •  执笔经年
    2021-01-29 20:37

    The absolute best way to answer this is to perform controlled testing on the application in as close to a 'production' environment as you can create. It's quite possible that the use of -server, a reasonable starting heap size and the relatively smart behavior of recent JVMs will behave as well or better than the vast majority of settings one would normally try.

    There is one specific exception to this broad generalization: in the case that you are running in a web container, there is a really high chance that you will want to increase the permanent generation settings.

提交回复
热议问题