Payara 与 sniffy 分析器一起设置
Payara setup together with sniffy profiler
我正在尝试使用 Sniffy 分析器在 Payara 服务器上分析应用程序 运行。
添加Maven依赖并根据documentation修改文件web.xml。
我已将 sniffy.jar 添加到 payara\payara41\glassfish\domains\domain1\lib\
文件夹。
我修改了 glassfish-resources.xml 文件如下:
<resources>
<jdbc-resource enabled="true" jndi-name="jdbc/Agenda" object-type="user" pool-name="AgendaPool">
<description/>
</jdbc-resource>
<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.pool.OracleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="AgendaPool" non-transactional-connections="false" ping="false" pool-resize-quantity="2" pooling="true" res-type="javax.sql.DataSource" statement-cache-size="0" statement-leak-reclaim="false" statement-leak-timeout-in-seconds="0" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
<property name="URL" value="sniffer:jdbc:oracle:thin:@localhost:1521:XE"/>
<property name="User" value="XXX"/>
<property name="Password" value="XXX"/>
<property name="driverClass" value="io.sniffy.MockDriver"/>
</jdbc-connection-pool>
</resources>
我能够看到 HTTP 方法响应时间,但看不到查询响应时间:
No query response time.
我的配置正确吗?为什么执行的查询没有响应时间?
Sniffy 不适用于 oracle.jdbc.pool.OracleDataSource
查看此问题的更多详细信息:Invalid Oracle URL specified with Sniffy
我正在尝试使用 Sniffy 分析器在 Payara 服务器上分析应用程序 运行。
添加Maven依赖并根据documentation修改文件web.xml。
我已将 sniffy.jar 添加到 payara\payara41\glassfish\domains\domain1\lib\
文件夹。
我修改了 glassfish-resources.xml 文件如下:
<resources>
<jdbc-resource enabled="true" jndi-name="jdbc/Agenda" object-type="user" pool-name="AgendaPool">
<description/>
</jdbc-resource>
<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.pool.OracleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="AgendaPool" non-transactional-connections="false" ping="false" pool-resize-quantity="2" pooling="true" res-type="javax.sql.DataSource" statement-cache-size="0" statement-leak-reclaim="false" statement-leak-timeout-in-seconds="0" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
<property name="URL" value="sniffer:jdbc:oracle:thin:@localhost:1521:XE"/>
<property name="User" value="XXX"/>
<property name="Password" value="XXX"/>
<property name="driverClass" value="io.sniffy.MockDriver"/>
</jdbc-connection-pool>
</resources>
我能够看到 HTTP 方法响应时间,但看不到查询响应时间: No query response time.
我的配置正确吗?为什么执行的查询没有响应时间?
Sniffy 不适用于 oracle.jdbc.pool.OracleDataSource
查看此问题的更多详细信息:Invalid Oracle URL specified with Sniffy