Provide non-default, unique thread names
See original GitHub issueThis library creates threads with either no name, or in some cases the same name repeatedly. It’s very useful for threads to have unique names for debugging purposes, and this is one of the inspections YourKit provides for recorded snapshots.
Currently no name is provided for the thread created at Http2Connection.java#L483 and the same name is used between multiple threads Util.java#L203.
A pattern I’ve seen elsewhere for generating unique thread names is a name pattern (e.g. okhttp-pool-%d
which is then templated with an incrementing integer as new threads are created. An example of this pattern is in Guava at ThreadFactoryBuilder.java
Screenshot from YourKit:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Apparent thread leak with non-default akka dispatcher
I've got an application that is using akka and I'm seeing some really strange behavior. I'm assuming this is something dumb that I'm...
Read more >Usability improvements for std::thread
Threads have a name. Most operating systems, including real-time operating systems for embedded platforms, provide a way to name threads.
Read more >Email threading and how to change your threading mode
Conversation threading is a feature used to automatically group messages with their replies. Every email contains a unique message-id, ...
Read more >Java Agent Configuration Properties
In general, the node name must be unique within the business application and physical host. If you want to use the same node...
Read more >Python SyntaxError: non-default argument follows default
On Career Karma, learn about the Python SyntaxError: non-default argument follows ... def test_function(score=25, class=6, name): pass ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 want to submit a PR?
I think this is supported now.