Article - CS244172
System is unresponsive with "Average concurrent method context threshold exceeded" email in Windchill
Modified: 28-Apr-2025
Applies To
- Windchill PDMLink 10.2 to 12.0
Description
- System is unresponsive with email:
Average concurrent method context threshold exceeded
- wt.jmx.notif.methodContext warning in method server log:
Threshold of average active method contexts exceeded
- wt.jmx.notif.methodContextGauge warning in method server log
- Capture the thread dump and found many thread cannot get the database connection
- Server Status page, high Maximum Concurrency and display as Red
- Loading part structure page very slowly
- Workflow process does not start
- wt.jmx.notif.methodContext warning in background method server log
- Windchill Configuration Assistant (WCA) configures wt.pom.maxDbConnections=10 at a minimum
- Full thread stack trace shows many threads are blocked while waiting for a database connection
- Example stack trace waiting on wt.pom.POMHandler.getConnection:
"ajp-bio-8010-exec-8" Id=785 daemon prio=5 WAITING on lock=wt.pom.POMHandler$ConnectionPool@2a652831
Blocked (cnt): 0; Waited (cnt): 1
CPU nanos: 74310016; User nanos: 60000000; Bytes allocated: 30024800
Servlet request: 2upts7;irqbn1uk;2468;htf3sd;4345; Method context: 2upts7;irqbn1uk;2468;htf3sd;4347
at java.lang.Object.wait(Native Method)
at wt.pom.POMHandler.getConnection(POMHandler.java:175)
at wt.method.MethodContext.getConnection(MethodContext.java:2391)
at wt.pom.PersistentObjectManager.getUserConnection(PersistentObjectManager.java:327)
- Continuously receiving warning, the database connection always reach to max vaule of wt.pom.maxDbConnections:
Name=MethodContextsNotifier, SourceObjectName=com.ptc:wt.subsystem=Monitors,wt.monitorType=MethodContexts, class=class javax.management.Notification, type=wt.method.MethodContextMonitorMBean.maxAverageActiveContextsThreshold.exceeded, userData=38.12698373779806, message=Threshold of average active method contexts exceeded; average active contexts: 38.127, JVM Name=xxx, Database Connections=15
From the method context sample, many processes were wait for database connection
This is a printer-friendly version of Article 244172 and may be out of date. For the latest version click CS244172