Overview
After clients get updated to 22.2 or later version, you may notice a slowdown in searches or even searches timing out, often accompanied by errors like the ones below seen on the clients. You may also notice resource exhaustion on the database server and/or the M-Files application server.
Sample error message 1:
NodeTaskQueue.cpp, 234, This operation returned because the timeout period expired. (0x800705B4)
NodeRefreshTask.cpp, 96, This operation returned because the timeout period expired. (0x800705B4)
ListingCache.cpp, 3373, This operation returned because the timeout period expired. (0x800705B4)
ListingCache.cpp, 482, This operation returned because the timeout period expired. (0x800705B4)
ListingCache.cpp, 1575, This operation returned because the timeout period expired. (0x800705B4)
ListingCache.cpp, 1886, This operation returned because the timeout period expired. (0x800705B4)
ListingCacheNode.cpp, 1019, This operation returned because the timeout period expired. (0x800705B4)
ListingCacheNode.cpp, 1291, This operation returned because the timeout period expired. (0x800705B4)
ListingCacheNode.cpp, 10528, This operation returned because the timeout period expired. (0x800705B4)
ListingCacheNode.cpp, 5310, This operation returned because the timeout period expired. (0x800705B4)
(M-Files 22.2.11149.3)
Sample error message 2:
NodeTaskQueue.cpp, 234, This operation returned because the timeout period expired. (0x8979000D)
NodeRefreshTask.cpp, 96, This operation returned because the timeout period expired. (0x8979000D)
ListingCache.cpp, 3373, This operation returned because the timeout period expired. (0x8979000D)
ListingCache.cpp, 482, This operation returned because the timeout period expired. (0x8979000D)
ListingCache.cpp, 1575, This operation returned because the timeout period expired. (0x8979000D)
ListingCache.cpp, 1886, This operation returned because the timeout period expired. (0x8979000D)
ListingCacheNode.cpp, 1019, This operation returned because the timeout period expired. (0x8979000D)
ListingCacheNode.cpp, 1291, This operation returned because the timeout period expired. (0x8979000D)
ListingCacheNode.cpp, 10528, This operation returned because the timeout period expired. (0x8979000D)
ListingCacheNode.cpp, 5347, This operation returned because the timeout period expired. (0x8979000D)
ListingCacheNode.cpp, 14334, This operation returned because the timeout period expired. (0x8979000D)
RPCMethodCallWithRetry.h, 45, This operation returned because the timeout period expired. (0x8979000D)
RPCMethodCallWithRetry.h, 45, This operation returned because the timeout period expired. (0x8979000D)
RPCSearch.cpp, 1592, This operation returned because the timeout period expired. (0x8979000D)
RPCSearch.cpp, 529, This operation returned because the timeout period expired. (0x8979000D)
MCallInLoop.h, 712, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 2889, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 4102, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 4298, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 6818, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 7376, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 17084, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 17260, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 17218, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 17602, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 17906, This operation returned because the timeout period expired. (0x8979000D)
RPCSearchHelper.cpp, 17958, This operation returned because the timeout period expired. (0x8979000D)
ObjectSearcher_FullInfo.cpp, 1013, This operation returned because the timeout period expired. (0x8979000D)
ObjectSearcher_FullInfo.cpp, 1348, This operation returned because the timeout period expired. (0x8979000D)
SearchSQLHelper.cpp, 4659, This operation returned because the timeout period expired. (0x8979000D)
SearchSQLHelper.cpp, 3633, This operation returned because the timeout period expired. (0x8979000D)
SearchSQLHelper.cpp, 7619, This operation returned because the timeout period expired. (0x8979000D)
SearchSQLHelper.cpp, 7409, This operation returned because the timeout period expired. (0x8979000D)
SearchSQLHelper.cpp, 5854, This operation returned because the timeout period expired. (0x8979000D)
PreprocessedSearchCondDynamicData.cpp, 71, This operation returned because the timeout period expired. (0x8979000D)
CoFullTextSearchRunner_Inline.cpp, 834, This operation returned because the timeout period expired. (0x8979000D)
CoFullTextSearchRunner_Inline.cpp, 834, This operation returned because the timeout period expired. (0x8979000D)
(M-Files 22.4.11321.4 2022-05-20T02:36:34.083Z)
Likely Cause
The 22.2 (February 2022) release brings a feature that allows M-Files clients to automatically refresh view listings in the background (this includes views and searches). This means, that each client repeats the current search at the defined interval (5 minutes by default) and that adds load to the server.
If the error stacks start with the items in bold above, names similar to "refresh task" and "task queue", likely the search that timed out was a background refresh operation.
Solution
In such a case, the easiest solution is to disable the automatic refresh feature, or to increase its time interval. You can find it under the vault Configurations > Advanced Vault Settings > Configuration > Client > Desktop > Listing > Automatic Refresh.
You can set Enabled to No to disable the feature altogether or increase the Refresh Interval and monitor the situation (and increase it further or disable the feature if needed).
You should also monitor the performance of the M-Files application server and the database server for spikes and resource exhaustion. For example, CPU cores on the M-Files server may be overburdened because they are processing searches, and so other background tasks may get processed slower. Or, the MS SQL server may be using too much memory and it may be swapping (ensure its memory limit is set, and check that the page file usage is not high - ideally, it should be close to 0% or 0MB, but that can vary somewhat as the system can use a little bit of page file in normal situations).
If resources on the server(s) are not enough, you should also review where the slowness comes from (e.g., it may have another cause) and consider adding more resources if there aren't issues in the implementation, but simply the hardware is not sufficient for the size and tasks the vault has (these tend to grow over time and at one point simply require more resources).
