Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properly name netty threads #511

Merged
merged 7 commits into from
Jan 30, 2025
Merged

properly name netty threads #511

merged 7 commits into from
Jan 30, 2025

Conversation

jsvd
Copy link
Member

@jsvd jsvd commented Jan 29, 2025

Example with: bin/logstash -e "input { beats { id => my_beats port => 3333 } }" -w 1

Before
❯ jstack 28787| grep '^"' | sort  | cut -b 1-150
"Agent thread" #37 [24075] daemon prio=5 os_prio=31 cpu=217.23ms elapsed=57.31s tid=0x0000000144011000 nid=24075 waiting on condition  [0x00000001711e
"Api Webserver" #38 [35587] daemon prio=5 os_prio=31 cpu=46.52ms elapsed=57.31s tid=0x0000000144239e00 nid=35587 in Object.wait()  [0x00000001713f5000
"Attach Listener" #56 [45059] daemon prio=9 os_prio=31 cpu=1.44ms elapsed=9.92s tid=0x0000000144074a00 nid=45059 waiting on condition  [0x000000000000
"C1 CompilerThread0" #17 [26115] daemon prio=9 os_prio=31 cpu=2974.06ms elapsed=62.83s tid=0x0000000141205600 nid=26115 waiting on condition  [0x00000
"C2 CompilerThread0" #14 [28675] daemon prio=9 os_prio=31 cpu=5598.09ms elapsed=62.83s tid=0x000000014300b400 nid=28675 waiting on condition  [0x00000
"Cleaner-0" #22 [27399] daemon prio=8 os_prio=31 cpu=0.20ms elapsed=62.29s tid=0x000000010381ae00 nid=27399 waiting on condition  [0x000000016f542000]
"Common-Cleaner" #18 [27907] daemon prio=8 os_prio=31 cpu=6.17ms elapsed=62.83s tid=0x0000000141205e00 nid=27907 waiting on condition  [0x000000016f12
"Finalizer" #10 [29955] daemon prio=8 os_prio=31 cpu=1.74ms elapsed=62.83s tid=0x000000014180e000 nid=29955 in Object.wait()  [0x000000016e4e2000]
"G1 Conc#0" os_prio=31 cpu=133.92ms elapsed=62.85s tid=0x0000000140e0b960 nid=13827 runnable
"G1 Conc#1" os_prio=31 cpu=134.19ms elapsed=62.10s tid=0x000000014206a100 nid=34051 runnable
"G1 Main Marker" os_prio=31 cpu=0.88ms elapsed=62.85s tid=0x0000000140e0aff0 nid=13059 runnable
"G1 Refine#0" os_prio=31 cpu=25.00ms elapsed=62.84s tid=0x0000000141010c00 nid=16387 runnable
"G1 Service" os_prio=31 cpu=1.69ms elapsed=62.84s tid=0x0000000140e0e140 nid=21507 runnable
"GC Thread#0" os_prio=31 cpu=74.50ms elapsed=62.85s tid=0x0000000140e0a850 nid=12547 runnable
"GC Thread#1" os_prio=31 cpu=76.35ms elapsed=62.18s tid=0x0000000140ebe450 nid=27143 runnable
"GC Thread#2" os_prio=31 cpu=75.87ms elapsed=62.18s tid=0x0000000140ebe7f0 nid=43267 runnable
"GC Thread#3" os_prio=31 cpu=75.53ms elapsed=62.18s tid=0x0000000140ebeb90 nid=43011 runnable
"GC Thread#4" os_prio=31 cpu=77.60ms elapsed=62.18s tid=0x0000000140ebef30 nid=33283 runnable
"GC Thread#5" os_prio=31 cpu=75.03ms elapsed=62.18s tid=0x0000000140ebf4a0 nid=42243 runnable
"GC Thread#6" os_prio=31 cpu=73.75ms elapsed=62.18s tid=0x0000000140ebfa10 nid=41731 runnable
"GC Thread#7" os_prio=31 cpu=73.41ms elapsed=62.18s tid=0x0000000140ebff80 nid=41475 runnable
"GC Thread#8" os_prio=31 cpu=76.35ms elapsed=62.18s tid=0x0000000140ec04f0 nid=40963 runnable
"LogStash::Runner" #1 [8963] prio=5 os_prio=31 cpu=4869.68ms elapsed=62.85s tid=0x0000000141017400 nid=8963 in Object.wait()  [0x000000016d15c000]
"Monitor Deflation Thread" #13 [29187] daemon prio=9 os_prio=31 cpu=4.81ms elapsed=62.83s tid=0x000000014300ac00 nid=29187 runnable  [0x00000000000000
"Notification Thread" #19 [26627] daemon prio=9 os_prio=31 cpu=0.02ms elapsed=62.82s tid=0x00000001411f8a00 nid=26627 runnable  [0x0000000000000000]
"Reference Handler" #9 [25091] daemon prio=10 os_prio=31 cpu=5.53ms elapsed=62.83s tid=0x000000014180a600 nid=25091 waiting on condition  [0x000000016
"Ruby-0-JIT-1" #33 [34819] daemon prio=1 os_prio=31 cpu=574.71ms elapsed=61.21s tid=0x0000000143ae2e00 nid=34819 waiting on condition  [0x0000000170dd
"Ruby-0-Thread-12: /private/tmp/logstash-8.17.0/vendor/bundle/jruby/3.1.0/gems/thwait-0.2.0/lib/thwait.rb:91" #49 [43779] daemon prio=5 os_prio=31 cpu
"Ruby-0-Thread-13: /private/tmp/logstash-8.17.0/vendor/bundle/jruby/3.1.0/gems/thwait-0.2.0/lib/thwait.rb:91" #50 [44035] daemon prio=5 os_prio=31 cpu
"Ruby-0-Thread-4@puma reactor: /private/tmp/logstash-8.17.0/vendor/bundle/jruby/3.1.0/gems/puma-6.4.3-java/lib/puma/reactor.rb:37" #40 [38659] daemon
"Ruby-0-Thread-5@puma srv threadpool reaper: /private/tmp/logstash-8.17.0/vendor/bundle/jruby/3.1.0/gems/puma-6.4.3-java/lib/puma/thread_pool.rb:345"
"Ruby-0-Thread-6@puma srv threadpool trimmer: /private/tmp/logstash-8.17.0/vendor/bundle/jruby/3.1.0/gems/puma-6.4.3-java/lib/puma/thread_pool.rb:345"
"Ruby-0-Thread-7@puma srv: /private/tmp/logstash-8.17.0/vendor/bundle/jruby/3.1.0/gems/puma-6.4.3-java/lib/puma/server.rb:261" #43 [36611] daemon prio
"Service Thread" #12 [25603] daemon prio=9 os_prio=31 cpu=21.18ms elapsed=62.83s tid=0x000000014300a400 nid=25603 runnable  [0x0000000000000000]
"Signal Dispatcher" #11 [29443] daemon prio=9 os_prio=31 cpu=0.14ms elapsed=62.83s tid=0x0000000141200a00 nid=29443 waiting on condition  [0x000000000
"VM Periodic Task Thread" os_prio=31 cpu=30.46ms elapsed=62.84s tid=0x0000000140e0fbf0 nid=17155 waiting on condition
"VM Thread" os_prio=31 cpu=30.67ms elapsed=62.84s tid=0x0000000140e127b0 nid=18947 runnable
"[main]-pipeline-manager" #44 [37891] daemon prio=5 os_prio=31 cpu=15.64ms elapsed=57.08s tid=0x0000000142a4be00 nid=37891 waiting on condition  [0x00
"[main]<beats" #47 [43523] daemon prio=5 os_prio=31 cpu=63.58ms elapsed=56.83s tid=0x00000001439c4c00 nid=43523 in Object.wait()  [0x0000000172455000]
"[main]>worker0" #46 [37383] daemon prio=5 os_prio=31 cpu=229.50ms elapsed=56.83s tid=0x00000001451b0800 nid=37383 waiting on condition  [0x0000000172
"defaultEventExecutorGroup-4-1" #58 [63491] prio=5 os_prio=31 cpu=4.04ms elapsed=3.24s tid=0x000000014316bc00 nid=63491 waiting on condition  [0x00000
"defaultEventExecutorGroup-4-2" #61 [46339] prio=5 os_prio=31 cpu=3.40ms elapsed=3.18s tid=0x00000001039e8400 nid=46339 waiting on condition  [0x00000
"defaultEventExecutorGroup-4-3" #64 [46851] prio=5 os_prio=31 cpu=3.41ms elapsed=3.15s tid=0x0000000143661800 nid=46851 waiting on condition  [0x00000
"defaultEventExecutorGroup-4-4" #67 [47875] prio=5 os_prio=31 cpu=3.39ms elapsed=3.15s tid=0x0000000127061c00 nid=47875 waiting on condition  [0x00000
"defaultEventExecutorGroup-5-1" #59 [63235] prio=5 os_prio=31 cpu=63.75ms elapsed=3.24s tid=0x00000001452afc00 nid=63235 waiting on condition  [0x0000
"defaultEventExecutorGroup-5-10" #80 [51203] prio=5 os_prio=31 cpu=19.80ms elapsed=3.11s tid=0x000000014433c200 nid=51203 waiting on condition  [0x000
"defaultEventExecutorGroup-5-2" #62 [62211] prio=5 os_prio=31 cpu=32.71ms elapsed=3.18s tid=0x00000001271e1c00 nid=62211 waiting on condition  [0x0000
"defaultEventExecutorGroup-5-3" #65 [47363] prio=5 os_prio=31 cpu=20.41ms elapsed=3.15s tid=0x0000000143178e00 nid=47363 waiting on condition  [0x0000
"defaultEventExecutorGroup-5-4" #68 [48131] prio=5 os_prio=31 cpu=21.54ms elapsed=3.15s tid=0x00000001434ca600 nid=48131 waiting on condition  [0x0000
"defaultEventExecutorGroup-5-5" #70 [49155] prio=5 os_prio=31 cpu=19.87ms elapsed=3.14s tid=0x0000000143646e00 nid=49155 waiting on condition  [0x0000
"defaultEventExecutorGroup-5-6" #72 [60163] prio=5 os_prio=31 cpu=22.37ms elapsed=3.13s tid=0x0000000145338400 nid=60163 waiting on condition  [0x0000
"defaultEventExecutorGroup-5-7" #74 [59395] prio=5 os_prio=31 cpu=17.21ms elapsed=3.12s tid=0x0000000145263a00 nid=59395 waiting on condition  [0x0000
"defaultEventExecutorGroup-5-8" #76 [50435] prio=5 os_prio=31 cpu=22.92ms elapsed=3.12s tid=0x000000010380fe00 nid=50435 waiting on condition  [0x0000
"defaultEventExecutorGroup-5-9" #78 [58371] prio=5 os_prio=31 cpu=16.47ms elapsed=3.12s tid=0x000000014417d600 nid=58371 waiting on condition  [0x0000
"logstash-pipeline-flush" #48 [65027] daemon prio=5 os_prio=31 cpu=2.66ms elapsed=56.82s tid=0x00000001439df800 nid=65027 waiting on condition  [0x000
"nioEventLoopGroup-2-1" #51 [39175] prio=10 os_prio=31 cpu=21.75ms elapsed=56.76s tid=0x00000001439dea00 nid=39175 runnable  [0x0000000171602000]
"nioEventLoopGroup-3-1" #57 [45315] prio=10 os_prio=31 cpu=19.89ms elapsed=3.24s tid=0x00000001452af400 nid=45315 runnable  [0x0000000177412000]
"nioEventLoopGroup-3-10" #79 [50947] prio=10 os_prio=31 cpu=2.53ms elapsed=3.11s tid=0x000000014410f800 nid=50947 runnable  [0x000000031a2c6000]
"nioEventLoopGroup-3-11" #81 [57347] prio=10 os_prio=31 cpu=2.47ms elapsed=3.11s tid=0x000000014365e200 nid=57347 runnable  [0x000000031a6de000]
"nioEventLoopGroup-3-12" #82 [56835] prio=10 os_prio=31 cpu=3.00ms elapsed=3.10s tid=0x0000000143cd5800 nid=56835 runnable  [0x000000031a8ea000]
"nioEventLoopGroup-3-13" #83 [56579] prio=10 os_prio=31 cpu=2.69ms elapsed=3.10s tid=0x0000000145275c00 nid=56579 runnable  [0x000000031aaf6000]
"nioEventLoopGroup-3-14" #84 [56323] prio=10 os_prio=31 cpu=2.68ms elapsed=3.09s tid=0x000000014533ae00 nid=56323 runnable  [0x000000031ad02000]
"nioEventLoopGroup-3-15" #85 [56067] prio=10 os_prio=31 cpu=3.06ms elapsed=3.09s tid=0x0000000145261000 nid=56067 runnable  [0x000000031af0e000]
"nioEventLoopGroup-3-16" #86 [55555] prio=10 os_prio=31 cpu=2.81ms elapsed=3.09s tid=0x0000000145261800 nid=55555 runnable  [0x000000031b11a000]
"nioEventLoopGroup-3-17" #87 [55043] prio=10 os_prio=31 cpu=2.54ms elapsed=3.08s tid=0x0000000145262000 nid=55043 runnable  [0x000000031b326000]
"nioEventLoopGroup-3-18" #88 [54531] prio=10 os_prio=31 cpu=2.33ms elapsed=3.08s tid=0x0000000145262800 nid=54531 runnable  [0x000000031b532000]
"nioEventLoopGroup-3-19" #89 [52483] prio=10 os_prio=31 cpu=2.43ms elapsed=3.08s tid=0x00000001413f0600 nid=52483 runnable  [0x000000031b73e000]
"nioEventLoopGroup-3-2" #60 [62979] prio=10 os_prio=31 cpu=4.46ms elapsed=3.18s tid=0x000000014537ca00 nid=62979 runnable  [0x0000000177a36000]
"nioEventLoopGroup-3-20" #90 [54275] prio=10 os_prio=31 cpu=2.63ms elapsed=3.07s tid=0x000000014509ca00 nid=54275 runnable  [0x000000031b94a000]
"nioEventLoopGroup-3-3" #63 [46595] prio=10 os_prio=31 cpu=4.47ms elapsed=3.16s tid=0x0000000143922c00 nid=46595 runnable  [0x0000000312206000]
"nioEventLoopGroup-3-4" #66 [61443] prio=10 os_prio=31 cpu=5.24ms elapsed=3.15s tid=0x000000014533b800 nid=61443 runnable  [0x000000031482a000]
"nioEventLoopGroup-3-5" #69 [48643] prio=10 os_prio=31 cpu=4.96ms elapsed=3.14s tid=0x000000012780d600 nid=48643 runnable  [0x0000000316e4e000]
"nioEventLoopGroup-3-6" #71 [49411] prio=10 os_prio=31 cpu=2.94ms elapsed=3.13s tid=0x0000000145098000 nid=49411 runnable  [0x0000000319266000]
"nioEventLoopGroup-3-7" #73 [59907] prio=10 os_prio=31 cpu=2.67ms elapsed=3.12s tid=0x0000000145263200 nid=59907 runnable  [0x000000031967e000]
"nioEventLoopGroup-3-8" #75 [50179] prio=10 os_prio=31 cpu=3.02ms elapsed=3.12s tid=0x0000000143cea600 nid=50179 runnable  [0x0000000319a96000]
"nioEventLoopGroup-3-9" #77 [58883] prio=10 os_prio=31 cpu=2.58ms elapsed=3.12s tid=0x00000001434eb800 nid=58883 runnable  [0x0000000319eae000]
"pool-2-thread-1" #36 [35335] daemon prio=5 os_prio=31 cpu=106.47ms elapsed=57.46s tid=0x0000000126bbb400 nid=35335 in Object.wait()  [0x0000000170fdb
"pool-3-thread-1" #52 [40711] daemon prio=5 os_prio=31 cpu=50.22ms elapsed=52.46s tid=0x000000014480a200 nid=40711 waiting on condition  [0x0000000170
"pool-4-thread-1" #53 [34567] daemon prio=5 os_prio=31 cpu=122.14ms elapsed=52.44s tid=0x000000014000be00 nid=34567 waiting on condition  [0x000000017
"pool-5-thread-1" #54 [64259] daemon prio=5 os_prio=31 cpu=58.75ms elapsed=52.44s tid=0x0000000142a51c00 nid=64259 waiting on condition  [0x0000000172
"pool-6-thread-1" #55 [44803] daemon prio=5 os_prio=31 cpu=84.64ms elapsed=52.44s tid=0x0000000142a52400 nid=44803 waiting on condition  [0x0000000172
"pool-7-thread-1" #91 [54019] daemon prio=5 os_prio=31 cpu=12.80ms elapsed=2.29s tid=0x000000014505bc00 nid=54019 waiting on condition  [0x000000031bb
After
❯ jstack 28155 | grep '^"' | sort  | cut -b 1-150
"Agent thread" #35 [40195] daemon prio=5 os_prio=31 cpu=310.69ms elapsed=85.55s tid=0x00000001273a4800 nid=40195 waiting on condition  [0x000000016fe2
"Api Webserver" #36 [35331] daemon prio=5 os_prio=31 cpu=49.20ms elapsed=85.55s tid=0x00000001273a6e00 nid=35331 in Object.wait()  [0x0000000318205000
"Attach Listener" #90 [54531] daemon prio=9 os_prio=31 cpu=5.00ms elapsed=45.39s tid=0x000000013fc1d800 nid=54531 waiting on condition  [0x00000000000
"C1 CompilerThread0" #17 [27651] daemon prio=9 os_prio=31 cpu=3003.08ms elapsed=91.09s tid=0x000000013c019600 nid=27651 waiting on condition  [0x00000
"C2 CompilerThread0" #14 [27395] daemon prio=9 os_prio=31 cpu=6974.75ms elapsed=91.09s tid=0x000000013c010e00 nid=27395 waiting on condition  [0x00000
"Cleaner-0" #22 [29191] daemon prio=8 os_prio=31 cpu=0.17ms elapsed=90.48s tid=0x000000013c156200 nid=29191 waiting on condition  [0x000000016e392000]
"Common-Cleaner" #18 [29699] daemon prio=8 os_prio=31 cpu=3.71ms elapsed=91.08s tid=0x000000013c05a400 nid=29699 waiting on condition  [0x000000016df7
"Finalizer" #10 [30211] daemon prio=8 os_prio=31 cpu=1.72ms elapsed=91.09s tid=0x000000013c00c000 nid=30211 in Object.wait()  [0x000000016d332000]
"G1 Conc#0" os_prio=31 cpu=51.47ms elapsed=91.11s tid=0x000000013b60b7c0 nid=12547 runnable
"G1 Conc#1" os_prio=31 cpu=51.53ms elapsed=90.30s tid=0x000000013b792b20 nid=41475 runnable
"G1 Main Marker" os_prio=31 cpu=0.42ms elapsed=91.11s tid=0x000000013b60ae50 nid=13315 runnable
"G1 Refine#0" os_prio=31 cpu=46.13ms elapsed=91.11s tid=0x000000013b810c00 nid=16387 runnable
"G1 Service" os_prio=31 cpu=2.21ms elapsed=91.11s tid=0x000000013b60dfa0 nid=16643 runnable
"GC Thread#0" os_prio=31 cpu=55.83ms elapsed=91.11s tid=0x000000013b60a6b0 nid=13827 runnable
"GC Thread#1" os_prio=31 cpu=52.16ms elapsed=90.37s tid=0x000000013b644ff0 nid=28675 runnable
"GC Thread#2" os_prio=31 cpu=54.56ms elapsed=90.37s tid=0x000000013b645390 nid=43267 runnable
"GC Thread#3" os_prio=31 cpu=56.59ms elapsed=90.37s tid=0x000000013b77a4d0 nid=33283 runnable
"GC Thread#4" os_prio=31 cpu=52.18ms elapsed=90.37s tid=0x000000013b77a870 nid=33539 runnable
"GC Thread#5" os_prio=31 cpu=54.38ms elapsed=90.37s tid=0x000000013b77ade0 nid=34051 runnable
"GC Thread#6" os_prio=31 cpu=55.83ms elapsed=90.37s tid=0x000000013b77b350 nid=34307 runnable
"GC Thread#7" os_prio=31 cpu=56.07ms elapsed=90.37s tid=0x000000013b77b8c0 nid=34563 runnable
"GC Thread#8" os_prio=31 cpu=53.07ms elapsed=90.37s tid=0x000000013b77be30 nid=41987 runnable
"LogStash::Runner" #1 [10243] prio=5 os_prio=31 cpu=4813.94ms elapsed=91.11s tid=0x000000013b817400 nid=10243 in Object.wait()  [0x000000016bfac000]
"Monitor Deflation Thread" #13 [26883] daemon prio=9 os_prio=31 cpu=6.90ms elapsed=91.09s tid=0x000000013c010600 nid=26883 runnable  [0x00000000000000
"Notification Thread" #19 [28419] daemon prio=9 os_prio=31 cpu=0.02ms elapsed=91.08s tid=0x000000013b9f6a00 nid=28419 runnable  [0x0000000000000000]
"Reference Handler" #9 [25091] daemon prio=10 os_prio=31 cpu=4.06ms elapsed=91.09s tid=0x000000013c00dc00 nid=25091 waiting on condition  [0x000000016
"Ruby-0-JIT-1" #33 [35075] daemon prio=1 os_prio=31 cpu=565.89ms elapsed=89.42s tid=0x000000012a228a00 nid=35075 waiting on condition  [0x000000016fa1
"Ruby-0-Thread-12: /private/tmp/logstash-8.17.1/vendor/bundle/jruby/3.1.0/gems/thwait-0.2.0/lib/thwait.rb:91" #47 [44035] daemon prio=5 os_prio=31 cpu
"Ruby-0-Thread-13: /private/tmp/logstash-8.17.1/vendor/bundle/jruby/3.1.0/gems/thwait-0.2.0/lib/thwait.rb:91" #48 [65027] daemon prio=5 os_prio=31 cpu
"Ruby-0-Thread-4@puma reactor: /private/tmp/logstash-8.17.1/vendor/bundle/jruby/3.1.0/gems/puma-6.5.0-java/lib/puma/reactor.rb:37" #38 [35587] daemon
"Ruby-0-Thread-5@puma srv threadpool reaper: /private/tmp/logstash-8.17.1/vendor/bundle/jruby/3.1.0/gems/puma-6.5.0-java/lib/puma/thread_pool.rb:356"
"Ruby-0-Thread-6@puma srv threadpool trimmer: /private/tmp/logstash-8.17.1/vendor/bundle/jruby/3.1.0/gems/puma-6.5.0-java/lib/puma/thread_pool.rb:356"
"Ruby-0-Thread-7@puma srv: /private/tmp/logstash-8.17.1/vendor/bundle/jruby/3.1.0/gems/puma-6.5.0-java/lib/puma/server.rb:265" #41 [38403] daemon prio
"Service Thread" #12 [26371] daemon prio=9 os_prio=31 cpu=8.76ms elapsed=91.09s tid=0x000000013b9ffe00 nid=26371 runnable  [0x0000000000000000]
"Signal Dispatcher" #11 [25859] daemon prio=9 os_prio=31 cpu=0.15ms elapsed=91.09s tid=0x000000013c00c800 nid=25859 waiting on condition  [0x000000000
"VM Periodic Task Thread" os_prio=31 cpu=39.01ms elapsed=91.10s tid=0x000000013b60f550 nid=17411 waiting on condition
"VM Thread" os_prio=31 cpu=35.37ms elapsed=91.10s tid=0x000000013b6122e0 nid=18691 runnable
"[main]-pipeline-manager" #42 [36611] daemon prio=5 os_prio=31 cpu=16.03ms elapsed=85.32s tid=0x000000012a49ee00 nid=36611 waiting on condition  [0x00
"[main]<beats" #45 [37635] daemon prio=5 os_prio=31 cpu=68.80ms elapsed=85.09s tid=0x0000000127b09800 nid=37635 in Object.wait()  [0x0000000319265000]
"[main]>worker0" #44 [37127] daemon prio=5 os_prio=31 cpu=263.57ms elapsed=85.09s tid=0x000000012a4a0c00 nid=37127 waiting on condition  [0x0000000319
"logstash-pipeline-flush" #46 [43523] daemon prio=5 os_prio=31 cpu=3.55ms elapsed=85.08s tid=0x000000012a4a3400 nid=43523 waiting on condition  [0x000
"my_beats-beatsHandler[T#10]" #76 [58371] daemon prio=5 os_prio=31 cpu=21.70ms elapsed=77.94s tid=0x000000012a00ee00 nid=58371 waiting on condition  [
"my_beats-beatsHandler[T#1]" #55 [45059] daemon prio=5 os_prio=31 cpu=54.67ms elapsed=78.03s tid=0x000000012a009e00 nid=45059 waiting on condition  [0
"my_beats-beatsHandler[T#2]" #58 [45827] daemon prio=5 os_prio=31 cpu=30.69ms elapsed=77.98s tid=0x00000001272b2e00 nid=45827 waiting on condition  [0
"my_beats-beatsHandler[T#3]" #61 [47107] daemon prio=5 os_prio=31 cpu=22.87ms elapsed=77.98s tid=0x0000000128071200 nid=47107 waiting on condition  [0
"my_beats-beatsHandler[T#4]" #64 [61443] daemon prio=5 os_prio=31 cpu=23.08ms elapsed=77.97s tid=0x000000012b89b200 nid=61443 waiting on condition  [0
"my_beats-beatsHandler[T#5]" #66 [60675] daemon prio=5 os_prio=31 cpu=19.46ms elapsed=77.96s tid=0x000000013c810400 nid=60675 waiting on condition  [0
"my_beats-beatsHandler[T#6]" #68 [48643] daemon prio=5 os_prio=31 cpu=21.41ms elapsed=77.96s tid=0x000000013c80e000 nid=48643 waiting on condition  [0
"my_beats-beatsHandler[T#7]" #70 [60163] daemon prio=5 os_prio=31 cpu=17.55ms elapsed=77.95s tid=0x000000013c812600 nid=60163 waiting on condition  [0
"my_beats-beatsHandler[T#8]" #72 [59651] daemon prio=5 os_prio=31 cpu=27.70ms elapsed=77.95s tid=0x000000012b8d6600 nid=59651 waiting on condition  [0
"my_beats-beatsHandler[T#9]" #74 [58627] daemon prio=5 os_prio=31 cpu=18.80ms elapsed=77.94s tid=0x000000012b91f400 nid=58627 waiting on condition  [0
"my_beats-bossGroup[T#1]" #49 [39431] daemon prio=5 os_prio=31 cpu=21.36ms elapsed=85.01s tid=0x000000013cba9200 nid=39431 runnable  [0x00000003184120
"my_beats-idleStateHandler[T#1]" #54 [63491] daemon prio=5 os_prio=31 cpu=4.34ms elapsed=78.03s tid=0x000000013bdf1a00 nid=63491 waiting on condition
"my_beats-idleStateHandler[T#2]" #57 [62979] daemon prio=5 os_prio=31 cpu=3.12ms elapsed=77.98s tid=0x00000001272b2600 nid=62979 waiting on condition
"my_beats-idleStateHandler[T#3]" #60 [46851] daemon prio=5 os_prio=31 cpu=3.11ms elapsed=77.98s tid=0x0000000128070600 nid=46851 waiting on condition
"my_beats-idleStateHandler[T#4]" #63 [61955] daemon prio=5 os_prio=31 cpu=3.13ms elapsed=77.97s tid=0x000000012b8a4e00 nid=61955 waiting on condition
"my_beats-workGroup[T#10]" #75 [50435] daemon prio=5 os_prio=31 cpu=2.61ms elapsed=77.94s tid=0x000000013ccd8e00 nid=50435 runnable  [0x000000031cbb60
"my_beats-workGroup[T#11]" #77 [51203] daemon prio=5 os_prio=31 cpu=2.68ms elapsed=77.93s tid=0x00000001273a6000 nid=51203 runnable  [0x000000031cfce0
"my_beats-workGroup[T#12]" #78 [57859] daemon prio=5 os_prio=31 cpu=2.56ms elapsed=77.93s tid=0x0000000128812200 nid=57859 runnable  [0x000000031d1da0
"my_beats-workGroup[T#13]" #79 [51459] daemon prio=5 os_prio=31 cpu=2.73ms elapsed=77.92s tid=0x00000001271a0400 nid=51459 runnable  [0x000000031d3e60
"my_beats-workGroup[T#14]" #80 [57091] daemon prio=5 os_prio=31 cpu=2.58ms elapsed=77.92s tid=0x000000013c80c000 nid=57091 runnable  [0x000000031d5f20
"my_beats-workGroup[T#15]" #81 [51715] daemon prio=5 os_prio=31 cpu=2.24ms elapsed=77.92s tid=0x000000012737b600 nid=51715 runnable  [0x000000031d7fe0
"my_beats-workGroup[T#16]" #82 [56323] daemon prio=5 os_prio=31 cpu=2.51ms elapsed=77.91s tid=0x000000012a054200 nid=56323 runnable  [0x000000031da0a0
"my_beats-workGroup[T#17]" #83 [56067] daemon prio=5 os_prio=31 cpu=2.46ms elapsed=77.91s tid=0x000000012b848200 nid=56067 runnable  [0x000000031dc160
"my_beats-workGroup[T#18]" #84 [55811] daemon prio=5 os_prio=31 cpu=2.38ms elapsed=77.91s tid=0x000000013c80c800 nid=55811 runnable  [0x000000031de220
"my_beats-workGroup[T#19]" #85 [55299] daemon prio=5 os_prio=31 cpu=2.40ms elapsed=77.90s tid=0x000000013ccd9600 nid=55299 runnable  [0x000000031e02e0
"my_beats-workGroup[T#1]" #53 [63747] daemon prio=5 os_prio=31 cpu=17.29ms elapsed=78.03s tid=0x000000013c80ec00 nid=63747 runnable  [0x0000000319eae0
"my_beats-workGroup[T#20]" #86 [52739] daemon prio=5 os_prio=31 cpu=2.38ms elapsed=77.90s tid=0x000000012b848a00 nid=52739 runnable  [0x000000031e23a0
"my_beats-workGroup[T#2]" #56 [63235] daemon prio=5 os_prio=31 cpu=4.54ms elapsed=77.98s tid=0x0000000127818200 nid=63235 runnable  [0x000000031a4d200
"my_beats-workGroup[T#3]" #59 [46339] daemon prio=5 os_prio=31 cpu=4.91ms elapsed=77.98s tid=0x00000001273a5800 nid=46339 runnable  [0x000000031aaf600
"my_beats-workGroup[T#4]" #62 [62211] daemon prio=5 os_prio=31 cpu=4.39ms elapsed=77.97s tid=0x000000013c813600 nid=62211 runnable  [0x000000031b11a00
"my_beats-workGroup[T#5]" #65 [60931] daemon prio=5 os_prio=31 cpu=4.59ms elapsed=77.96s tid=0x000000013ba5ca00 nid=60931 runnable  [0x000000031b73e00
"my_beats-workGroup[T#6]" #67 [60419] daemon prio=5 os_prio=31 cpu=2.83ms elapsed=77.96s tid=0x000000012b89ba00 nid=60419 runnable  [0x000000031bb5600
"my_beats-workGroup[T#7]" #69 [49155] daemon prio=5 os_prio=31 cpu=2.67ms elapsed=77.95s tid=0x000000012b8d5e00 nid=49155 runnable  [0x000000031bf6e00
"my_beats-workGroup[T#8]" #71 [49667] daemon prio=5 os_prio=31 cpu=2.76ms elapsed=77.95s tid=0x000000012a00b000 nid=49667 runnable  [0x000000031c38600
"my_beats-workGroup[T#9]" #73 [59139] daemon prio=5 os_prio=31 cpu=3.10ms elapsed=77.94s tid=0x0000000128831400 nid=59139 runnable  [0x000000031c79e00
"pool-2-thread-1" #34 [24071] daemon prio=5 os_prio=31 cpu=106.97ms elapsed=85.71s tid=0x000000013caf4600 nid=24071 in Object.wait()  [0x000000016fc1f
"pool-3-thread-1" #50 [40967] daemon prio=5 os_prio=31 cpu=97.26ms elapsed=80.70s tid=0x000000012a832400 nid=40967 waiting on condition  [0x000000016f
"pool-4-thread-1" #51 [64515] daemon prio=5 os_prio=31 cpu=80.62ms elapsed=80.68s tid=0x000000012a832c00 nid=64515 waiting on condition  [0x0000000319
"pool-5-thread-1" #52 [64003] daemon prio=5 os_prio=31 cpu=99.09ms elapsed=80.68s tid=0x000000012a809200 nid=64003 waiting on condition  [0x0000000319
"pool-6-thread-1" #87 [52999] daemon prio=5 os_prio=31 cpu=78.22ms elapsed=75.67s tid=0x000000013bb9b000 nid=52999 waiting on condition  [0x000000031e
"pool-7-thread-1" #89 [53259] daemon prio=5 os_prio=31 cpu=69.30ms elapsed=50.62s tid=0x000000012980b200 nid=53259 waiting on condition  [0x000000031e

