为在远程linux计算机上运行的Java应用程序推荐一个探查器?

I'm looking for a profiler than can profile a Java6 application running on a separate linux box (with no windows manager).

The application is a latency sensitive, multithreaded server that typically responds to incoming network events in several hundred microseconds (less than 1 millisecond). I'm interested in learning about hot sections of code and contended locks, I'm less interested in memory usage patterns.

I'm not concerned about the profiling overhead during the profiling run, I expect there to be a performance hit.

#0

Yourkit is very good, except I would say that profilers in general are not very useful for exampling sub-millisecond latency applications.

However, if you haven't looked at your memory usage, then this where I would start. How are you ensuring you minimise; object creation, cache misses, context switching overhead (from passing data between threads)? Is all your code warmed up? i.e. so you are not hitting any interperated code.

I suggest you timestamp with nanoTime() the key execution path in you application to record the timing of each request at key stages to see where you are experiencing the most delay.

BTW: It is possible to get a Java application with sub 100 micro-seconds response time.

BTW2: It is possible to reduce the number of Full GCs during the day and have the system Full GC only at night. By increasing the eden size you might get to the point where you have no minor collections either.

#1

I've gotten comfortable using the yourkit profiler: http://www.yourkit.com/

Your mileage may vary, but I like it, its worth a look. In the past I have used it to identify and avoid lock contention, and I know it has capability to identify the hot sections of your code (as would any profiler, I expect)

#2

Checkout NetBeans Profiler. Suggesting it as no one else has suggested same. This one looks more feature rich.

I have used another tool "JProfiler" few times. But its only free for trial.

推荐文章

Positive Comments for Kids

Positive Comments for Kids

推荐文章

quick-cocos2dx AppBase

quick-cocos2dx AppBase

推荐文章

(KMP算法)Power String(P2406)

(KMP算法)Power String(P2406)

推荐文章

quick-cocos2dx display

quick-cocos2dx display

推荐文章

consul如何限制注册的ip

consul如何限制注册的ip

推荐文章

Primary Arithmetic(P2562)

Primary Arithmetic(P2562)

推荐文章

quick-cocos2dx cocos2dx.lua

quick-cocos2dx cocos2dx.lua

推荐文章

Linux:apache安装

Linux:apache安装

推荐文章

quick-cocos2dx 实例 ------ nightclub

quick-cocos2dx 实例 ------ nightclub

推荐文章

在android 中捕捉home键

在android 中捕捉home键

推荐文章

【Luogu3369】普通平衡树

【Luogu3369】普通平衡树

推荐文章

程序员201102摘要

程序员201102摘要

推荐文章

lua中实现倒计时

lua中实现倒计时

推荐文章

vue-cli3.0 搭建项目

vue-cli3.0 搭建项目

推荐文章

(stack)Rails(P1363)

(stack)Rails(P1363)

推荐文章

window 下vs 配置lua 环境 c/c++与lua交互

window 下vs 配置lua 环境 c/c++与lua交互