1. Introduction
Transaction timeout is one of the most common problems reported in traditional WebSphere Application Server (WAS) and WebSphere Liberty environments, and it can occur for a variety of reasons.
A transaction timeout message indicates that a transaction has exceeded its configured timeout value and was rolled back by the Transaction Manager. This typically happens when an application operation takes longer than expected due to performance bottlenecks, resource contention, problems with the resource managers, or an incorrect timeout configuration. Transaction timeouts are usually symptoms of long-running transactions or of database, resource, or infrastructure performance issues — rather than defects in the Transaction Manager itself.
2. Understanding the Transaction timeout configuration values
Before troubleshooting transaction timeout issues, it is important to understand the various timeout values that can be configured in traditional WebSphere Application Server and WebSphere Liberty.
Total transaction lifetime timeout — The default maximum time, in seconds, allowed for a transaction that is started on the server before the Transaction Service initiates timeout completion. Any transaction that does not begin completion processing before this timeout expires is rolled back. This timeout is used only if the application component does not set its own transaction timeout. 120 seconds is the default value.
Maximum transaction timeout — Specifies, in seconds, the upper limit of the transaction timeout for transactions that run in the server. It caps any application-specified value. 300 seconds is the default value.
Difference between Total transaction lifetime timeout and Maximum transaction timeout:
The Total transaction lifetime timeout is the default maximum time a transaction started on the server is allowed to run before the transaction service begins timeout completion, meaning rollback. It applies to transactions that don't specify their own timeout value — for instance, container-managed transactions where the application component hasn't set anything explicit. If completion processing hasn't started before this limit is reached, the transaction is marked for rollback. Its default value is 120 seconds. Because it's only a default, an application component is free to override it with its own timeout.
The Maximum transaction timeout, by contrast, is the upper limit for every transaction running on the server, including ones that carry or request their own timeout — such as transactions imported or propagated from a remote client, or a value set by the application component itself. No transaction is permitted to exceed this figure, whatever it asks for. Its default value is 300 seconds, and unlike the lifetime timeout, it cannot be overridden by an application; it caps even application-set values.
Client inactivity timeout — Specifies the maximum duration, in seconds, between transactional requests from a remote client. Any period of client inactivity that exceeds this timeout results in the transaction being rolled back in the application server. 60 seconds is the default value.
ORB service request timeout — Specifies the number of seconds to wait before timing out on a request message. 10 seconds is the default value.
2.1 Application-Level overrides
An application can override the server-side total transaction lifetime timeout by calling UserTransaction.setTransactionTimeout(). Once an application calls this method, the value stays associated with the thread until the next time the method is called — and it persists even when the thread is reused for a different request. Note that this affects bean-managed transactions (BMT) only, not container-managed transactions (CMT).
Instead of changing the server-wide timeout, the timeout can also be configured in the EJB deployment descriptor, making it application-specific. The relevant embeddable EJB container configuration properties are:
Embeddable EJB container configuration properties:
com.ibm.websphere.tx.clientInactivityTimeout
com.ibm.websphere.tx.maximumTransactionTimeout
com.ibm.websphere.tx.totalTranLifetimeTimeout
For details, see Table 6 in the above link.
Precedence: Application-specific and EJB-specific timeout values take precedence over the transaction timeout values defined at server scope.
2.2 Propagating the Transaction timeout to resource managers
The JVM custom property com.ibm.websphere.tx.propagateXAResourceTransactionTimeout=true determines whether the remaining lifetime of a JTA transaction is propagated to the underlying XA resource managers (such as databases or messaging providers) when they are enlisted in a global transaction. When this property is set to true, the remaining time left in a global transaction is propagated to XAResources on enlistment.
3. Understanding the WTRN0006W and WTRN0124I Messages
These messages are closely related and usually appear together when a transaction exceeds its configured timeout in the WAS / Liberty Transaction Manager. They represent different stages of the timeout processing lifecycle — from detection of the timeout to the diagnostic information needed for root cause analysis.
3.1 WTRN0006W — Transaction Has Timed Out
WTRN0006W: Transaction {0} has timed out after {1} seconds.
WTRN0006W is the first warning message in the sequence. The Transaction Manager detects that a transaction has been active longer than its configured timeout — whether that is the total transaction lifetime timeout, the server-level transaction timeout, an application-specified timeout, or an EJB-container-specific timeout value. At this point, the transaction status is marked as rollback-only.
Parameters:
• {0} Transaction ID — The global transaction identifier (a long hexadecimal string). This is the key used to correlate this event with the other messages in the sequence and with any application logs.
• {1} Timeout value in seconds — The effective timeout that was exceeded. This value comes from one of the following: the total transaction lifetime timeout (default: 120 seconds, set in the Transaction Service settings), a component-level timeout set programmatically via UserTransaction.setTransactionTimeout(), or the maximum transaction timeout cap.
Meaning: The transaction was still active (neither committed nor rolled back) when the timer expired, so the Transaction Manager marks it rollback-only. The work itself may still be running on the thread — the timeout does not interrupt the thread; it only guarantees the transaction can no longer commit.
WTRN0006W is generally followed by the WTRN0124I message, which provides valuable information about the root cause of the issue.
3.2 WTRN0124I — Thread Identification (The Diagnostic Clue)
WTRN0124I: When the timeout occurred the thread with which the transaction is, or was most recently, associated was {0}. The stack trace of this thread when the timeout occurred was: {1}
Explanation: The stack, captured when the timeout occurred, is provided to help with diagnosis and debugging of transaction timeouts.
WTRN0124I usually follows WTRN0006W and is very important for root cause analysis. This is an informational diagnostic message and usually contains the clue to the root cause. It identifies which thread was running — or was most recently associated with — the transaction when the timeout occurred. Use the captured thread stack to identify where the delay occurred: in JDBC, JMS, EJB, the web container, the ORB thread pool, an external service call, and so on.
Parameters:
• Thread descriptor — The name (for example, WebContainer : 12), priority, and thread group of the thread running the transaction at the moment of timeout.
• Stack trace — A full snapshot of what that thread was executing when the timer fired.
EmbeddableTim I WTRN0124I: When the timeout occurred the thread with which the transaction is, or was most recently, associated was Thread[#115,Default Executor-thread-9,5,Default Executor Thread Group]. The stack trace of this thread when the timeout occurred was:
java.base/java.lang.Object.waitImpl(Native Method)
java.base/java.lang.Object.wait(Object.java:255)
java.base/java.lang.Object.wait(Object.java:221)
com.ibm.ejs.j2c.FreePool.queueRequest(FreePool.java:211)
com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:953)
com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:1471)
com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:584)
com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:308)
com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:143)
com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:117)
org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:140)
org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:174)
......
.....
<followed by some other code or application code>
.....
....
Meaning: This message exists purely to explain why the transaction ran long. Commonly, the stack will be found sitting in a JDBC call, a socket read to a remote web service, a lock wait, or slow application logic.

