Node.js Performance: Detecting Memory Leaks and High CPU Usage #51633
Unanswered
sudhir-pandey24
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have written Node.js API in which its read data from collection. collection containing 480 records. Each records containing 300 sub payload data.
Inside payloadMapping we are doing mapping of field and stored inside new collection
This function list all events based on parent_category
This function list all events based on category_id
I have given following configuration to POD
ResourceLimits resoureces:
requests:
memeory: "250Mi",
cpu: "50m",
limits:
memeory: "8000Mi"
cpu: "4000m"
While running the API I am getting high memory and CPU utilization. Please help me to optimize the code.
Beta Was this translation helpful? Give feedback.
All reactions