Glassfish - 调试JDBC连接池行为 [英] Glassfish - debug JDBC connection pool behavior

查看:112
本文介绍了Glassfish - 调试JDBC连接池行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在Glassfish中有一个JDBC连接池(数据源),有没有一种方法可以记录调试信息,例如何时创建新连接与使用池连接?



特别是我试图解决连接验证过程,并不确定是否会导致新的物理连接被创建。


$您可以通过服务器控制台监视您的应用程序资源。

$ b

解决方案


$ b

转至服务器>监视器>资源并查看您的应用程序的统计信息



以下示例:


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!

解决方案

You can monitor your application resources through the server console.

Go to server > Monitor > Resources and see the stats of your application

Example below:

这篇关于Glassfish - 调试JDBC连接池行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