- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- InstallAnywhere 2022: Total and Free memory captured in the log
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
InstallAnywhere 2022: Total and Free memory captured in the log
InstallAnywhere 2022: Total and Free memory captured in the log
Summary:
This Article helps you to understand What does the Free and Total memory which is captured in the Log actually means?
==================
Wed Jan 11 02:50:05 GMT-05:00 2023
Free Memory: 5441 kB
Total Memory: 44032 kB
==================
Discussion:
Free memory means, Free memory of JVM.
public long freeMemory()
Returns the amount of free memory in the Java Virtual Machine. Calling the gc method may result in increasing the value returned by freeMemory.
Returns:
an approximation to the total amount of memory currently available for future allocated objects, measured in bytes.
Total memory means, total amount of memory in the Java virtual machine.
The value comes from a call to Runtime.totalMemory()
public long totalMemory()
Returns the total amount of memory in the Java virtual machine. The value returned by this method may vary over time, depending on the host environment.
Note that the amount of memory required to hold an object of any given type may be implementation-dependent.
Returns:
the total amount of memory currently available for current and future objects, measured in bytes.