【问题标题】:phantomjs 2.0 High memory usage on Linuxphantomjs 2.0 Linux 上的高内存使用
【发布时间】:2017-05-30 22:50:32
【问题描述】:

对于我的项目,我使用 phantomjs 2.0 生成图表图像(Highcharts)

在 Windows 上,当我生成图像时,phantomjs 使用 30Mo RAM(最大 35 Mo) 在 Linux (Debian 7.8) 上,当我启动 phantomjs 时,它需要 1.6Go RAM,而当我生成图像时,它最多需要 1.7Go。

我不理解内存使用的这种巨大差异。

有人有任何想法。

【问题讨论】:

  • 考虑到甚至没有正式的 linux v2.0.0 版本,我不知道你是怎么得到这些数字的..
  • 我在官网phantomjs.org/download.html下载了源码phantomjs-2.0.0-source.zip,并在debian上构建
  • 请添加更多信息,以便其他人可以重现这种情况。
  • 我对 phantomjs 1.9 有同样的问题
  • 当我在 Windows 上启动 phantomjs.exe(不带参数)时,生成图像需要 30 个月。在 linux 上,当我启动 phantomjs(不带参数)时,它需要 1Go。我的 linux 是 Debian 7.8。

标签: linux phantomjs


【解决方案1】:

我在 2.1.1 中遇到了这个问题,无论是从 apt-get 安装的版本还是我自己构建的版本。回到 2.0.1 为我解决了这个问题。

请注意,2.0 有一些回归 - http://phantomjs.org/release-2.0.html

【讨论】:

    猜你喜欢
    • 2022-07-19
    • 1970-01-01
    • 2014-08-17
    • 1970-01-01
    • 1970-01-01
    • 2015-04-17
    • 2013-05-17
    • 2011-04-08
    • 2018-09-14
    相关资源
    最近更新 更多