CRITICAL ERROR ON STARTUP: An attempt by a client to checkout a Connection has timed out
I’m facing a database connectivity / connection pool checkout timeout issue during ThingWorx Foundation startup against AWS RDS PostgreSQL 16.6. ThingWorx goes into ERROR state even though database connectivity works from other clients.
Environment
ThingWorx Foundation: 9.7
OS: Ubuntu 22.04
Database: AWS RDS PostgreSQL 16.6
App Server: Tomcat 9.0.113
Java: Amazon Corretto 11.0.29
Path: /usr/lib/jvm/java-11-amazon-corretto
Error Seen (Startup)
ThingWorx fails on startup and sets the web app state to ERROR:
This looks like the ThingWorx DB pool is unable to checkout a connection within the timeout (pool exhausted / blocked / cannot create new connections).
Important Observation
From the same EC2 instance, I can connect successfully using terminal tools (psql style connectivity).
I can also connect successfully using pgAdmin.
So network reachability + credentials appear OK, but ThingWorx still fails with pool checkout timeout.
What I’ve checked / tried
Verified DB host/port/security group rules (DB reachable).
Verified credentials configured in platform-settings.json.
Reviewed multiple community articles about DB connectivity and PostgreSQL.
Restart attempts still intermittently lead to the same startup failure.
What I need help with
Is PostgreSQL 16.6 fully supported with ThingWorx 9.7?
If not, what Postgres version is recommended for TWX 9.7 (especially on AWS RDS)?What are the recommended ThingWorx DB pool (c3p0) settings for:
maxPoolSize, minPoolSize, checkoutTimeout, acquireRetryAttempts, etc.
to avoid startup failure?
Which RDS settings should I validate first for this symptom?
max_connections
idle/session limits
parameter group timeouts
connection spikes (CloudWatch: DatabaseConnections)
Any known issues with:
Tomcat 9.0.113 on TWX 9.7
Corretto 11.0.29 on TWX 9.7
that could affect JDBC pooling / startup?




