Google Chrome 浏览器是否有内存限制? [英] Is there any memory limit for Google Chrome browser?
问题描述
chrome 中单个标签的默认内存限制是多少??
What is the default memory limit for a single tab in chrome ??
推荐答案
很难正确回答,只有在特定构建的特定任务的基准测试中才能找到答案.
It's hard to answer correctly and the answer could be figured out only in benchmarks for particular task with particular build.
有几种方法可以让您使用 1 到 2 GB 的内存:
There are several thing that could allow you to use from 1 to 2 GB of memory:
- Chrome 版本:因为不同的 V8 引擎有不同的内存限制.
- Chrome 平台:32 位或 64 位.
- 操作系统本身:chrome 可以针对不同的平台使用不同的标志构建.
- 同样,Chrome 版本:网上有一些关于使用一些编译标志重新编译 chrome 的讨论,这些标志可以允许使用更多的内存,然后由于某些原因,chrome 开发人员决定排除这些标志.谁知道呢——也许他们会再次包含它们,或者会增加默认堆大小.
- 显存:在某些情况下,页面的内容可能需要一些显存,如果您的视频适配器没有足够的显存,Chrome 将从一般内存中获取它,这会增加页面的内存使用量.
现在,使用 64 位 Chrome 版本 47,在 Windows 8.1 上,我最多可以使用一个标签占用 1.8GB,然后崩溃.
Right now, with 64bit Chrome version 47, on Windows 8.1 I can take up to 1.8GB with one tab, then it crashes.
更新:
正如我所见,发生了一些神奇的事情,并且限制发生了变化.
对于 Chrome 63 版,在 x64 Windows 10 操作系统上,我最多可以分配 3.5 GB 内存,解析一个巨大的 JSON 字符串,然后将其显示在页面上.
该数字取自 Chrome 的任务管理器和 Process Explorer 的 Private Bytes
指标.
As I can see some magic has happened and limit has changed.
For Chrome version 63, on x64 Windows 10 OS, I could allocate up to 3.5 GB memory, parsing a huge JSON string and then displaying it on the page.
The number is taken from Chrome's Task manager and from Process Explorer's Private Bytes
metric.
这篇关于Google Chrome 浏览器是否有内存限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!