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

Memory Leak in riak_core_connection_mgr_stats [JIRA: RIAK-2231] #711

Closed
ian-mi opened this issue Oct 16, 2015 · 2 comments
Closed

Memory Leak in riak_core_connection_mgr_stats [JIRA: RIAK-2231] #711

ian-mi opened this issue Oct 16, 2015 · 2 comments

Comments

@ian-mi
Copy link
Contributor

ian-mi commented Oct 16, 2015

Whenever there is a conn_error, riak_core_connection_mgr_stats will create or update a stat which includes the entire error: https://github.com/basho/riak_repl/blob/develop/src/riak_core_connection_mgr_stats.erl#L231-L239. However, in the case of a noproc error, the PID and port number will be included as part of this error tuple essentially making this error unique. When a node hits such an error repeatedly this can lead to hundreds of thousands folsom spirals and counters being created and until all available memory is used by these statistics. Rather than store the entire Error tuple in the statistic, perhaps only the error slogan, of which there should only be a finite number, should be included?

@Basho-JIRA Basho-JIRA changed the title Memory Leak in riak_core_connection_mgr_stats Memory Leak in riak_core_connection_mgr_stats [JIRA: RIAK-2231] Oct 16, 2015
@Basho-JIRA
Copy link

A patch for this was built today.

_[posted via JIRA by Seema Jethani]_

@Basho-JIRA
Copy link

Merged into 2.1 branch

_[posted via JIRA by Douglas Rohrer]_

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

No branches or pull requests

2 participants