question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any way to monitor the connection pool

See original GitHub issue

Question

Is there any way to monitor the connection pool like druid monitor?

Recently, I have encountered several times in the online environment that the sharding proxy database connection is unavailable, which will occur one day to one month after the server is started.

At this time, I try to use Navicat to test the direct connection to MySQL. It can connect, but it can’t connect to sharding proxy.

The log is as follows:

### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConne
ctionException: Failed to obtain JDBC Connection; nested exception is java.sql.S
QLTransientConnectionException: HikariPool-1 - Connection is not available, requ
est timed out after 30001ms.
### The error may exist in com/xxx/dao/XXDao.java (b
est guess)
### The error may involve com.xxx.dao.XXDao.selectXXByID
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to
obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionExcep
tion: HikariPool-1 - Connection is not available, request timed out after 30001m
s.

I hope there is a way to monitor the status of sharding proxy connection pool. Can you give me some suggestions.

Thanks.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Oct 8, 2022

Hello , this issue has not received a reply for several days. This issue is supposed to be closed.

0reactions
TeslaCNcommented, Aug 4, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Connection Pool Monitoring - java - Stack Overflow
Another way to monitor is though JConsole utility which comes with Java. The same JConsole can be used to monitor the JBoss AS...
Read more >
ConnectionPool monitoring - IBM
ConnectionPool monitoring · Ensure that the application that is using the pool makes a call to DB2 so that the pool is initialized....
Read more >
Monitor utilization of DB connection pools from the app servers
Do we have a way of monitoring the utilization in the DB connection pools on the app server? I would like to monitor...
Read more >
1.14. Monitoring Connections - ADO.NET Cookbook [Book]
Start Performance Monitor by selecting Start → All Programs → Administrative Tools → Performance. · Add performance counters to monitor connection pooling ...
Read more >
HOW TO: Monitor the JDBC Connection Pool in WebLogic ...
In Master Data Management (MDM), the JDBC Connection pool is monitored to view the number of connections that are open or closed at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found