Solved

Java virtual machine monitoring tools

Posted on 2016-08-29
3
50 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 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

821 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