wwebjs-api icon indicating copy to clipboard operation
wwebjs-api copied to clipboard

Question regarding usage of headless browser option

Open ovargasp opened this issue 2 months ago • 2 comments

I've a question regarding memory usage, when you use the headless browser option, does it impact memory usage? I've 2 sessions and those take almost 5 GB of RAM, so I'm wondering if by using headless browser that can be reduced, and if there are any things that I need to consider while using headless mode...

Thanks.

ovargasp avatar Nov 07 '25 21:11 ovargasp

We run headless mode due to missing X system on the docker image. Theoretically, headless mode should use less RAM. Are you running with headless mode disabled?

avoylenko avatar Nov 11 '25 19:11 avoylenko

I never set up the HEADLESS env variable, I read the code and according to it, if is not defined is set to true by default. So I take it I'm running headless... just wondering if I got it correctly.

Thanks

ovargasp avatar Nov 11 '25 21:11 ovargasp