How to check how many resources the java program uses?
In java, itโs quite simple to create a large nice program that does almost everything you want, but a small side effect is also very easy to indirectly highlight many errors and processor cycles by mistake (ie just use the โnewโ couple of times in the wrong location).
And if the program should run in an environment with a very limited amount of resources, say, something built-in or, possibly, a mobile phone (J2ME, Android, etc., etc.), it is important to know how hungry your program is.
Note. Since my main focus has been made in recent years, I could have missed something very simple here, so please do not take much;)
Thanks Johan
source share