Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
Kuberneties : node.js set max-old-space-size on container command does not work

my memory is as follows: i would like to increase to 4gb memory

> v8.getHeapStatistics()
{
  total_heap_size: 5222400,
  total_heap_size_executable: 573440,
  total_physical_size: 3287816,
  total_available_size: 2195404152,
  used_heap_size: 2933192,
  heap_size_limit: 2197815296,
  malloced_memory: 65592,
  peak_malloced_memory: 712992,
  does_zap_garbage: 0,
  number_of_native_contexts: 1,
  number_of_detached_contexts: 0
}

i am trying to set the following on the container statefulset and nothing happen

how can I get it work?

      containers:
        - name: service
          image: XXX
          command:
            - node
          args:
            - '--max-old-space-size=4096'
            - ./dist/main.js
        

from the ps aux i can see

'root 1 10.8 1.5 985080 125968 ? Ssl 19:34 0:02 node --max-old-space-size=4096 ./dist//main.js'

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!