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…
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…
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…
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…
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.…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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)
…