Skip to content

[🐛 Bug]: selenium chrome error: out of memory #16375

@GlobalMe2017

Description

@GlobalMe2017

Description

i use 32bit chrome 137, when selenium open some tabs through chrome, it will crash 'out of memory'

i check the log, there is a memory limit of around 900MB

i searched a lot on google, e.g. https://stackoverflow.com/questions/17491022/max-memory-usage-of-a-chrome-process-tab-how-do-i-increase-it

but it seems not working anymore, so how to raise the chrome memory limit in selenium?

Reproducible Code

use selenium to open this link:

https://wallpapersafari.com/w/UrvL4y/

Debugging Logs

<--- Last few GCs --->

[2984:21604000]   312649 ms: Scavenge (during sweeping) 990.2 (1027.8) -> 984.6 (1028.5) MB, pooled: 0.0 MB, 6.94 / 0.00 ms (average mu = 0.335, current mu = 0.349) allocation failure;
[2984:21604000]   313384 ms: Mark-Compact 991.6 (1033.3) -> 973.6 (1032.5) MB, pooled: 0.0 MB, 701.20 / 0.01 ms (average mu = 0.311, current mu = 0.288) allocation failure; scavenge might not succeed

ℹ️ Last known working version: 4.36

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions