Search |
||
Using DataDirect Spy to trace Glassfish Database operationsPosted by lancea on July 17, 2008 at 2:02 PM PDT
In the blog "Using P6Spy and the GlassFish Connection Pool to Trace Database Operations", Jagadesh shows you how to use P6Spy.
If you are using the Datadirect or the Sun OEM version of the Datadirect JDBC drivers, it is extremely easy to start tracing and logging the JDBC driver's database operations using DataDirect Spy. The steps are quite simple:
Here is an example setting the DataDirect JDBC driver properties for Sybase:
When you run your application a file, in our case: /tmp/ase15.trace will be generated with the trace output for any JDBC driver access to the database. Here is a sample of the output:
Of course this is just one additional arrow in your quill for analyzing the problem. You might need to look at the wire level protocol for a given backend. For example, you can use the Ribo utility, to dump out the TDS packets sent to Sybase ASE. You might also need to analyze the performance of the queries being executed and then adjust your indexes or various other database tuning parameters. »
Related Topics >>
Java Enterprise Comments
Comments are listed in date ascending order (oldest first)
Submitted by wlouth on Fri, 2008-07-18 01:41.
With JXInsight Transact (JDBInsight) you can get so much more information and it works with every JDBC driver or datasource.
JDBC: Database Transaction Concurrency Analysis
http://www.jinspired.com/products/jxinsight/concurrency.html
JDBC: Database Lock Contention
http://www.jinspired.com/products/jxinsight/olapvsoltp.html
JXInsight Transact Factsheet
http://www.jinspired.com/products/jxinsight/transact.pdf
It is probably a bit too advanced for most developers but it is designed for complex problems not solved by other tools.
William
Submitted by fabriziogiudici on Sat, 2008-07-19 03:40.
I'm evaluating P6Spy for my performance testing (putting assertions on P6Spy output), but I'm a bit worried that the last release of P6Spy dates back to five years ago... Is JXInsight opensource?
Submitted by wlouth on Sat, 2008-07-19 09:23.
JXInsight is not open sourced and the free development edition is not supported anymore. Because at the end of the day it is not just the tool that solves the problem it is the people and process.
If a developer has not got the time to understand the process and determine what he is trying to achieve and how best to achieve then what is the point of giving them such a powerful tool. You get back what you pay and invest.
By the way a software performance engineer picks tools that do not have their own performance problems.
|
||
|
|