Is there any known implementation to approximately calculate the memory allocated in a method to each variable, provided jvm has access to ThreadMXBean.
Or does tomcat pr