mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Increase default number of threads reported by hot_threads
Fixes #10218
This commit is contained in:
parent
e0638e25a9
commit
47e1bd252f
3 changed files with 3 additions and 3 deletions
2
docs/static/monitoring-apis.asciidoc
vendored
2
docs/static/monitoring-apis.asciidoc
vendored
|
@ -720,7 +720,7 @@ Example response:
|
|||
The parameters allowed are:
|
||||
|
||||
[horizontal]
|
||||
`threads`:: The number of hot threads to return. The default is 3.
|
||||
`threads`:: The number of hot threads to return. The default is 10.
|
||||
`human`:: If true, returns plain text instead of JSON format. The default is false.
|
||||
`ignore_idle_threads`:: If true, does not return idle threads. The default is true.
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ module LogStash
|
|||
# return hot threads information
|
||||
get "/jvm/hot_threads" do
|
||||
begin
|
||||
top_threads_count = params["threads"] || 3
|
||||
top_threads_count = params["threads"] || 10
|
||||
ignore_idle_threads = params["ignore_idle_threads"] || true
|
||||
options = {
|
||||
:threads => top_threads_count.to_i,
|
||||
|
|
|
@ -5,7 +5,7 @@ module LogStash
|
|||
module Util
|
||||
class ThreadDump
|
||||
SKIPPED_THREADS = [ "Finalizer", "Reference Handler", "Signal Dispatcher" ].freeze
|
||||
THREADS_COUNT_DEFAULT = 3.freeze
|
||||
THREADS_COUNT_DEFAULT = 10.freeze
|
||||
IGNORE_IDLE_THREADS_DEFAULT = true.freeze
|
||||
|
||||
attr_reader :top_count, :ignore, :dump
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue