"Read current process memory usage using the API"
bjoern
New Altair Community Member
Hallo everyone!
I am new to RM and I am currently developing a little tool which sequentially starts different RM processes with the goal to track memory usage of each job.
Therefore I make use of the RapidMiner API in my own Java application and the processes run fine so far.
Furthermore I created an additional thread which should periodically ask RM how much memory is currently in use and logs it to a file.
In fact, I need a possibility to access the memory usage information which the RM GUI shows in the bottom right. Is there a possibility to do that?
Thank you!
Björn
I am new to RM and I am currently developing a little tool which sequentially starts different RM processes with the goal to track memory usage of each job.
Therefore I make use of the RapidMiner API in my own Java application and the processes run fine so far.
Furthermore I created an additional thread which should periodically ask RM how much memory is currently in use and logs it to a file.
In fact, I need a possibility to access the memory usage information which the RM GUI shows in the bottom right. Is there a possibility to do that?
Thank you!
Björn
Tagged:
0
Answers
-
I was thinking about this problem for hours... and right after I posted this topic, it came to my mind!
You can access the memory informations using following commands:
Runtime.getRuntime().totalMemory() = current used memory
Runtime.getRuntime().maxMemory() = total memory available to the VM
Runtime.getRuntime().freeMemory() = free memory
Maybe these information will help others.
Björn0