EHS6 - JVM Statistics | Telit Cinterion IoT Developer Community
December 16, 2015 - 2:00pm, 1918 views
Hi all,
I am developing an application using the EHS6's JVM.
I am interested to know some statistics about the JVM, for instance: How many threads are running? What is the current processor rate? How much memory the application is using when it is running?
I am looking forward to have the same information that the Java Visual VM provide for desktop's JVM. Is it possible?
Thank you,
Cassio
Hi Cassio,
I believe you mean something like profiling. This is available on the Gemalto M2M modules but with a very limited way, means only a part of information is available. Do use profiling you need to use Netbeans (Eclipse does not support this feature) and make sure that you are able to run the MIDlet in debug mode from it. Then instead of "debug" option you need to use "profile". This will provide you at least with some information which you need, but you will not be able to see the processor load unfortunately.
Current load of the heap you may check from the Java application using Runtime.getRuntime().freeMemory();
Best regards,
Michał