How to monitor the Java memory usage in matlab?

2 visualizaciones (últimos 30 días)
denzil fernandes
denzil fernandes el 1 de Abr. de 2016
Comentada: Walter Roberson el 5 de Abr. de 2016
I have few java libraries which gets dynamically bounded to matlab at run time. Is it possible to know the memory usage of the Java libraries using matlab interface.

Respuestas (1)

Dave Behera
Dave Behera el 4 de Abr. de 2016
  2 comentarios
denzil fernandes
denzil fernandes el 5 de Abr. de 2016
Hi, I just wanted to know how the following commands would help.
rJavaObj = java.lang.Runtime.getRuntime;
rJavaObj.freeMemory
rJavaObj.totalMemory
rJavaObj.maxMemory
Will these commands help me in finding the memory used by my java instance at that particular time or please could you let me know what do these commands return exactly.
Walter Roberson
Walter Roberson el 5 de Abr. de 2016
If java has the memory allocated to it (totalMemory) but java is not currently using the memory for any object (freeMemory) then do you want to include it in the amount of memory that java is "using" for your purpose?

Iniciar sesión para comentar.

Categorías

Más información sobre Call Java from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by