Java Backend Technology
Java Backend Technology
Nov 29, 2024 · Backend Development

Why Does submit() Hide Exceptions in Java Thread Pools? Uncover the Truth

This article explains why tasks submitted with submit() in a Java thread pool silently swallow exceptions, contrasts it with execute(), and presents three practical solutions—including try‑catch, a default UncaughtExceptionHandler, and overriding afterExecute—to reliably capture and handle those errors.

Exception HandlingExecutorServiceJava
0 likes · 14 min read
Why Does submit() Hide Exceptions in Java Thread Pools? Uncover the Truth
dbaplus Community
dbaplus Community
Oct 23, 2024 · Backend Development

Mastering Java Thread Pools: Common Pitfalls and Best Practices

This article outlines how to correctly create, monitor, and configure Java ThreadPoolExecutor instances, explains why using the Executors factory can cause OOM, recommends separate named pools per business, provides formulas for sizing CPU‑bound and I/O‑bound workloads, and highlights real‑world pitfalls and dynamic‑configuration solutions.

ConcurrencyMonitoringSpring
0 likes · 16 min read
Mastering Java Thread Pools: Common Pitfalls and Best Practices
Top Architect
Top Architect
Mar 25, 2024 · Backend Development

Backend Interface Performance Optimization: Common Issues and Practical Solutions

This article summarizes the typical causes of slow backend interfaces—such as MySQL slow queries, complex business logic, thread‑pool misconfiguration, lock contention and machine‑level problems—and provides concrete optimization techniques, code examples, and best‑practice recommendations for Java services.

BackendCachingOptimization
0 likes · 20 min read
Backend Interface Performance Optimization: Common Issues and Practical Solutions
Code Ape Tech Column
Code Ape Tech Column
Aug 21, 2023 · Backend Development

Understanding Default Tomcat Settings in Spring Boot 2.7.10 and Tuning Connection Parameters

This article explains the default Tomcat configuration bundled with Spring Boot 2.7.10, details key parameters such as accept‑count, max‑connections, thread pool sizes and timeouts, shows how Tomcat’s internal threads work, provides sample YAML configurations and testing results, and offers practical tuning guidance for Java backend services.

connection timeoutspring-bootthread-pool
0 likes · 13 min read
Understanding Default Tomcat Settings in Spring Boot 2.7.10 and Tuning Connection Parameters
Architecture Digest
Architecture Digest
Jul 26, 2023 · Backend Development

Why ThreadPoolExecutor Threads Are Not Reclaimed Without Calling shutdown in Java

The article explains how a Java ThreadPoolExecutor can retain hundreds of waiting threads when shutdown is omitted, analyzes the GC‑root relationship of running threads, and demonstrates through code and JVisualVM screenshots that invoking shutdown or shutdownNow properly interrupts idle workers, removes them from the pool, and allows both the worker threads and the thread‑pool object to be garbage‑collected.

JavaShutdownThreadPoolExecutor
0 likes · 12 min read
Why ThreadPoolExecutor Threads Are Not Reclaimed Without Calling shutdown in Java
Top Architect
Top Architect
Sep 2, 2022 · Backend Development

Debugging Slow Update Calls in a Microservice Backend: Analysis and Fixes

After a recent deployment a backend update operation became extremely slow, revealing RPC retry, thread‑pool misconfiguration, and row‑lock contention between services, which were analyzed and resolved through thread‑pool tuning and transaction separation.

BackendPerformancedebugging
0 likes · 7 min read
Debugging Slow Update Calls in a Microservice Backend: Analysis and Fixes
Top Architect
Top Architect
Aug 18, 2022 · Backend Development

Common Causes of Backend Interface Performance Issues and Their Optimization Strategies

The article systematically analyzes why backend APIs become slow—covering database slow queries, complex business logic, thread‑pool misconfiguration, lock design flaws, and machine problems—and presents practical Java‑based optimization techniques such as pagination fixes, index tuning, multithreading, proper thread‑pool sizing, lock refinement, caching, and asynchronous callbacks.

BackendCachingDatabase
0 likes · 18 min read
Common Causes of Backend Interface Performance Issues and Their Optimization Strategies
Java Backend Technology
Java Backend Technology
Jun 10, 2022 · Backend Development

How MemorySafeLBQ Prevents OOM in Java Thread Pools – A Deep Dive

This article explores the design and implementation of MemoryLimitedLBQ and MemorySafeLBQ, two custom LinkedBlockingQueue variants that limit memory usage to avoid Out‑Of‑Memory errors in Java thread pools, comparing their mechanisms, instrumentation dependencies, and practical usage in open‑source projects.

ConcurrencyInstrumentationlinkedblockingqueue
0 likes · 13 min read
How MemorySafeLBQ Prevents OOM in Java Thread Pools – A Deep Dive
Cognitive Technology Team
Cognitive Technology Team
Apr 25, 2022 · Backend Development

Enforcing Traceable Thread Pools in Spring Cloud to Preserve Trace Context

This article explains how to prevent loss of tracing information in Spring Cloud by using traceable thread pools, detailing three approaches: wrapping an ExecutorService with TraceableExecutorService, using Tracer.currentTraceContext().wrap, and employing TraceCallable/TraceRunnable for context propagation.

