I want to monitor the memory usage and threading, how can I do on the Eclipse or JVM? Thanks.
JProfiler provides a lot of useful information on threading and monitor contention and it has an eclipse plugin.
See these screen casts for monitor contention analysis:
Disclaimer: My company develops JProfiler