Skip to main content

What's New in MarkLogic 11

Forest Memory Diagnostics

MarkLogic 11.1.0 adds the ability to retrieve detailed memory usage metrics at the forest level. When either the "memory-summary" or "memory-detail" option is provided to xdmp.forestStatus(), new metrics about index memory usage are returned. These metrics can be used to better understand the amount of memory that each range index or lexicon are using.

The result from a call to xdmp.forestStatus() with the "memory-detail" option includes an ID of each index. In order to map the index IDs to actual indexes configured in the database, a new function xdmp.databaseDescribeIndexes() has been added in MarkLogic 11.1.0. 

In addition to the new built-in functions in JavaScript and XQuery, the memory diagnostics are also available via the REST API. The /manage/v2/forests/{id|name}?view=status GET endpoint now supports the property URI parameter that can be set to either "memory-summary" or "memory-detail" to retrieve the forest-level memory metrics.

A new "describe-indexes" view has been added to the databases GET endpoint that can be used to retrieve the mapping from index IDs to indexes configured in the database.