?
Solved

Java virtual machine monitoring tools

Posted on 2016-08-29
3
Medium Priority
?
64 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 28

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 28

Accepted Solution

by:
dpearson earned 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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:
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 …
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

752 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