JVM 故障转储中的标准并行 GC 被称为什么?
当 JVM 使用 -XX:+UseParNewGC 运行时,我们偶尔会遇到访问冲突。 当我们查看转储文件时,我们发现
Heap
par new generation total 14784K, used 13689K [0x02bd0000, 0x03bd0000, 0x06950000)
eden space 13184K, 100% used [0x02bd0000, 0x038b0000, 0x038b0000)
from space 1600K, 31% used [0x03a40000, 0x03abe678, 0x03bd0000)
to space 1600K, 35% used [0x038b0000, 0x0393f800, 0x03a40000)
concurrent mark-sweep generation total 125324K, used 93541K [0x06950000, 0x0e3b3000, 0x34bd0000)
concurrent-mark-sweep perm gen total 53900K, used 32283K [0x34bd0000, 0x38073000, 0x38bd0000)
我假设“par new”代表 ParNewGC。
我想在 Google 上查找使用标准并行 GC 的类似日志,有谁知道我会在“堆”而不是“标准新一代”下看到什么?
When the JVM runs with the -XX:+UseParNewGC we are getting an occasional access violation.
When we look at the dump file, we see
Heap
par new generation total 14784K, used 13689K [0x02bd0000, 0x03bd0000, 0x06950000)
eden space 13184K, 100% used [0x02bd0000, 0x038b0000, 0x038b0000)
from space 1600K, 31% used [0x03a40000, 0x03abe678, 0x03bd0000)
to space 1600K, 35% used [0x038b0000, 0x0393f800, 0x03a40000)
concurrent mark-sweep generation total 125324K, used 93541K [0x06950000, 0x0e3b3000, 0x34bd0000)
concurrent-mark-sweep perm gen total 53900K, used 32283K [0x34bd0000, 0x38073000, 0x38bd0000)
I am assuming that "par new" would represent the ParNewGC.
I want to Google for similar logs where the standard parallel GC was used, does anyone know what I would see under "Heap" instead of "par new generation"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你得到什么样的垃圾场? 您可以通过简单地使用 -XX:+HeapDumpOnCtrlBreak 执行 HeapDump 并向您的进程发送控制中断来从 JVM 获取此类信息。 然后您可以分析堆转储文件并得到答案。 当然,如果您使用的是 Java 6,则没有 HeapDumpOnCtrlBreak 选项,您需要使用 jmap 工具来生成转储。
What kind of dump are you getting? You can solicit this type of information from a JVM by simply doing a HeapDump with -XX:+HeapDumpOnCtrlBreak and send a control break to your process. You can then analyse the heap dump file and get your answer. Of course, if you're using Java 6, there is no HeapDumpOnCtrlBreak option and you need to use the jmap tool to generate the dump.