clinicjs / node-clinic

Clinic.js diagnoses your Node.js performance issues
https://clinicjs.org
MIT License
5.67k stars 125 forks source link

Stuck on "Analysing data" #466

Open EmericW opened 8 months ago

EmericW commented 8 months ago

Expected Behavior

The "Analysing data" step resolves eventually.

Current Behavior

The "Analysing data" step keeps getting stuck. Even in the simplest example

I do notice my macbook working quit hard when stuck on this step. Most of the work seems to come from a c++filt process as seen the Activity Monitor.

Steps to Reproduce (for bugs)

  1. Run my API with clinic flame -- node index.js
  2. Make some manual requests via postman
  3. Ctrl + C

This part is somewhat useless in this case since this is very specific to my machine. I was hoping to maybe get some insight into why this is happening.

I tried to reduce the complexity and create the simplest possible node.js server. The issue is still present with the following code.

var http = require('http');

http.createServer(function (req, res) {
  res.write('Hello World!'); 
  res.end(); 
}).listen(8080); 

Sample upload

clinic upload does not seem to be available 🤔 We transfer link for my .clinic directory.

Environment

RafaelGSS commented 8 months ago

Try adding a process.on('SIGINT', process.exit) to your code

EmericW commented 8 months ago

No luck, I tried this code:

var http = require('http');

http.createServer(function (req, res) {
  res.write('Hello World!'); 
  res.end(); 
}).listen(8080); 

process.on('SIGINT', process.exit);
RafaelGSS commented 8 months ago

I couldn't reproduce your case locally using the same environment + same nodejs/clinicjs version.