BTrace 的开销是多少
BTrace 文档中提到,BTrace 在空闲时几乎没有开销。这是否意味着 BTrace 仅在满足某些探测并正在处理时才具有开销?
另外,当Probe被处理时,会占用一些CPU来进行处理。但它对 JVM 内存或任何其他可能影响原始 JVM 进程处理的东西是否有任何影响?
It is mentioned in BTrace docs that BTrace has almost no overhead when idle. Does that mean BTrace has overhead only and only when some probe is met and it is being processed?
Also, when the Probe is being processed, it would take some CPU to do the processing. But does it have any impact in the JVM memory or any other thing that could impact original JVM process processing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BTrace 添加的 CPU 开销如下:
在内存方面 BTrace< /strong> 尝试一下最好避免任何开销。但是,如果您使用聚合、分析器或自定义集合,内存占用量将根据您存储的数据量相应增加。
此外,BTrace 对 PermGen 提出了一些额外的要求 - 过于频繁地重新定义类可能会导致 PermGen 耗尽。
The CPU overhead BTrace adds is following:
In terms of memory BTrace tries its best to avoid any overhead. However, if you use aggregations, profiler or custom collections the memory footprint will grow accordingly to the amount of data you store there.
Also, BTrace puts some additional requirements on PermGen - redefining classes too often might lead to permgen depletion.