You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Klaytn node should be operated stably with minimum H/W requirements.
However, some EN operators experienced OOM when a lot of transactions and API calls exist on the Cypress network.
I reported the issues from two different usage
EN that receives too many API calls
The followings are memory profiling results when the node keet increasing memory usage.
I found out that httpServer allocated a lot of memory for the bytebuffer of json encoder
EN that doesn't receive too many API calls
There is no detailed profiling result of information, but some EN operators said they EN has crashed when there are a lot of transactions in blocks for a long time.
The text was updated successfully, but these errors were encountered:
Assuming most of the api call is not a debug api which consumes a lot of memory, this problem is solved by the following PR #1650.
EN that doesn't receive too many API calls
I have measured how much memory the EN uses. Most of the time, it usually shows the next memory usage, but sometimes it spikes enough to cause OOM. If situation getting worse, the machine hangs.
m5.2xlarge (32GB) -> 20GB~22GB
i3.4xlarge(122GB) -> about 70GB, sometimes it spikes to 90GB
Recommend the following actions to avoid the machine hang and restart as soon as possible if there's oom.
Recommend at least 60GB memory when syncing, and 30GB memory when not syncing.
Set memory limitation such as cgroup to limit the ken process memory usage.
Set restart option of kend.conf
Set --state.trie-cache-limit in the ADDITIONAL field of kend.conf appropriate for your service. This flag determines the memory size consumed by storing fastcache. The default value is calculated as below.
if physicalMemorySize < 10GB: i recommend use the machine having bigger memory size.
if 10GB <= physicalMemorySize < 20GB: it is set as 1GB.
if 20GB <= physicalMemorySize <=100GB: it is set as 0.3*physicalMemorySize
if physicalMemorySize > 100GB: it is set as 0.35*physicalMemorySize
I'll close this issue, because there's many duplicated issues and i want to seperate 1. and 2. as seperate issue.
Klaytn node should be operated stably with minimum H/W requirements.
However, some EN operators experienced OOM when a lot of transactions and API calls exist on the Cypress network.
I reported the issues from two different usage
The followings are memory profiling results when the node keet increasing memory usage.
I found out that httpServer allocated a lot of memory for the bytebuffer of json encoder
There is no detailed profiling result of information, but some EN operators said they EN has crashed when there are a lot of transactions in blocks for a long time.
The text was updated successfully, but these errors were encountered: