Questions tagged [sniffy]

Sniffy is a java profiler.

Sniffy is a java profiler that intercepts SQL statements and displays the execution count and elapsed time directly in the browser.

6 questions
6
votes
3 answers

EclipseLink / JPA: How to programmatically get the number of SQL queries that have been performed

I'm using JPA, by way of EclipseLink. In my unit tests, I'd like to test how many SQL queries were performed during an operation. That way, if a later modification causes the query count to explode (if lazy loading is triggered, for instance), the…
Chris Snyder
  • 437
  • 3
  • 14
2
votes
1 answer

Payara setup together with sniffy profiler

I'm trying to profile application running on Payara server with Sniffy profiler. Maven dependency is added and file web.xml is modified according to the documentation. I have added sniffy.jar to the payara\payara41\glassfish\domains\domain1\lib\…
Jan Kopecký
  • 93
  • 1
  • 7
2
votes
2 answers

How do I configure Sniffy with Spring Boot?

Sniffy is a cool little project: Sniffy counts the number of executed SQL queries and provides an API for validating them It is designed for unit tests and allows you to test if particular method doesn't make more than N SQL queries Especially it's…
Robert Hunt
  • 7,914
  • 5
  • 40
  • 43
1
vote
1 answer

JMS message not rolled back after connection lost during 2PC prepare

I am trying to wrap my head arround the following issue: TL;DR How can I make sure a rollback occurs when connection is lost to the queue manager during the prepare of the 2PC. java: 8 spring boot: 2.3.12.RELEASE spring-jms:…
1
vote
1 answer

Invalid Oracle URL specified with Sniffy

I'm trying to configure Sniffy to work with Oracle. I'm using Glassfish as application server, with JPA 2.0, and EclipseLink as provider. When EclipseLink tries to allocate the connection, it fails saying that the Oracle URL specified is invalid,…
zootropo
  • 2,441
  • 3
  • 31
  • 48
1
vote
1 answer

Sniffy filter setup together with encoding filter?

I'm trying to add Sniffy profiler into JSF project. According to the documentation web.xml needs to be updated with following filter: sniffer io.sniffy.servlet.SnifferFilter
Jan Kopecký
  • 93
  • 1
  • 7