Questions tagged [yourkit]

YourKit is a CPU and memory profiling tool for Java and .NET

YourKit is a CPU and memory profiling tool for Java and .NET

120 questions
5
votes
6 answers

Profiling native methods in Java - strange results

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…
avalys
  • 3,662
  • 4
  • 25
  • 22
4
votes
5 answers

Profiled app with YourKit, still can't identify the CPU hog

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,…
DanInDC
  • 5,019
  • 8
  • 31
  • 25
4
votes
0 answers

Yourkit vs Java Mission Control

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…
posthumecaver
  • 1,584
  • 4
  • 16
  • 29
4
votes
0 answers

What can be the cause of high kernel CPU time in Java?

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…
Sergey
  • 636
  • 6
  • 12
4
votes
5 answers

How do I connect to a Java command-line tool with the YourKit Java Profiler?

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…
Daryl Spitzer
  • 143,156
  • 76
  • 154
  • 173
4
votes
1 answer

How to investigate a class loader leak with yourkit

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…
Djizeus
  • 4,161
  • 1
  • 24
  • 42
4
votes
3 answers

heapdump size vs hprof size

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…
Michael
  • 233
  • 2
  • 4
  • 11
3
votes
1 answer

What is the java.lang.Integer retained size?

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…
jack malkovick
  • 503
  • 2
  • 14
3
votes
0 answers

How to determine what classes are causing Finalizer memory leak

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…
rcantrel
  • 177
  • 11
3
votes
3 answers

YourKit in Production

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…
Codemwnci
  • 54,176
  • 10
  • 96
  • 129
3
votes
3 answers

How to measure I/O time for a java application running on ubuntu?

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.
3
votes
2 answers

Does YourKit report ReentrantLocks?

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…
Binil Thomas
  • 13,699
  • 10
  • 57
  • 70
3
votes
1 answer

is there an API for analying yourkit snapshot (memory/cpu)?

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…
Jayan
  • 18,003
  • 15
  • 89
  • 143
3
votes
1 answer

Yourkit profiler eclipse debug mode launch

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…
Srujan Kumar Gulla
  • 5,721
  • 9
  • 48
  • 78
2
votes
1 answer

JVM option to output finalized objects

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…
Steve Kuo
  • 61,876
  • 75
  • 195
  • 257