Comments (2)
I guess this is the case when the module is used from another module, and not directly from the main app. Good find.
PR for this is welcome, since i'm not having much time to fix this coming days.
Maybe we can make the code more robust by checking if require.main is null and if so, use process.cwd (https://nodejs.org/api/process.html#process_process_cwd)? Or just use https://www.npmjs.com/package/require-main-filename?
from node-oom-heapdump.
Closed, fixed with a new release https://github.com/blueconic/node-oom-heapdump/releases/tag/1.0.12.
It now uses 'https://www.npmjs.com/package/require-main-filename' instead of using require.main.filename.
@hsiliev can you verify that this fixes your issue? Just use the latest version 1.0.12.
from node-oom-heapdump.
Related Issues (18)
- heapdump not triggering on OOM HOT 5
- Prebuilt binaries HOT 16
- CXXABI_1.3.9 not found error on v1.3.0 HOT 5
- How to print heap dump creation progress? HOT 13
- Update tar package HOT 3
- Native assets not build on Windows anymore HOT 5
- Used memory is doubled when creating on request heapdumps, and isn't cleared after the heapdump is done HOT 2
- [Intermittent] : segmentation faults with nodejsv14.18.3 on ubuntu/centos HOT 2
- Any provision to mask certain sensitive values HOT 1
- Native builds failing HOT 6
- Node20 support HOT 1
- Prebuilt binaries failing for Node 22 on Windows HOT 9
- when bundling w/ webpack, package causes unexpected token ! error HOT 4
- What would be the changes need if this module used in node v6.11 ? HOT 3
- Make host name configurable HOT 2
- Port option may not be working HOT 5
- Support for node v12.x HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-oom-heapdump.