Comments (12)
The problem was also reported in this thread http://groups.google.com/group/beanstalk-talk/browse_thread/thread/f70697558a44ac20/
from beanstalkd.
This is because beanstalk does a chdir("/") when it detaches, and the relative path given on the command line is being misinterpreted when it comes time to open a second binlog segment.
To get consistent behavior, you should provide an absolute path to the -b
option.
I'll have beanstalkd require an absolute path in the future, when you combine -b
and -d
.
from beanstalkd.
Require absolute path when -b
is used with -d
.
Closed by a4b5484.
from beanstalkd.
Still an issue. CentOS 5.2 (Final).
Launched with:
$ beanstalkd -d -b /var/spool/beanstalkd -f 1000 -u beanstalkd
Despite of the absolute path being used and newest beanstalkd version (1.4.6), it crashes with OUT_OF_MEMORY error after about 10-20 thousand of jobs.
from beanstalkd.
Found the conditions under which it's a problem:
- Start beanstalkd with flags above
- Use it
- do killall -9 beanstalkd
- Start it again
- On use it immediately crashes
That's fake persistence.
from beanstalkd.
The only hackaround is to start beanstalkd again, do plain killall, and restart it again.
from beanstalkd.
Also, it seems to exhibit this behavior only when the queue is empty before crash.
from beanstalkd.
Running in non-detached mode does the same. Debug info:
beanstalkd: binlog.c:589 in maintain_invariants_iter: newest binlog has invalid 182 reserved
beanstalkd: prot.c:841 in enqueue_incoming_job: server error: OUT_OF_MEMORY
from beanstalkd.
Will post a new issue, though
from beanstalkd.
I've reproduced this, and I'm working on a fix.
from beanstalkd.
Just for clarity, the new issue is at http://github.com/kr/beanstalkd/issues/closed/issue/44 and it's fixed as well.
from beanstalkd.
Sorry, that link should be http://github.com/kr/beanstalkd/issues/issue/44
from beanstalkd.
Related Issues (20)
- wish add batch put and batch reserve features HOT 3
- Ubuntu - 1.11-1: OUT_OF_MEMORY (Too many open files) despite very high ulimit HOT 2
- Suggested way to set Beanstalk UNIX domain socket permissions HOT 2
- Use GITHUB_TOKEN for authenticating to the docker registry HOT 1
- Make the new images public HOT 1
- Client test suites fail HOT 1
- Which is the best way to replicate between beanstalkd? HOT 4
- Invalid yaml response in stats
- New release ? HOT 2
- memory leak, how to help finding it HOT 8
- Allow delete job from another connection HOT 2
- Put command returns multiple errors HOT 2
- Reserve and Reserve-with-timeout commands return RESERVED instead of DEADLINE_SOON if there are ready jobs HOT 1
- Put hangs while reserve in progress HOT 1
- Tag docker container for release versions
- How to free the memory used by beanstalkd?
- 1.11 - Out of memory (ulimit?)
- Is the binlog format documented anywhere?
- When should delete respond with NOT_FOUND? HOT 2
- Luke's 23 HOT 1
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 beanstalkd.