
Java ThreadFactory Usage to Name Your Threads Clearly
Write a ThreadFactory that names threads, sets daemon status and an uncaught exception handler, so dumps and logs show which pool a thread is in.
Stack traces, heap dumps, remote debuggers and the habits that find a bug faster than guessing.

Write a ThreadFactory that names threads, sets daemon status and an uncaught exception handler, so dumps and logs show which pool a thread is in.

Set up Java remote debugging with the JDWP agent, connect from jdb or an IDE, reach a container or Kubernetes pod safely and avoid exposing the port.

Understand how ThreadLocal leaks memory in thread pools and web apps, how to clean up with remove, and when ScopedValue or explicit parameters are better.
Use Native Memory Tracking to see where non heap memory goes: Metaspace, threads, code cache, GC structures and direct buffers, with diffs.

Debug Spring bean wiring: read the failure analysis, list beans with Actuator, use the conditions report and turn on bean creation logging.
We send one email when a new post is published. No spam.