Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thalesmg
Copy link
Contributor

No description provided.

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
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