Skip to content

Commit

Permalink
Merge pull request #25 from klarna-incubator/do-not-divide-max-proc-c…
Browse files Browse the repository at this point in the history
…ount-threshold-by-5

Do not divide MaxProcs by 5
  • Loading branch information
jesperes authored Feb 23, 2023
2 parents 25e4e7a + 200eb55 commit 2250b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system_monitor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ monitors() ->
check_process_count() ->
{ok, MaxProcs} = application:get_env(?APP, top_max_procs),
case erlang:system_info(process_count) of
Count when Count > MaxProcs div 5 ->
Count when Count > MaxProcs ->
?LOG_WARNING(
"Abnormal process count (~p).~n"
, [Count]
Expand Down

0 comments on commit 2250b21

Please sign in to comment.