如何从Netdata监视JVM的垃圾回收,以避免出现内存不足问题

时间:2019-05-10 08:21:42

标签: jvm netdata

我已经设置了一个Netdata监视代理,该代理接受来自Vertx应用程序的Statsd度量。从netdata中,我从JVM中查询了很多不同的指标,例如

"statsd_timer_vertxhttpserverresponsetime.hostname.thong_macos.method.post.red": null,
        "statsd_timer.vertxHttpServerResponseTime.hostname.thong_macos.method.GET.stddev_last_collected_t": 1557475202.00000,
        "statsd_timer.vertxHttpServerResponseTime.hostname.adfc36ce022d.method.GET.stddev_last_collected_t": 1557475202.00000,
        "statsd_timer.vertxHttpServerResponseTime.hostname.adfc36ce022d.method.GET.stddev_raw": 0.00000,
        "statsd_timer_jvmgcpause.action.end_of_major_gc.cause.metadata_gc_threshold.hostname.thong_macos.collected_total_raw": 6.00000,
        "statsd_timer.jvmGcPause.action.end_of_minor_GC.cause.Allocation_Failure.hostname.thong_macos.sum_raw": 0.00000,
        "statsd_timer.vertxHttpServerResponseTime.hostname.thong_macos.method.GET.average": 0.00000,
        "statsd_timer.jvmGcPause.action.end_of_major_GC.cause.Ergonomics.hostname.thong_macos.sum_last_collected_t": 1557475202.00000,
        "statsd_timer.vertxHttpServerResponseTime.hostname.thong_macos.method.GET.95.0__last_collected_t": 1557475202.00000,
        "statsd_timer.vertxHttpServerResponseTime.hostname.adfc36ce022d.method.GET.95.0__raw": 0.00000,
        "statsd_timer.jvmGcPause.action.end_of_minor_GC.cause.Metadata_GC_Threshold.hostname.thong_macos.events_last_collected_t": 1557475202.00000,
        "statsd_timer.jvmGcPause.action.end_of_minor_GC.cause.Allocation_Failure.hostname.thong_macos.95.0__raw": 0.00000,
        "statsd_timer.vertxHttpServerResponseTime.hostname.thong_macos.method.POST.average": 0.00000,
        "statsd_timer.vertxHttpServerResponseTime.hostname.thong_macos.method.GET.sum": 0.00000,
        "statsd_timer.vertxHttpServerResponseTime.hostname.thong_macos.method.POST.95.0__last_collected_t": 1557475202.00000,
        "statsd_timer.jvmGcPause.action.end_of_minor_GC.cause.Allocation_Failure.hostname.thong_macos.stddev": 0.00000,
        "median_last_collected_t": 1557475202.00000,
        "statsd_timer_jvmgcpause.action.end_of_minor_gc.cause.metadata_gc_threshold.hostname.thong_macos.update_every": 1.00000,
        "statsd_timer_jvmgcpause.action.end_of_minor_gc.cause.metadata_gc_threshold.hostname.thong_macos.collected_total_raw": 6.00000,
        "statsd_timer_jvmgcpause.action.end_of_minor_gc.cause.metadata_gc_threshold.hostname.thong_macos.green": null,
        "statsd_timer_jvmgcpause.action.end_of_major_gc.cause.ergonomics.hostname.thong_macos.last_collected_t": 1557475202.00000,
        "statsd_timer.jvmGcPause.action.end_of_minor_GC.cause.Metadata_GC_Threshold.hostname.thong_macos.max_last_collected_t": 1557475202.00000,

如果我想在OutOfMemory错误发生之前设置预测警报,我应该执行哪种类型的度量或计算?

我用于Netdata查询指标的api是/api/v1/alarm_variables?chart=statsd_timer_jvmgcpause.action.end_of_minor_gc...

0 个答案:

没有答案