Solved

Java virtual machine monitoring tools

Posted on 2016-08-29
3
59 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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

707 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