Solved

Java virtual machine monitoring tools

Posted on 2016-08-29
3
55 Views
Last Modified: 2016-09-12
Hello Experts,

I am looking for a JVM tool that identifies hung SQL queries. I am using BOE4.1 SP6p2 with SQL2012 DB and need to monitor Jobserverchild processes when a thread is hung. This tool will help identify the exact SQL statement that is causing the process to hang.

Thanks!
PamC
0
Comment
Question by:Member_2_7964761
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Expert Comment

by:dpearson
ID: 41775755
When you say "hang" do you mean "take a long time?"  Or do you mean the query fails and that causes an error in the Java webapp so it hangs?

If we're just talking slow queries, generally that's much easier to resolve from the database side - because you can just look at the currently executing queries and you'll see the long running ones - esp if they are still running.

Is there a particular reason why you're trying to solve this from the JVM side?

Doug
0
 

Author Comment

by:Member_2_7964761
ID: 41794842
Slow queries. The reports can run at any time(2am etc) so I may not catch the report in action.  

I'm a BOE Admin and trying to find the best tool to find the long executing queries and report it back to the report writer to fix.
0
 
LVL 27

Accepted Solution

by:
dpearson earned 500 total points
ID: 41794864
OK then I'd suggest looking into those queries from the database side.  I don't specifically know how SQL server logs those, but seems like the profiler would be a place to start:
https://technet.microsoft.com/en-us/library/ms187929(v=sql.105).aspx

Trying to find the problem query within the Java codebase will just be much harder, because the slowness will be within the database.  All you could see in the JVM is something like "thread-123" is waiting a long time to complete - which isn't terribly helpful.

Start from the database itself and work backwards.

Doug
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question