Solved

Java virtual machine monitoring tools

Posted on 2016-08-29
3
39 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
  • 2
3 Comments
 
LVL 26

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 26

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now