Giter Club home page Giter Club logo

Comments (7)

iamshouvikmitra avatar iamshouvikmitra commented on May 11, 2024 2

I found that initializing a client with

new Client({
                puppeteer: {
                    args: [
                        '--no-sandbox',
                        '--disable-setuid-sandbox',
                        '--disable-dev-shm-usage',
                        '--disable-accelerated-2d-canvas',
                        '--no-first-run',
                        '--no-zygote',
                        '--disable-gpu'
                      ],
                }
            })

should help but I am not sure, would appreciate your inputs.

from whatsapp-web.js.

gabriel-tandil avatar gabriel-tandil commented on May 11, 2024

Hi! I run it this way, I'm going to try some of these options you mentioned there.

   , args: [
          '--log-level=3', // fatal only
          '--start-maximized',
          '--no-default-browser-check',
          '--disable-infobars', 
          '--disable-web-security',
          '--disable-site-isolation-trials',
          '--no-experiments',
          '--ignore-gpu-blacklist',
          '--ignore-certificate-errors',
          '--ignore-certificate-errors-spki-list',
          '--disable-gpu',
          '--disable-extensions',
          '--disable-default-apps',
          '--enable-features=NetworkService',
          '--disable-setuid-sandbox',
          '--no-sandbox'
        ]

Greetings

from whatsapp-web.js.

joaomirandas avatar joaomirandas commented on May 11, 2024

Hi everyone, i run neutral without any args and i realized continually puppeter takes more and more memory, it's a problem if you need keep your application running 24/7.
If you have any ideia of how to decrease this amount i will be glad to know.

My memory consumption in time-window of 12Hours.
Captura de Tela 2020-02-27 às 16 42 20

Notice: I use a lot of other things inside of this docker container so don't scare with how large is my memory but essentially in how this increase with time elapsed.

from whatsapp-web.js.

aliyss avatar aliyss commented on May 11, 2024

Is there a difference if it's running headless or not?

from whatsapp-web.js.

gabriel-tandil avatar gabriel-tandil commented on May 11, 2024

Beyond consuming less or not running it headless, having an environment without any support for a graphic system is lighter than a complete environment with window manager and other needs.

from whatsapp-web.js.

stale avatar stale commented on May 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from whatsapp-web.js.

PiyushDuggal-source avatar PiyushDuggal-source commented on May 11, 2024

Hi everyone, i run neutral without any args and i realized continually puppeter takes more and more memory, it's a problem if you need keep your application running 24/7. If you have any ideia of how to decrease this amount i will be glad to know.

My memory consumption in time-window of 12Hours. Captura de Tela 2020-02-27 às 16 42 20

Notice: I use a lot of other things inside of this docker container so don't scare with how large is my memory but essentially in how this increase with time elapsed.

Hey did you try with arguments and compare?

from whatsapp-web.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.