问题
If I have a JDBC connection pool (datasource) in Glassfish, is there a way I can log debugging info like when it creates a new connection vs. using a pooled one?
In particular I'm trying to troubleshoot the connection validation process, and not sure if that's causing new physical connections to be created.
Thanks!
回答1:
You can monitor your application resources through the server console.
Go to server > Monitor > Resources and see the stats of your application
Example below:
来源:https://stackoverflow.com/questions/17476676/glassfish-debug-jdbc-connection-pool-behavior