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.

Provide non-default, unique thread names

See original GitHub issue

This 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: screen shot 2018-01-23 at 10 24 33 pm

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
yschimkecommented, Jan 24, 2018

+1 want to submit a PR?

0reactions
yschimkecommented, Sep 22, 2019

I think this is supported now.

Read more comments on GitHub >

github_iconTop 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 >

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