i have a socket server written in java, and i believe there is a memory leak. The i could not find anything in Netbeans' profiler, so i want to test it when it in deployed on my ubuntu server. How do i do this? What is an easy to install and use java profiler for ubuntu?
+1
A:
You can check out jprofiler. This works great. http://www.ej-technologies.com/download/jprofiler/files.html
YoK
2010-07-17 08:04:48
+1 - it is great. Not free though.
Noel M
2010-07-17 08:06:42
A:
First of all, if you couldn't find anything with the NetBeans profiler, then VisualVM won't give you much more satisfaction as VisualVM is a standalone version of NetBeans profiler.
That being said, my recommendation to hunt memory leaks would be Eclipse Memory Analyzer (MAT). In my opinion, this is simply the best Java heap analyzer you can get (even for money).
See also
- Heap Dump Analysis with Memory Analyzer, Part 1: Heap Dumps
- Heap Dump Analysis with Memory Analyzer, Part 2: Shallow Size
- Automated Heap Dump Analysis: Finding Memory Leaks with One Click
- Memory Analyzer Webinar
- Getting Started
If you're strictly looking for a CPU and Memory profiler, famous commercial products include YourKit, JProfiler and JProbe, YourKit being my preferred one (JXInsight is another excellent product but not strictly a profiler).
Related questions
Pascal Thivent
2010-07-21 03:14:12