我在运行使用express + mongoose + continuation-local-storage构建的nodejs app的git子模块中有内存泄漏。
使用heapdump我从进程开始就使用快照来创建非对象对象的快照。
但是在我的第二个快照中,我看到String构造函数的快照之间的增量是131000,只是这样的条目。基本上它是一个字符串化的函数。我不知道为什么
"(function (exports, require, module, __filename, __dirname) { /** * @license
* Lodash <https://lodash.com/> * Copyright JS Foundation and other
contributors <https://js.foundation/> * Released under MIT license
<https://lodash.com/license> * Based on Underscore.js 1.8.3
<http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud
and Investigative Reporters & Editors */ ;(function() { /** Used as a safe
reference for `undefined` in pre-ES5 environments. */ var undefined; /** Used
as the semantic version number. */ var VERSION = '4.17.4'; /** Used as the
size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /**
Error message constants. */ var CORE_ERROR_TEXT = 'Unsupported core-js use.
Try https://npms.io/search?q=ponyfill.', FUNC_ERROR_TEXT = 'Expected a
function'; /** Used to stand-in for `undefined` hash values. */ var
HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used as the maximum memoize
cache size. */ var MAX_MEMOIZE_SIZE" @252343