Skip to content

feat: increase GC frequency when in low memory mode#155

Draft
thalesmg wants to merge 1 commit into
masterfrom
gc-frequency
Draft

feat: increase GC frequency when in low memory mode#155
thalesmg wants to merge 1 commit into
masterfrom
gc-frequency

Conversation

@thalesmg
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread test/emqtt_SUITE.erl
t_low_mem_opts(Config) ->
Port = ?config(port, Config),
{ok, C} = emqtt:start_link([{port, Port}, {low_mem, true}]),
%% TODO: check min_heap_size, min_bin_vheap_size
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, those values are not set to 16. Maybe it overrides to an internal minimum value.

Failure/Error: ?assertEqual([], process_info ( C , [ min_heap_size , min_bin_vheap_size , fullsweep_after ] ))
  expected: []
       got: [{min_heap_size,233},
             {min_bin_vheap_size,46422},
             {fullsweep_after,1000}]
      line: 455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant