Magickbase / ckb-explorer-public-issues

CKB Explorer Issues
https://explorer.nervos.org/
3 stars 2 forks source link

Rack cache with dalli caused max body error #781

Open zmcNotafraid opened 4 weeks ago

zmcNotafraid commented 4 weeks ago

cache error: Value for body:9ffde88a435e3b77ae94fa0d7a0708771fa680b8 over max size: 1048576 Maybe caused by this PR:https://github.com/nervosnetwork/ckb-explorer/commit/ffedb624be57253c8f862db41d537245aedf89a9

zmcNotafraid commented 4 weeks ago

PR: https://github.com/nervosnetwork/ckb-explorer/pull/2149

zmcNotafraid commented 4 weeks ago

Many requests of rgb_live_cells caused this problem

zmcNotafraid commented 6 days ago

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

zmcNotafraid commented 5 days ago

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 commented 5 days ago

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