Glassfish - debug JDBC connection pool behavior

烂漫一生 提交于 2019-12-14 03:51:57

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!