Is there a way to find out how much memory my java thread is taking in the VM?

For example, using stack trace dump, or some other means.

Thanks

Edit
Report