The VisualVM tool that is shipped with JDK 6 and above is useful for detecting performance bottlenecks and memory leaks.
In this chapter, we learned how to use this tool in a simple Java application. However, the technique can be used in large applications too. The Eclipse Memory Analyzer can be used to quickly detect memory leaks from a heap dump. In the next chapter we will learn how to develop Microservices in JEE.