4. Anatomy of the Global Transaction ID (XID)
Consider the following sample message (identifiers are illustrative purpose only):
WTRN0006W: Transaction SampleEJBEAR#SampleEJB.jar#TestEJB 0000017b4f8c8420000000013e2a6a88c8db8e6b457713b2ea1d87a3c0bbe834c530aa360000017b4f8c8420000000013e2a6a88c8db8e6b457713b2ea1d87a3c0bbe834c530aa36000000010000000000000000000000000002 has timed out after 120 seconds
The XID is part of an open specification. The transaction identifier that appears in WTRN0006W is an XID, which is constructed as follows:
It consists of:
1) a format ID of fixed byte length
2) An int for the global ID length
3) An int for the branch ID length
4) The globalID
5) The branchID
For distributed WAS: the format ID is 57415344 (or ‘WASD’ in ASCII), the globalID length is x24 (36) and thebranchID length is x36 (54)
XidImpl < XidImpl Exit{XidImpl: formatId(57415344), gtrid_length(36), bqual_length(54),data(0000017b4f8c8420000000013e2a6a88c8db8e6b457713b2ea1d87a3c0bbe834c530aa360000017b4f8c8420000000013e2a6a88c8db8e6b457713b2ea1d87a3c0bbe834c530aa36000000010000000000000000000000000002)}
The first 12 bytes are the timestamp when the transaction was started (Mon, 16 Aug 2021 15:20:14.112 GMT)
The APPLID of the the logs is the last 20 bytes of the Global ID
In this case since the first 36 bytes of the branchID is the same as the global ID we know this is a “root” transaction – iethe transaction was started on this server, not imported.
If the branchID was different then we’d know it was a “subordinate” transaction branch (imported into the server) – inwhich case the timestamp of the subordinate would tell us when it was imported and the APPLID in the branchID wouldbe that for the local server, whereas the APPID in the globalID would be that for the “superior” server from where thetransaction was imported.
The tid is also in the globalID/branchID as is the epoch number
5. Common root causes of Transaction timeouts
• Long-running business logic
• Slow SQL or database locking (DB waits, Long running SQL, DB deadlocks etc)
• Connection pool exhaustion ( Waiting for J2C connection longer than expected)
• External REST, MQ, or web service delays
• Performance issues, thread starvation, or hung threads
• High CPU utilization or garbage collection pauses
• Timeout values configured too low for the workload
6. Step-by-Step root cause analysis
1. Locate the WTRN0006W message in SystemOut.log.
2. Note the timestamp and the timeout thread.
3. Find the transaction ID (TX) in the traces.
4. Go up in the traces and search the trace for the same transaction ID “Transaction BEGIN occurred for TX”.
5. Identify the thread that started the transaction.
6. Follow that specific thread activity in the trace.
7. Look for trace gaps, SQL execution, createOrWaitForConnection(), socketRead(), application sleep calls, remote calls, or other blocking operations or any other unknown issues.
8. Identify the underlying bottleneck rather than simply increasing the timeout.
7. Capturing traces for Transaction Timeout analysis
To debug a transaction timeout issue, capture the following traces while the problem occurs. A dynamic (runtime) trace is sufficient.
If the application connects to a database:
*=info:WAS.j2c=all:RRA=all:Transaction=all
If the application connects to a messaging system:
*=info:WAS.j2c=all:Messaging=all:JMSApi=all:Transaction=all
If the application connects to an enterprise information system:
*=info:WAS.j2c=all:com.ibm.connector2.*=all:Transaction=all
When analyzing a transaction trace, it is usually necessary to follow multiple threads, which adds some complexity to the analysis. It is also important to have sufficient historical trace data: because a transaction times out after 120 seconds by default, you need at least 120 seconds of trace data prior to the transaction timeout.
8. Reviewing the Traces
The following walkthrough uses a sanitized example (application, data source, and identifiers are illustrative) to demonstrate the analysis technique end to end.
Step 1 — Find the timeout in SystemOut.log
Find the timestamp of the transaction timeout in the application server SystemOut.log file. Transaction timeouts are always indicated by the WTRN0006W message, followed by WTRN0124I:
[7/19/25 10:01:05:517 EDT] 00000073 TimeoutManage I WTRN0006W: Transaction SampleApp#SampleWeb.war 000001896E72822D0000000139AC1FB0... <some big number> has timed out after 120 seconds.
[7/19/25 10:01:05:518 EDT] 00000073 TimeoutManage I WTRN0124I: When the timeout occurred the thread with which the transaction is, or was most recently, associated was Thread [WebContainer : 2,5,main].
Step 2 — Locate the internal transaction ID in the traces.
The timeout occurred on thread 00000073, so follow this thread ID down a few lines in the trace to locate the internal transaction ID:
[7/19/25 10:01:05:518 EDT] 00000073 TransactionIm 1 (SPI) Transaction TIMEOUT occurred for TX: 967581616
The transaction that timed out is therefore TX: 967581616. In general, the actual transaction activity takes place on a different thread — typically a web container thread (for a servlet) or an ORB thread (for an EJB application).
Step 3 — Find where the transaction began in the traces.
Search the trace for the string “Transaction BEGIN” for this TX ID (go little backward in the traces):
[7/19/25 9:59:05:517 EDT] 000001b7 TransactionIm 1 (SPI) Transaction BEGIN occurred for TX: 967581616
Compare the start and timeout timestamps confirms the transaction lived exactly 120 seconds:
• 7/19/25 9:59:05:517 EDT — transaction started
• 7/19/25 10:01:05:518 EDT — transaction timed out
Step 4 — Follow the working thread /actual thread activity in the traces.
Now track thread 000001b7 to see what it was doing after the transaction started. Check for trace gaps on the thread, or signs that it is hung. Commonly you will find query execution taking a long time, or the thread stuck or waiting for a resource. In this example, the very last trace entries for this thread are below contents. There are no logging of this thread after these line. In this case its waiting for the connection to be available and didn't get for long time. The root cause of this issue backend delays.
[7/19/25 9:59:05:814 EDT] 000001b7 PoolManager < processPoolRequestStats Exit
[7/19/25 9:59:05:814 EDT] 000001b7 FreePool 3 Queueing Waiter for pool
<jdbc/SampleDataSource>. Current Pool Stats are:
[7/19/25 9:59:05:814 EDT] 000001b7 FreePool 3 *********************************
There are no entries of this thread after the above lines which shows waiting for the thread to get the pool connection. So this indicates it took long time and in queue for the getConnection() call.
Step 5 — Conclusion
There are no further entries in the trace for this thread after the events above. The thread was placed in the connection pool's waiter queue for the jdbc/SampleDataSource data source and was waiting for a connection to become available. There is no other activity on the thread, and exactly 120 seconds later the transaction timed out and was rolled back — as expected.
Root cause: The request never obtained a connection to the backend database and timed out. To determine why the createOrWaitForConnection call waited for 120 seconds, capture Java cores when the issue occurs. The underlying problem is typically either a network issue between the application server and the database, or connection pool is maxed out or an issue on the database server itself.
9. Conclusion
WTRN0006W and WTRN0124I are two views of the same event: the warning tells you what happened (the transaction timer expired and the transaction is rollback-only), and the informational message tells you why (the thread and stack trace at the moment of timeout). Combined with the trace-analysis technique shown above — locate the timeout, find the transaction ID, find the BEGIN, and follow the working thread — administrators can move from symptom to root cause systematically. Always aim to identify and fix the underlying bottleneck rather than simply increasing the timeout value.