2

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?

3 Answers 3

1

You can check out jprofiler. This works great. http://www.ej-technologies.com/download/jprofiler/files.html

Sign up to request clarification or add additional context in comments.

Comments

1

Try Java VisualVM:

sudo apt-get install visualvm
jvisualvm

Comments

1

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


If you're strictly looking for a CPU and Memory profiler, famous commercial products include YourKit and JProfiler, YourKit being my preferred one (JXInsight is another excellent product but not strictly a profiler).

Related questions

1 Comment

First SO question link is dead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.