I have been using Yourkit 8.0 to profile a mathematically-intensive application running under Mac OS X (10.5.7, Apple JDK 1.6.0_06-b06-57), and have noticed some strange behavior in the CPU profiling results.
For instance - I did a profiling run…
I've got a Java application that is consuming 100% of the CPU most of the time (as indicated by cacti and top monitoring). We fired up YourKit (which confirms the CPU resource issue) and it identifies java.net.SocketInputStream.read(byte[], int,…
I have a question about Yourkit and Java Mission Control....
I used Yourkit 7 years ago to profile a J2EE Application, now I am working for another project and I have to profile an application, this project does not have license for Yourkit.
During…
I have a Java server running on a beefy server machine (many cores, 64Gb RAM, etc.) and I submit some workloads to it in test scenario; I submit one workload, exactly the same, 10 times in a row in each test. One one particular workload, I observe…
I've build a command-line tool in Java, which I would now like to profile with YourKit. I launch the command-line tool with something like:
$ java -classpath .:foo.bar.jar com.foobar.tools.TheTool arg1 arg2 arg3
It runs to completion in less than…
I have a webapp that is subject to class loader leak(s), as PermGen runs out of memory after a number of re-deployments of the webapp.
Google and a couple of helpful persons on the web taught me that the way to investigate such an issue is to open a…
I recently made a heapdump in a hprof format when my jboss server was running with a xms of 4096m and xmx of 4096m and a permsize of 512m.
The hprof file generated is over 5gb. When I load the heapdump in visualvm, mat analyzer or yourkit, I only…
I'm using Java Hotspot 1.8.0_191-b12 (64 bit, Xmx < 32 GB) and I'm looking at a jmap dump (hprof format) with various tools.
VisualVM (and NetBeans profiler based tools) reports differ a lot from Yourkit and Eclipse Memory Analyzer.
I looked at the…
I am using yourkit java profiler to try and determine where my memory leak is coming from. I think it is from a large number of java.lang.ref.finalizer objects not being collected/processed fast enough. None of the code I have written implements…
I have recently downloaded a trial version of YourKit and after playing with it for a while it looks great, but I am concerned about running it in the production environment. Previous profilers I have used have put unacceptable overhead on the…
I would like to gather amount of time my application is waiting for I/O. I am running this java application on ubuntu/linux. I am using yourkit profiler. Suggest if there any other profiling tool for measuring I/O time.
I am trying to reduce the lock contention on a particular code-path in my application. To identify code with high lock contention, I connect YourKit to my application and use the "Monitor" tab and see acquiring which locks have caused the thread I…
YourKit provides API for capturing CPU profiling (sampling/tracing). Some thing like below...
import com.yourkit.api.Controller;
import java.awt.*;
import java.io.File;
/**
* to understand yourkit api.....
*/
public class AppMain {
public…
I know that yourkit can easily be integrated into Eclipse and you can start the program "Profile As" and it automatically connects to the Yourkit API and stats analyzing. This always runs the program and profiles it.
Now, If i have to do it in the…
Is there a JVM option (-XX or otherwise) to log objects that are queued to be finalized? I'm debugging an application that has excessive finalizers which results in a huge amount of java.lang.ref.Finalizer instances (as seen in YourKit Java…