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
62
votes
21 answers

Which Java profiler is better: JProfiler or YourKit?

Which profiler is better for general purpose profiling and heap analysis? 90% of our apps are standalone command line programs with substantial database and numeric processing. The other 10% are webapps/servlet container apps (with very little JSP…
Trenton
  • 11,678
  • 10
  • 56
  • 60
13
votes
2 answers

Is there any way to analyze a truncated Java Heap Dump (hprof file)?

In my work, we are running into a difficult to reproduce OOM issue. Or, more accurately, it is very easy to reproduce on one system, making that system unusable, but difficult to reproduce anywhere else, given the same inputs. The application is…
user1410910
  • 1,050
  • 6
  • 12
13
votes
3 answers

Is it possible to run a JMH benchmark under an external profiler?

I'm currently performance hunting. In order to measure the throughput, and to enforce that we don't regress, I'm using the wonderful JMH. When I come across something that is slow though, I want to start profiling to see what is going on, according…
Alun
  • 541
  • 6
  • 16
13
votes
1 answer

YourKit - The retained size of an object doesn't equal the retained size of all the objects referred by it

The retained size of an object doesn't equal the retained size of all the objects referred by it. Here is what is happening: Using YourKit to capture memory snapshot. click on an object & show instances by class type let's say the instance's…
hba
  • 7,406
  • 10
  • 63
  • 105
12
votes
3 answers

Can I dump the current thread stack variables from a live JVM?

I need to peek into the stack of 2 deadlocked threads to analyze the situation. The JVM is live right now and the data is there, but I need some kind of tool to extract it from the process. I only care about 6 variables in the stack of type String.…
Vladimir Ralev
  • 1,371
  • 9
  • 18
10
votes
2 answers

What would cause Tomcat (v8) to CPU spike with periodic regularity

On a windows 2012 RT (x64) TEST server we are running a Tomcat 8 installation and the CPU usage is disconcerting in its regularity of hitting peak usage. The behavior is happening after an installation of our application but before anyone is…
veeTrain
  • 2,915
  • 2
  • 26
  • 43
10
votes
2 answers

Profiling Java running by JNI calls

I have a C++ code that upon execution: Loads JVM (I have full control on how to load the JVM), and call Java methods (from loaded classes) using C JNI code. The Java code has no Main() and it is actually not a standard Java application. it is mainly…
Guy
  • 915
  • 2
  • 14
  • 27
9
votes
3 answers

Why does park/unpark have 60% CPU usage?

Recently we started stress testing our application (an XMPP based chat server) using YJP 11.0.9. During our test we noticed following strange behavior. Sampling shows sun.misc.Unsafe.unpark(Object) took 60% of CPU. For the same app Tracing shows…
Kalpesh Patel
  • 91
  • 1
  • 3
6
votes
1 answer

Why does my heap consist mostly of unreachable objects?

I just looked at my heap dump in YourKit profiler and saw the following reachable/unreachable statistics. I'm not quite sure about this. Does it mean that almost all my heap consists of some garbage data and I need to strongly tune my G1. Or this…
St.Antario
  • 26,175
  • 41
  • 130
  • 318
6
votes
1 answer

WebappClassLoader memory leak even with no gc roots

HERE IS THE HEAD DUMP (UPDATED ON 10/29/2013) I'm working in a webapp with: Tomcat 7.0.24 Java 6 Spring 3 (with aop - cglib) SLF4J over Log4j Oracle Coherence After a lot of work, I managed to remove all the strong reference to the class loader…
ggarciao
  • 1,618
  • 16
  • 29
6
votes
3 answers

How can I debug a non-responsive server, when the profiler can't collect samples?

I have been having occasional problems with a server I wrote. It's in Clojure, but I don't think that matters, and we can pretend it's in Java. Anyway, it works fine for hours at a time, but goes into fits where it behaves very badly: all activity…
amalloy
  • 89,153
  • 8
  • 140
  • 205
6
votes
3 answers

Breakpoint on array construction

Is there anyway to set a breakpoint in eclipse or another debugger such that the execution stops on the construction of an array? I am particularly interested in the construction of a primitive array (int[]) but this question should be equally…
haridsv
  • 9,065
  • 4
  • 62
  • 65
5
votes
2 answers

Yourkit UI throwing "There's no application running at localhost with profiler agent configured to listen on port" exception

I am trying to profile remote applications that are deployed within Jboss. So far I can connect to the remote server and see my applications, I am also able to connect to the applications. But when I click "Start CPU profiling", it takes really long…
Aarij Siddiqui
  • 373
  • 2
  • 11
5
votes
1 answer

Yourkit java profiler : Cannot launch: it's impossible to automatically detect whether a 32-bit or a 64-bit JVM will be used

I am trying to use Yourkit profiler for a Spring-MVC based application running on top of tomcat. I am using Intellij Idea 13. I have successfully installed the plugin as well, that's why I could see the profile option, but I am getting the following…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
5
votes
1 answer

How does Yourkit measures time spent on unsafe.park native method?

I know that Yourkit measures wall time for methods like Thread.sleep(), but what about the unsafe.park native method? Bellows are the sampling settings: walltime=java.io.RandomAccessFile : readBytes(byte[], int, int) …
Adrian Liu
  • 385
  • 3
  • 13
1
2 3 4 5 6 7 8