debug
This commit is contained in:
parent
4c99aed79e
commit
09ff66cf05
1 changed files with 1 additions and 1 deletions
|
|
@ -2088,7 +2088,7 @@ const heapChecker = setInterval(() => {
|
|||
const memoryUsage = process.memoryUsage();
|
||||
console.log(`[Memory Log] heapUsed: ${(memoryUsage.heapUsed / 1024 / 1024).toFixed(2)} MB`);
|
||||
|
||||
if (memoryUsage.heapUsed > 0.05 * 1024 * 1024 * 1024) {
|
||||
if (memoryUsage.heapUsed > 0.5 * 1024 * 1024 * 1024) {
|
||||
clearInterval(heapChecker);
|
||||
|
||||
const filename = join('/tmp/explorer', `heap-${Date.now()}.heapsnapshot`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue