-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What are the recommended values for directoryCacheMaxEntries and commandCacheMaxEntries? #1638
Comments
I'm not sure if we've exposed enough of the runtime metrics for those caches to make decisions from any externally observable measurements. |
Currently, I set Then, I use |
Or do you have any suggestions for locating OOM-related problems? |
I say, yes, reduce the size (of the caches). I bet that a good portion of them decay quickly (but again, I would need to have/add stats to say that for sure), and that a useful comparison will be a sentinel build of some sort with full execution, on a fresh server (twice, to see the impact of population), against one that has a reduced size. If your time is unaffected (and the builds are representative), then you're likely unaffected by thrash. Dealing with OOMs is a matter of exactly what you're doing. jmap, object counts over time, perturbation of likely causes, and measuring the effects and timing of GC runs. |
Currently, I set the value of directoryCacheMaxEntries, commandCacheMaxEntries, digestToActionCacheMaxEntries, recentServedExecutionsCacheMaxEntries to 6553600. However, MAT shows that directoryCache and commandCache occupy a large amount of memory. I think it's because the size is set too large. Do you have any suggestions?
The text was updated successfully, but these errors were encountered: