Code Monkey home page Code Monkey logo

Comments (6)

 avatar commented on June 25, 2024

there is some reason that the 2.6.24-xen kernels CN module just will not work with god. Can't really get good debugging information about it. However if you upgrade your kernel it will then work. Specifically on Slicehost you can upgrade your kernel through the slice manager.

from god.

shadowhand avatar shadowhand commented on June 25, 2024

Using kernel 2.6.31 works. Now I have a separate issue with using Ruby 1.9.1, but will investigate that separately. Thanks!

from god.

rkistner avatar rkistner commented on June 25, 2024

I'm having the same issue, my system configuration is the following:

Ubuntu 8.04
Kernel 2.6.24-24-server
ruby 1.9.1p376
god 0.11.0

Trying to stop a process with god causes god to hang and use 100% CPU.

I'm not able to upgrade my kernel at the moment, so I guess I'll have to stick to polling for now.

from god.

rkistner avatar rkistner commented on June 25, 2024

Using polling did not solve my issue. When I try to stop my watches, god almost always hangs on one of the processes, with the following being logged:

INFO: xxx stop: default lambda killer
INFO: xxx sent SIGTERM
INFO: xxx process stopped

God freezes (with 100% cpu usage) right after outputting "process stopped". When only stopping single watches, it often works without saying "process stopped". However, it always hangs when "process stopped" is in the output.

For now my workaround is to use:

w.stop = lambda { w.signal(3) }

For some reason this solves the issue.

from god.

ameuret avatar ameuret commented on June 25, 2024

Having cn loaded is not enough. You have to make sure that your kernel was compiled with CONFIG_PROC_EVENTS enabled.

Sadly this is not the case for example on the current Amazon Linux Image.

EDIT: As of the March 2013 release, the Amazon Linux Image is configured to fully support the process events.

from god.

chetan avatar chetan commented on June 25, 2024

To followup on what @ameuret said, connector support (cn) must be built-in to the kernel, and not as a module in order to enable PROC_EVENTS. Basic netlink support is still available so God will compile correctly but will not work (god check fails) since process events are missing.

Specifically, the following should be in your kernel config:

CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y

I ran into this issue on Raspbian where connector support is built as a module and so process events are unavailable.

from god.

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.