【问题标题】:Node.js lower performance on Ubuntu 12.04.3 because of libc由于 libc,Node.js 在 Ubuntu 12.04.3 上的性能较低
【发布时间】:2013-11-28 07:54:36
【问题描述】:

我们正在 Ubuntu 12.04.3 上分析我们的 node.js 应用程序(Node v.0.10.22)。它显示了 libc-2.15.so 占用的巨大 CPU。如何确定发生了什么以及如何减少 libc 的影响?

 [Bottom up (heavy) profile]:
  Note: percentage shows a share of a particular caller in the total
  amount of its parent calls.
  Callers occupying less than 2.0% are not shown.

   ticks parent  name
  77875   79.4%  /lib/x86_64-linux-gnu/libc-2.15.so
   2276    2.9%    LazyCompile: *clearBuffer _stream_writable.js:289
   2276  100.0%      LazyCompile: *onwrite _stream_writable.js:243
   2276  100.0%        LazyCompile: *WritableState.onwrite _stream_writable.js:96
   2276  100.0%          LazyCompile: ~<anonymous> fs.js:1675
   2276  100.0%            LazyCompile: ~wrapper fs.js:508

【问题讨论】:

    标签: performance node.js ubuntu ubuntu-12.04


    【解决方案1】:

    您可能会看到 Node.js 在系统调用中休眠。

    作为Ben Noordhuis said:

    这可能是 node.js 在 epoll_wait() 系统调用中休眠。 未来版本的 node.js 将过滤掉此类滴答声,但现在 这是不可能的,你必须让你的应用程序保持忙碌 分析。

    您也可以在 node.js google 组上阅读this relevant thread

    【讨论】:

      猜你喜欢
      • 2014-01-29
      • 2014-02-08
      • 1970-01-01
      • 1970-01-01
      • 2012-11-02
      • 2015-11-13
      • 1970-01-01
      • 2017-06-08
      • 2014-02-08
      相关资源
      最近更新 更多