Skip to content

Commit

Permalink
set min thread stack size to 1 MB (netdata#17317)
Browse files Browse the repository at this point in the history
(cherry picked from commit ee0beeb)
  • Loading branch information
ilyam8 authored and stelfrag committed Apr 11, 2024
1 parent 5c7edac commit 5e2ce4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/daemon/main.c
Expand Up @@ -2023,6 +2023,9 @@ int main(int argc, char **argv) {

// setup threads configs
default_stacksize = netdata_threads_init();
// musl default thread stack size is 128k, let's set it to a higher value to avoid random crashes
if (default_stacksize < 1 * 1024 * 1024)
default_stacksize = 1 * 1024 * 1024;

#ifdef NETDATA_INTERNAL_CHECKS
config_set_boolean(CONFIG_SECTION_PLUGINS, "netdata monitoring", true);
Expand Down

0 comments on commit 5e2ce4a

Please sign in to comment.