- Get familiar with JVM with jVisualVM
- Detect bad smell of code using jVisualVM
Code review is still the best way to find bed smell of code.
JVM profiling is another option, when you improve a legacy project/jar, and even when it has a lot of dependences. You have no time to read the code one by one.
The JVM will give you some clues to bad smell of code and bottleneck of performance.
Have been tested on:
OS: Windows 7 Professional-SP1, 64-bit
CPU: Intel Core i7-4600U
RAM: 8G
JDK: 1.8.0_20
Optional:
Maven: 3.2.2
Eclipse: 4.4
###KickOff: Get familiar with jVisualVM
- install plugin: Visual GC, and restart
- Observe a application's JVM with jVisualVM:
- Scan every tabs:
Monitor,Thread,Sampler,Visual GC(and Profiler for Some Applications)
- Scan every tabs:
- Scan these pages:
###Next Steps: