Predix_Logo
  • Categories
    • Questions
    • Predix | Updates
      • Pricing
      • Product
    • Deloitte - Private
    • How-To
    • Accenture-Private
  • Explore
    • Topics
    • Questions
    • Articles
    • Feedback or Feature Requests
  • Sign in
  • Home /
  • Questions /
avatar image
1
Question by Pranav1.Garg@ge.com · Jul 03, 2020 at 06:20 AM · node.jsmemory

Node JS Micro service going out of memory

Deployed a Node JS Micro Service on predix with 512 MB Memory and 1 GB Disk config. In 7 days memory usage increased from 35 MB to 160 MB without making any code execute except that the service is running and http server keep listening on a port.

New Relic says that heap is not increasing. Not sure why memory keeps increasing and after certain days, micro service restarts after throwing "Error Code 137" and message "Out Of Memory".

Any help is appreciated.

Comment
Add comment
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
0

Answer by ganesh.vaithilingam@ge.com · Jul 07, 2020 at 10:10 AM

What is the version of Node module?

Are you monitoring the resident set size as well?

You may need to apply NODE_OPTIONS: --max-old-space-size=<> to make the node aware of the upper limit of the container memory.

Comment
Add comment · Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Pranav1.Garg@ge.com · Jul 07, 2020 at 11:08 PM 0
Share

Node version is 8.16.1

As predix doesn't support cflinuxfs3 stack, max version available in node js buildpack #v1.6.56 is node 8.16.1 in 8.x series and node 10.15.0 in 10.x series.

Regarding NODE_OPTIONS: --max-old-space-size=<>, When I set this value to be around 75% of app memory limit, it still throws memory error(though it was from node process instead), and when app reaches this limit, longer GC cycles is happening.

Not sure how can I monitor resident set size in predix.

Follow this Question

Answers Answers and Comments

91 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Memory Limit exceeded on winddata-timeseries-service 2 Answers

Data Ingestion to predix cloud through nodejs 1 Answer

Is there any Memory enhancement for predix certified developer? 1 Answer

Too many redirect error 2 Answers

How to create RabbitMQ instance in javascript 1 Answer

GE Monogram
  • Legal
  • Cookies
  • Forum Terms
  • Contact Us
  • Copyright © 2017 General Electric Company. All rights reserved.


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Submit your feedback or feature request
  • Categories
  • Questions
  • Predix | Updates
    • Pricing
    • Product
  • Deloitte - Private
  • How-To
  • Accenture-Private
  • Explore
  • Topics
  • Questions
  • Articles
  • Feedback or Feature Requests