Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are core files by node.js

Node Public Directory Listing

As shown above, my newly installed node.js app directory has a lot of core.* files. What are these, and what is their purpose? Can I delete these files?

I installed node.js behind apache with mod_proxy to can use one of my domain on port 80. Then I installed forever. Sometimes I have problems stopping node.js with:

`forever stop server.js`

Maybe that is causing those dumps? Can someone explain why these are appearing?

After all the problem found it's answer my VM's processes are limited on a given number.Node used with apache seems to be the background

-bash: fork: Cannot allocate memory
like image 726
fefe Avatar asked Dec 11 '13 21:12

fefe


2 Answers

core.<number> files are typically memory dumps created on Linux systems. The <number> is the Process ID of the process that crashed.

I guess your Node.JS application has crashed a number of times and these are the memory dumps left there for you to debug.

like image 195
Lightness Races in Orbit Avatar answered Oct 19 '22 16:10

Lightness Races in Orbit


Yea that's not normal if they are in your project file. To all the people that are downvoting his question, it's a question perfectly worth asking especially if it's in the app folder.

fefe: Can you see any sub dir within the core dir?

those look like memory dumps. So I guess you should be fine to delete them unless you want to go through them for debugging purposes.

Give this a try for debugging those crashes: https://github.com/ddopson/node-segfault-handler

like image 37
Tehsin Avatar answered Oct 19 '22 15:10

Tehsin