Platforms to show: All Mac Windows Linux Cross-Platform

Back to JavaRuntimeMBS class.

JavaRuntimeMBS.availableProcessors as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Returns the number of processors available to the Java virtual machine.

This value may change during a particular invocation of the virtual machine. Applications that are sensitive to the number of available processors should therefore occasionally poll this property and adjust their resource usage appropriately.

JavaRuntimeMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The private constructor.

JavaRuntimeMBS.freeMemory as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Returns the amount of free memory in the Java Virtual Machine.

Calling the gc method may result in increasing the value returned by freeMemory.

Some examples using this method:

JavaRuntimeMBS.gc

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Invokes the garbage collection.

Calls "System.gc" in Java.

JavaRuntimeMBS.maxMemory as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Returns the maximum amount of memory that the Java virtual machine will attempt to use.

If there is no inherent limit then the value Long.MAX_VALUE will be returned.

Some examples using this method:

JavaRuntimeMBS.totalMemory as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
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.

Some examples using this method:

The items on this page are in the following plugins: MBS Java Plugin.


The biggest plugin in space...