ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
20.62k stars 834 forks source link

Option to increase or remove heap memory limit #2600

Open kzhsw opened 11 months ago

kzhsw commented 11 months ago

Description

Make an option, in flags or command-line, to allow users to increase or remove heap memory limit, to use heap larger than 4GB in systems with much greater memory.

Who's implementing?

The problem

Currently chrome limits the heap memory (or the memory of a render process) to likely 4GB, but larger heap would be useful for debugging heap using the memory profiler, or running large, resource-consuming app on web. This is previously discussed on many forums, but now I can not find a thing that works without rebuilding the chromium itself.

Previous contexts:

Possible solutions

Alternatives

Use Firefox which has larger limit on heap, and a slower js engine.

Additional context

No response

richard-stafflink commented 8 months ago

Haven't tested it, but does this work:

chrome --js-flags="--max_old_space_size=8192"

kzhsw commented 8 months ago

Haven't tested it, but does this work:

chrome --js-flags="--max_old_space_size=8192"

This could increase limit for ArrayBuffers, but not js objects, nor postMessage