nodejs 分析;什么是“未知" [英] nodejs profiling; what can 'Unknown' be
本文介绍了nodejs 分析;什么是“未知"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在分析 nodejs 程序时,我发现 61% 的滴答声是由未知"引起的(见下文).这可以是什么?我应该寻找什么?
While profiling a nodejs program, I see that 61% of the ticks are caused by 'Unknown' (see below). What can this be? What should I look for?
gr,
科恩
Statistical profiling result from node, (14907 ticks, 9132 unaccounted, 0 excluded).
[Unknown]:
ticks total nonlib name
9132 61.3%
[Shared libraries]:
ticks total nonlib name
1067 7.2% 0.0% C:\Windows\SYSTEM32\ntdll.dll
55 0.4% 0.0% C:\Windows\system32\kernel32.dll
[JavaScript]:
ticks total nonlib name
1381 9.3% 10.0% LazyCompile: *RowDataPacket.parse D:\MI\packet.js:9
......
推荐答案
您正在使用 64 位版本的 Node.JS 来运行您的应用程序,并使用 32 位版本的 d8 shell 来处理您的 v8.log代码>.使用 32 位版本的 Node.JS 和 ia32 作为 d8 shell 的构建目标,或者使用 64 位版本的 Node.JS 和 x64 作为 d8 shell 构建目标应该可以解决您的问题.
You are using a 64 bit version of Node.JS to run your application and a 32bit build of the d8 shell to process your v8.log
.
Using either a 32 bit version of Node.JS with ia32 as the build target for the d8 shell or a 64 bit version of Node.JS with x64 as the d8 shell build target should solve your problem.
这篇关于nodejs 分析;什么是“未知"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文