Comments (6)
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.
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.
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.
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.
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.
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)
- How to check (or log) memory_usage by a worker process before it restarts?
- Unable to start netlink event handler within docker container HOT 3
- Is memory leaking problem fixed?
- ruby god state transition diagram
- Transition diagram? HOT 1
- 'gem install god' fails with NotImplementedError: C extensions are not supported HOT 1
- god status is crashing HOT 1
- god continues to monitor and resurrect process after executing 'god stop <task name>'
- god status says process is "up" when it's continuously restarting
- Your code is not worthy of being called "God" HOT 2
- Cannot build on macos + ruby 2.4.3 + god 0.13.7
- God load crashes when dependencies are required from god config files
- Is this project alive? HOT 2
- Limit logs file size
- Ppls help me on idea i wannaa create a working search box where users cam serch for admins to contact
- Reference documentation
- god cannot be used with Ruby 3.1+ HOT 3
- Qr
- GOD
- No Longer Maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from god.