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

Rack cache with dalli caused max body error #781

Open
zmcNotafraid opened this issue Aug 27, 2024 · 5 comments
Open

Rack cache with dalli caused max body error #781

zmcNotafraid opened this issue Aug 27, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@zmcNotafraid
Copy link
Member

cache error: Value for body:9ffde88a435e3b77ae94fa0d7a0708771fa680b8 over max size: 1048576
Maybe caused by this PR:nervosnetwork/ckb-explorer@ffedb62

@zmcNotafraid zmcNotafraid added the bug Something isn't working label Aug 27, 2024
@zmcNotafraid zmcNotafraid self-assigned this Aug 27, 2024
@zmcNotafraid
Copy link
Member Author

@zmcNotafraid
Copy link
Member Author

Many requests of rgb_live_cells caused this problem

@zmcNotafraid
Copy link
Member Author

cache: [GET /api/v1/addresses/ckb1qrgqep8saj8agswr30pls73hra28ry8jlnlc3ejzh3dl2ju7xxpjxqgqq9anc9wda5fc0d0fjngrvfahpumy5qatxs5vjqaf] miss
cache error: Response error 130: Out of memory

@zmcNotafraid
Copy link
Member Author

zmcNotafraid commented Sep 18, 2024

cache: [GET /api/v1/addresses/ckb1qrgqep8saj8agswr30pls73hra28ry8jlnlc3ejzh3dl2ju7xxpjxqgqq9anc9wda5fc0d0fjngrvfahpumy5qatxs5vjqaf] miss cache error: Response error 130: Out of memory

Fragmentation causing memory to become unavailable

Memcached’s memory management allocates fixed-size memory blocks to store data. If the size of the stored data varies significantly, it can lead to memory fragmentation. As a result, some memory may be free but unusable for storing new data, eventually leading to an “Out of memory” error.

After restart it seems work.

@guomaoqiu
Copy link

cache: [GET /api/v1/addresses/ckb1qrgqep8saj8agswr30pls73hra28ry8jlnlc3ejzh3dl2ju7xxpjxqgqq9anc9wda5fc0d0fjngrvfahpumy5qatxs5vjqaf] miss cache error: Response error 130: Out of memory

Fragmentation causing memory to become unavailable

Memcached’s memory management allocates fixed-size memory blocks to store data. If the size of the stored data varies significantly, it can lead to memory fragmentation. As a result, some memory may be free but unusable for storing new data, eventually leading to an “Out of memory” error.

After restart it seems work.

The memcached service has been monitored. When the available memory is less than 2G, an alarm will be issued and it will be manually restarted.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants