Skip to content

Excessive Memory Consumption and Freezing Issue with --headless Option on M2 Device #2300

Closed
@LiPingYen

Description

@LiPingYen

I have encountered a similar issue in #1916. When running on the M2 device with the --headless option, Google Chrome Helper (GPU) gradually consumes more and more memory, eventually causing the computer to freeze. Through testing, I've observed that this behavior persists regardless of whether the --uc is enabled or if multiple threads(-n2) are being used. If --headless is not used, the memory usage of Google Chrome Helper (GPU) remains stable and relatively low.

  1. with --headless
pytest test.py -n2 --dashboard --html=report.html --rs --crumbs --headless —uc 
Screenshot 2023-11-19 at 10 39 31 AM copy
  1. without --headless
pytest test.py -n2 --dashboard --html=report.html --rs --crumbs --uc 
Screenshot 2023-11-19 at 10 56 11 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeexternalOutside SeleniumBase's scope. / Ask somewhere else.workaround existsYou can reach your destination if you do this...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions