[Scilab-users] Still available memory on the Java heap
Clément David
Clement.David at esi-group.com
Mon Jul 22 16:01:13 CEST 2019
Hello Samuel,
You can get memory information from the JVM using JIMS:
--> jimport java.lang.Runtime
--> Runtime.getRuntime().totalMemory()
ans =
249036800
--> Runtime.getRuntime().freeMemory()
ans =
175335480
Regards,
--
Clément DAVID
> -----Original Message-----
> From: users <users-bounces at lists.scilab.org> On Behalf Of Samuel Gougeon
> Sent: Thursday, July 18, 2019 11:21 AM
> To: International users mailing list for Scilab. <users at lists.scilab.org>
> Subject: [Scilab-users] Still available memory on the Java heap
>
> Hello,
>
> Is there a way equivalent to getmemory() to get the free memory on the
> reserved Scilab java heap?
>
> xmlGetValues() can be used to get the total reserved java heap amount, but i
> would need to know the still free not yet used memory.
>
> Thanks
> Samuel
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
More information about the users
mailing list