bossGroup = new NioEventLoopGroup(eventLoopThreadCount); // TODO: add a config to make it adjustable, no need many threads
workGroup = new NioEventLoopGroup(eventLoopThreadCount);
bossGroup = new NioEventLoopGroup(eventLoopThreadCount, daemonThreadFactory(id + "-bossGroup")); // TODO: add a config to make it adjustable, no need many threads
workGroup = new NioEventLoopGroup(eventLoopThreadCount, daemonThreadFactory(id + "-workGroup"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, this is helpful for investigation.

src/main/java/org/logstash/beats/Server.java Show resolved Hide resolved
@jsvd jsvd requested a review from mashhurs January 29, 2025 21:40
@mashhurs
Copy link
Contributor

I have raised a PR against your target branch to fix test failures: jsvd#1
(I just didn't want you spend time on such minors as we are at 9.0 preparation)

jsvd added 3 commits January 30, 2025 09:16
Update the Java unit tests which use the interface changed Server class.
Copy link
Contributor

@mashhurs mashhurs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jsvd jsvd merged commit 307a6f1 into logstash-plugins:main Jan 30, 2025
3 checks passed
@jsvd jsvd deleted the name_threads branch January 30, 2025 16:23
@mashhurs
Copy link
Contributor

Self note: I think backporting this change to 6.x will be also good (as 8.x stays for years...). I will backport.

jsvd added a commit to jsvd/logstash-input-beats that referenced this pull request Feb 4, 2025
jsvd added a commit that referenced this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants