question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WeakOrderQueue.transfer is 1st Hot Method

See original GitHub issue

Expected behavior

4.1.44.Final should work same as 4.0.49.Final(WeakOrderQueue#transfer) Hot threads and methods in 4.0.49 WeChatWorkScreenshot_d5769c74-31b4-42a2-abe5-2f288a4ec14f

Actual behavior

4.0.49.Final works better than 4.1.44.Final Hot threads and methods in 4.1.44 WeChatWorkScreenshot_b83f2206-b243-4bfd-b004-4ba223f7ee78

Steps to reproduce

Be part of a service, it is hard to strip a demo code.

Netty version

4.1.44.Final

JVM version (e.g. java -version)

java version “1.8.0_171” Java™ SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot™ 64-Bit Server VM (build 25.171-b11, mixed mode)

OS version (e.g. uname -a)

Linux 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
franz1981commented, May 13, 2020

@louxiu using -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints is useful when inlined methods are the most costy ones: if it won’t make any difference “maybe” is that they are not the most costy one, but the flags should be there to make sure it’s the case

0reactions
louxiucommented, May 20, 2020

@louxiu so just so I understand correct… There are a lot of “empty” WeakOrderQueue and the problem is the iteration of 64 links ?

Yes. Currently we disable drop ratio. It’s seems that only drop ratio above some threshold, it will be a problem. Not sure wether there is an easy way(or worth to optimize) to avoid loop “empty” WeakOrderQueue list.

Read more comments on GitHub >

github_iconTop Results From Across the Web

First-order heat transfer model - YouTube
Basic first -order heat transfer equation using a lumped model.
Read more >
The Old Reader
Read all your favorite online content in one place. Import your subscriptions in one click, find your friends, and start sharing.
Read more >
Comparing 38524ec3e2...37c03cce5e - netty5 - iGNUranza Git
hasBeenRecycler field first Modifications: WeakOrderQueue test the ... It is used currently in hot path methods invoked when an allocation and de-allocation ...
Read more >
Object Pool Implementation of Netty--Brief Analysis of ...
Recycler#recycle (obsolete, transferred to handler): Recycle objects ... The add method of WeakOrderQueue adds elements when the removed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found