getMemoryUsage

Return detailed information to the memory usage of the container.

getMemoryUsage([type]) → returns query

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

type string

Specify the type of memory information to return. If not specified, both types are returned.
Values:
  • heap
  • non_heap

Examples
Sample code invoking the getMemoryUsage function

writeDump(getMemoryUsage());

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub