Is there a way to kill erlang vm when it works with -heart?

The title pretty much sums it up. I have a zotonic site running with -heart, it uses a lot of CPU time, and I cannot get the erlang shell. So, is there a way to kill vm? killall heartand killall beam.smpdo not work.

I found this question: Stop the Erlang daemon , but actually it does not answer my question.

+5
source share
2 answers

Just use:

init:stop().

It will kill the heart process and all applications.

+2
source

.... . . , :

PID

sudo netstat -tulpn |grep 8080
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      931/beam.smp    

, PID 931.

?

lsof -p 931 | grep txt
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/agarcia/.gvfs
      Output information may be incomplete.
beam.smp 931 yaws  txt    REG     8,1  2053256 22793377 /usr/lib/erlang/erts-5.8.5/bin/beam.smp

, ... /bin/beam.smp

mv beam.smp old_beam.smp 

kill -9 931

, , : -)

erlangs, , .

ps: yaws -I [pid] -stop, .

+2

All Articles