Reputation: 910
I am trying to figure out why the hosts in my E-Node cluster are always climbing in memory. One of the lines of inquiry is if the cache isn't being cleared periodically. So far I have not seen any way to specify a timeout on entries in the cache, nor how to set a max age on those entries. Is this even possible?
Upvotes: 2
Views: 124
Reputation: 321
A little more on cache status: https://help.marklogic.com/Knowledgebase/Article/View/253/0/monitoring-cache-status-with-xdmpcache-status
However, as noted above, the ETC is configured to a max size in the group settings.
Upvotes: 0
Reputation: 66783
There is not a timeout setting for the caches.
A maximum size is configured for the various caches for the group. When you allocate memory for the server to use, you should expect that it will be used. It helps the server run faster and more efficiently. MarkLogic will manage the cache and evict "old" entries if it needs to make room for "new" entries in order to stay within the configured maximum size.
You can return the status of the caches with xdmp:cache-status()
to observe how much is being used.
If you do want to clear the expanded tree cache, you can invoke xdmp:expanded-tree-cache-clear()
on each host, as demonstrated in this knowledgebase article.
Take a look at the Meters data in the Monitoring History and click on the blue arrow next to the Memory section, in order to drill down and look at the Memory Detail to observe the pattern of memory consumption for each of the components of server memory.
Upvotes: 2