Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdstar
cdstar
Commits
ec05b443
Commit
ec05b443
authored
Dec 03, 2019
by
mhellka
Browse files
Enable cache statistics for NioPool
parent
2dacdd52
Pipeline
#115831
passed with stages
in 8 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cdstar-backend-nio/src/main/java/de/gwdg/cdstar/pool/nio/NioPool.java
View file @
ec05b443
...
...
@@ -101,6 +101,7 @@ public class NioPool implements StoragePool {
.
maximumSize
(
cacheSize
)
// Allow GC to shrink the heap during idle hours.
.
expireAfterAccess
(
60
,
TimeUnit
.
SECONDS
)
.
recordStats
()
// This has a (small) performance impact
.
build
(
this
::
loadFromDisk
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment