aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-01-13 07:41:36 -0800
committerGitHub <[email protected]>2023-01-13 07:41:36 -0800
commit3a501340b758dbe3c9543ed53c3d6d89a936649f (patch)
treef3e5c4a205587b994e8f596e6b54548704e0687c /zenserver/config.cpp
parentzen command line tool improvements (#212) (diff)
downloadzen-3a501340b758dbe3c9543ed53c3d6d89a936649f.tar.xz
zen-3a501340b758dbe3c9543ed53c3d6d89a936649f.zip
fix gc logging (#213)
* Don't output time to next GC if time is "infinite". * Do immediate check of GC status on thread startup instead of waiting montior intervall first. * set up reasonable gc defaults * changelog
Diffstat (limited to 'zenserver/config.cpp')
-rw-r--r--zenserver/config.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp
index 057b26c5b..d7233a6f4 100644
--- a/zenserver/config.cpp
+++ b/zenserver/config.cpp
@@ -462,35 +462,35 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
options.add_option("gc",
"",
"gc-small-objects",
- "Whether garbage collection is enabled or not.",
+ "Whether garbage collection of small objects is enabled or not.",
cxxopts::value<bool>(ServerOptions.GcConfig.CollectSmallObjects)->default_value("true"),
"");
options.add_option("gc",
"",
"gc-interval-seconds",
- "Garbage collection interval in seconds. Default set to 0 (Off).",
- cxxopts::value<int32_t>(ServerOptions.GcConfig.IntervalSeconds)->default_value("0"),
+ "Garbage collection interval in seconds. Default set to 3600 (1 hour).",
+ cxxopts::value<int32_t>(ServerOptions.GcConfig.IntervalSeconds)->default_value("3600"),
"");
options.add_option("gc",
"",
"gc-cache-duration-seconds",
- "Max duration in seconds before Z$ entries get evicted.",
- cxxopts::value<int32_t>(ServerOptions.GcConfig.Cache.MaxDurationSeconds)->default_value("86400"),
+ "Max duration in seconds before Z$ entries get evicted. Default set to 1209600 (2 weeks)",
+ cxxopts::value<int32_t>(ServerOptions.GcConfig.Cache.MaxDurationSeconds)->default_value("1209600"),
"");
options.add_option("gc",
"",
"disk-reserve-size",
- "Size of gc disk reserve in bytes.",
+ "Size of gc disk reserve in bytes. Default set to 268435456 (256 Mb).",
cxxopts::value<uint64_t>(ServerOptions.GcConfig.DiskReserveSize)->default_value("268435456"),
"");
options.add_option("gc",
"",
"gc-monitor-interval-seconds",
- "Garbage collection monitoring interval in seconds.",
+ "Garbage collection monitoring interval in seconds. Default set to 30 (30 seconds)",
cxxopts::value<int32_t>(ServerOptions.GcConfig.MonitorIntervalSeconds)->default_value("30"),
"");