Google Chrome浏览器是否有内存限制? [英] Is there any memory limit for Google Chrome browser?

查看:3204
本文介绍了Google Chrome浏览器是否有内存限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

chrome中单个标签的默认内存限制是多少?

解决方案

很难正确回答,答案很难只能在特定版本的特定任务的基准测试中找到。



有几件事可以让您使用1到2 GB内存:




  • Chrome版本:因为不同的V8引擎有不同的内存限制。

  • Chrome平台:32位或64位。
  • 操作系统本身:chrome可以为不同的平台使用不同的标志。

  • 同样,Chrome版本:有一些关于互联网上关于重新编译chrome的一些编译标志可能允许使用更多的内存,然后chrome开发者决定由于某些原因而排除这些标志。谁知道 - 也许他们会再次包含它们或者会增加默认堆大小。

  • 视频内存:在某些情况下,页面内容可能需要一些视频内存,并且如果您的视频适配器没有足够的数量,Chrome将从普通内存中获取内存,这将增加该页面的内存使用量。现在,使用64位Chrome版本47,在Windows 8.1上,我可以使用一个选项卡高达1.8GB,然后它崩溃。



    更新:



    正如我所看到的一些魔术已经发生并且限制发生了变化。

    对于Chrome版本63,在x64 Windows 10 OS上,我可以分配高达3.5 GB的内存,解析一个巨大的JSON字符串,然后将其显示在页面上。

    该数字取自Chrome的任务管理器和Process Explorer的 Private Bytes 度量标准。


    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.

    There are several thing that could allow you to use from 1 to 2 GB of memory:

    • Chrome version: because different V8 engines have different memory limits.
    • Chrome platform: 32-bit or 64-bit.
    • Operating System itself: chrome could be built with different flags for different platforms.
    • Again, Chrome version: there are some discussion on the internet about recompiling chrome with some compilation flags that could allow to use more memory, then chrome developers decide to exclude such flags because of some reasons. Who know — maybe they will include them again or will increase default heap size.
    • Video memory: in some cases page's content may require some video memory and, if your video adapter has no sufficient amount, Chrome will take it from general memory, which will increase memory usage for the page.

    Right now, with 64bit Chrome version 47, on Windows 8.1 I can take up to 1.8GB with one tab, then it crashes.

    Update:

    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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