Has anyone found Garbage Collection tuning to be useful?

前端 未结 6 1819
忘了有多久
忘了有多久 2021-01-01 13:08

I\'ve read plenty of articles about tuning GC in Java and have often wondered how many people really use some of the more advanced features.

I\'ve always av

6条回答
  •  天涯浪人
    2021-01-01 13:34

    I would say the most common thing to tune is the maximum memory size. Most of the other memory options have sensible defaults and are often over tuned IMHO. i.e. Set when it really doesn't make much difference. I often see people set lots of options when half of them are the default in any case. ;)

    Using a profiler is the most useful way to improve GC behaviour (by reducing the number of objects created)

提交回复
热议问题