Coder Social home page Coder Social logo

exec leaving defunct processes about erlexec HOT 2 CLOSED

saleyn avatar saleyn commented on July 17, 2024
exec leaving defunct processes

from erlexec.

Comments (2)

saleyn avatar saleyn commented on July 17, 2024

Could you please retest this with the latest pull as I believe it could have resolved this issue?

from erlexec.

erlanger avatar erlanger commented on July 17, 2024

It is much better than before. I used to get a large number of zombies, but now it leaves a lesser number (about 10-15 with a run of 1000). A great improvement is that now I get a timeout, before it would just continue.

This is what I get:

3> [ exec:run("echo ho",[stdout]) || T <- lists:seq(1,1) ].    
[{ok,<0.277.0>,13482}]
4> [ exec:run("echo ho",[stdout]) || T <- lists:seq(1,10) ].
[{ok,<0.279.0>,13483},
 {ok,<0.280.0>,13484},
 {ok,<0.281.0>,13485},
 {ok,<0.282.0>,13486},
 {ok,<0.283.0>,13487},
 {ok,<0.284.0>,13488},
 {ok,<0.285.0>,13489},
 {ok,<0.286.0>,13490},
 {ok,<0.287.0>,13491},
 {ok,<0.288.0>,13492}]
5> [ exec:run("echo ho",[stdout]) || T <- lists:seq(1,1000) ]. 
** exception exit: {timeout,{gen_server,call,
                                        [exec,{port,{{run,"echo ho",[stdout]},nolink}},30000]}}
     in function  gen_server:call/3 (gen_server.erl, line 190)
     in call from exec:do_run/2 (src/exec.erl, line 685)

from htop (notice the Z) :

...
3579 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13586 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13587 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13590 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13592 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13593 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13596 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13599 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13600 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13601 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13603 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13604 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13605 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13606 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13608 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13609 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
13610 erlanger    20   0     0     0     0 Z  0.0  0.0  0:00.00 bash
...

from erlexec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.