memory profiling in java

I would like to know how to determine the amount of memory used by one application written in Java ....
[110 byte] By [aminBenAbdallah] at [2007-11-26 8:41:36]
# 1
Use appropriate Runtime class methods: Runtime.freeMemory()/maxMemory()/totalMemory()Message was edited by: MaximKartashev
MaximKartashev at 2007-7-6 22:19:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
You can also use jconsole to monitor memory usage: http://java.sun.com/developer/technicalArticles/J2SE/jconsole.htmlOr use Memory Management apis. Which are available in 1.5.0.
swamyv at 2007-7-6 22:19:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...