【发布时间】:2025-12-21 14:30:11
【问题描述】:
(a) 在 GC 日志中,即使 应用程序处于空闲状态。这与 JIT 或其他一些 JVM 有关吗 内部运作?
2015-03-05T14:42:18.320+0000: 520807.126: Total time for which application
threads were stopped: 0.0000500 seconds
2015-03-05T14:42:18.320+0000: 520807.126: Application time: 0.0000240
seconds
2015-03-05T14:42:18.320+0000: 520807.126: Total time for which application
threads were stopped: 0.0000500 seconds
2015-03-05T14:42:58.405+0000: 520847.212: Application time: 40.0857170
seconds
2015-03-05T14:42:58.406+0000: 520847.212: Total time for which application
threads were stopped: 0.0001980 seconds
2015-03-05T14:42:58.406+0000: 520847.212: Application time: 0.0000250
seconds
2015-03-05T14:42:58.406+0000: 520847.212: Total time for which application
threads were stopped: 0.0000520 seconds
2015-03-05T14:43:28.406+0000: 520877.213: Application time: 30.0001550
second
(b)使用默认的 GC 收集器。我们正在尝试在日志中打印任期分布,但它不会打印。
我们已经尝试过 +PrintTenuringDistribution 和 -PrintTenuringDistribution,但都不起作用。这是否未配置为与默认并行 GC 一起使用?
服务器信息
OS: RHEL 6
Cores: 24
RAM: 37GB
Java: Oracle JDK 7 Update 45
【问题讨论】:
标签: java garbage-collection jit