Skip to content

Commit

Permalink
Add Zing JVM to the list of supported garbage collectors.
Browse files Browse the repository at this point in the history
Fixes #10051
  • Loading branch information
dmitriisilin authored and jsvd committed Dec 10, 2018
1 parent 5c919f2 commit d5b5f9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logstash-core/lib/logstash/instrument/periodic_poller/jvm.rb
Expand Up @@ -20,8 +20,8 @@
module LogStash module Instrument module PeriodicPoller
class JVM < Base
class GarbageCollectorName
YOUNG_GC_NAMES = Set.new(["Copy", "PS Scavenge", "ParNew", "G1 Young Generation", "scavenge"])
OLD_GC_NAMES = Set.new(["MarkSweepCompact", "PS MarkSweep", "ConcurrentMarkSweep", "G1 Old Generation", "global"])
YOUNG_GC_NAMES = Set.new(["Copy", "PS Scavenge", "ParNew", "G1 Young Generation", "scavenge", "GPGC New"])
OLD_GC_NAMES = Set.new(["MarkSweepCompact", "PS MarkSweep", "ConcurrentMarkSweep", "G1 Old Generation", "global", "GPGC Old"])

YOUNG = :young
OLD = :old
Expand Down Expand Up @@ -68,7 +68,7 @@ def collect_gc_stats
logger.debug("collector name", :name => collector_name)
name = GarbageCollectorName.get(collector_name)
if name.nil?
logger.error("Unknown garbage collector name", :name => name)
logger.error("Unknown garbage collector name", :name => collector_name)
else
metric.gauge([:jvm, :gc, :collectors, name], :collection_count, collector.getCollectionCount())
metric.gauge([:jvm, :gc, :collectors, name], :collection_time_in_millis, collector.getCollectionTime())
Expand Down

0 comments on commit d5b5f9a

Please sign in to comment.