Sleuthbackend-developmentspring-cloud
0 likes · 4 min read
Enforcing Traceable Thread Pools in Spring Cloud to Preserve Trace Context
Top Architect
Top Architect
Dec 27, 2021 · Backend Development

Backend Interface Performance Optimization: Common Issues and Practical Solutions

This article summarizes typical causes of backend interface latency—such as slow MySQL queries, complex business logic, thread‑pool and lock misconfigurations, and machine constraints—and presents concrete optimization techniques including pagination fixes, indexing strategies, multithreading, proper thread‑pool tuning, lock refinement, caching, and asynchronous callbacks.

BackendOptimizationthread-pool
0 likes · 16 min read
Backend Interface Performance Optimization: Common Issues and Practical Solutions
Programmer DD
Programmer DD
Jun 27, 2021 · Backend Development

Mastering Java Thread Pools: Core Pool, BlockingQueue, and Real-World Tuning

This article explains how Java thread pools work, clarifies common misconceptions about core thread creation, details the role of BlockingQueue, and provides practical guidelines for sizing core, max threads, and queue capacity based on concurrency and GC considerations.

BlockingQueueConcurrencyPerformance
0 likes · 11 min read
Mastering Java Thread Pools: Core Pool, BlockingQueue, and Real-World Tuning
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 17, 2019 · Backend Development

Why Alibaba Prohibits Certain Java Practices: Logging, Collections, Serialization, and More

The article explains Alibaba's Java Development Manual rules—covering logging APIs, collection initialization, foreach loop modifications, static SimpleDateFormat, string concatenation in loops, serialVersionUID handling, subList usage, inheritance, isSuccess naming, COUNT(*) versus COUNT(col), and thread‑pool creation—providing the rationale behind each prohibition for safer, more efficient backend Java code.

backend-developmentcoding standardsserialization
0 likes · 13 min read
Why Alibaba Prohibits Certain Java Practices: Logging, Collections, Serialization, and More
Tencent Database Technology
Tencent Database Technology
Feb 27, 2019 · Operations

Elasticsearch Cluster Recovery Pitfall: Excessive Shard Recovery Concurrency Leads to Cluster Hang

This article details a real‑world Elasticsearch cluster recovery issue where setting the shard recovery concurrency too high saturated the generic thread pool, causing the entire cluster to hang, and explains the underlying concepts, reproduction steps, analysis, and mitigation measures.

Cluster RecoveryTroubleshootingshard-recovery
0 likes · 10 min read
Elasticsearch Cluster Recovery Pitfall: Excessive Shard Recovery Concurrency Leads to Cluster Hang
Java Backend Technology
Java Backend Technology
Oct 22, 2017 · Backend Development

Why ThreadLocal Can Trigger OOM in Java Thread Pools and How to Prevent It

This article explains how misuse of ThreadLocal in Java thread pools can cause memory‑leak‑induced Out‑Of‑Memory errors, illustrates the problem with a reproducible example, analyzes the underlying ThreadLocalMap mechanics, and provides best‑practice guidelines such as invoking remove() to avoid leaks.

JVMmemory leakthread-pool
0 likes · 9 min read
Why ThreadLocal Can Trigger OOM in Java Thread Pools and How to Prevent It
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jul 13, 2017 · Backend Development

How We Boosted a Payment Service from 40TPS to 60TPS: Real-World Backend Optimizations

An in‑depth case study of a no‑card payment system reveals common backend pitfalls—database deadlocks, long‑running transactions, thread‑pool misuse, excessive logging, and missing monitoring—and demonstrates practical fixes using Redis locks, refined transaction scopes, controlled thread pools, and optimized logging to dramatically improve scalability and reliability.

BackendDatabaseJava
0 likes · 11 min read
How We Boosted a Payment Service from 40TPS to 60TPS: Real-World Backend Optimizations
dbaplus Community
dbaplus Community
Jun 15, 2016 · Backend Development

Boosting a Payment System from 40TPS to 60TPS: Real-World Backend Performance Hacks

This article walks through a real‑world payment service’s performance evolution, detailing the server environment, a dozen common bottlenecks such as database deadlocks, long‑running transactions, CPU saturation, thread‑pool misuse, logging overload, cache issues, and provides concrete code‑level optimizations, architectural changes, and monitoring tips that raised throughput and stability.

BackendPerformancelogging
0 likes · 21 min read
Boosting a Payment System from 40TPS to 60TPS: Real-World Backend Performance Hacks
High Availability Architecture
High Availability Architecture
Mar 2, 2016 · Fundamentals

Understanding Concurrency: Threads, Goroutine, Actor Model, and Thread‑Pool Strategies

This article explores the fundamentals of concurrency versus parallelism, the challenges of writing correct concurrent programs, the evolution from OS threads to green threads, Goroutine scheduling, actor‑model concepts, and modern strategies such as thread pools, async callbacks, and Rust's ownership model.

ConcurrencyGoroutineParallelism
0 likes · 20 min read
Understanding Concurrency: Threads, Goroutine, Actor Model, and Thread‑Pool Strategies