docker-pm2 icon indicating copy to clipboard operation
docker-pm2 copied to clipboard

Embed v8-profiler into image

Open Unitech opened this issue 8 years ago • 5 comments

@simonepri what do you about adding v8-profiler module (via pm2 install v8-profiler) by default? It would allow to snapshot memory and run cpu profiling when needed

Unitech avatar Jul 24 '17 20:07 Unitech

Could you describe me an use scenario?

simonepri avatar Jul 25 '17 07:07 simonepri

If the v8-profiler is present in the container, PM2 allows to trigger heapdump and cpu profiling, that is a nice have to inspect what is going on in case of bad behaviors

Unitech avatar Jul 26 '17 21:07 Unitech

it does not work currently to RUN pm2 install profiler on alpine image because python & stuff are missing

Unitech avatar Jan 24 '18 18:01 Unitech

How pm2 install profiler works? It runs npm install v8-profiler ?

simonepri avatar Jan 24 '18 18:01 simonepri

Yes exactly and it also auto inject the profiler into the source code of the user allowing to retrieve heapdump/cpuprofile

On Wed, Jan 24, 2018 at 7:45 PM Simone Primarosa [email protected] wrote:

How pm2 install profiler works? It runs npm install v8-profiler ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/keymetrics/docker-pm2/issues/34#issuecomment-360233723, or mute the thread https://github.com/notifications/unsubscribe-auth/AAuP87UQzHd9kHEq_q3LY9bfVm8m1hznks5tN3pNgaJpZM4OhudA .

-- Alexandre Strzelewicz (+33) 7.83.88.11.43

Unitech avatar Jan 25 '18 00:01 Unitech