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

add validator trobleshoot section to fix memory fragmentation problem #134

Merged
merged 4 commits into from
Oct 27, 2021

Conversation

yun-yeo
Copy link
Contributor

@yun-yeo yun-yeo commented Oct 26, 2021

Add troubleshoot section for the core memory fragmentation issue

@yun-yeo yun-yeo added the documentation Improvements or additions to documentation label Oct 26, 2021
@yun-yeo yun-yeo requested a review from stevenTerra October 26, 2021 01:52
@yun-yeo yun-yeo self-assigned this Oct 26, 2021
@@ -106,3 +106,43 @@ The LCD to which the voter is connecting might be running from a different netwo
Ensure you specify the LCD for the same network to which your node is connecting.

If you run a [local LCD](../Start-LCD.md) (for example, localhost:1317), ensure your LCD is connecting to the same node.

## Terrad crashes because of out of memory
Copy link
Contributor

Choose a reason for hiding this comment

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

Terrad crashes because of memory fragmentation


## Terrad crashes because of out of memory

The default memory allocator is causing memory fragmentation issue on the `Columbus-5` network as described in [the issue](https://github.com/terra-money/core/issues/592). We highly recommend to install `jemalloc` and preload that `jemalloc` shared library with following steps:
Copy link
Contributor

Choose a reason for hiding this comment

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

As described in this issue, the default memory allocator causes memory fragmentation on the Columbus-5 network. To fix this problem, complete the following steps to install jemalloc and preload the jemalloc shared library:

sudo make install
```

2. Restart the process with `LD_PRELOAD=/usr/local/lib/libjemalloc.so terrad start`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Restart the process by running LD_PRELOAD=/usr/local/lib/libjemalloc.so terrad start.

@stevenTerra
Copy link
Contributor

I added just a few minor changes.

@yun-yeo
Copy link
Contributor Author

yun-yeo commented Oct 27, 2021

Thanks, I applied the changes.

Later can we append this section as recommendations?

@yun-yeo yun-yeo merged commit 039d37b into main Oct 27, 2021
@yun-yeo yun-yeo deleted the add-memory-fragmentation-troubleshoot branch October 27, 2021 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants