Comments (7)
Could you send me a log of the telnet commands?
Original comment by [email protected]
on 17 Jun 2011 at 3:48
from java-gearman-service.
$ telnet localhost 4730
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
STATUS
That's it. As soon as I send "STATUS", it makes the server hangs.
Original comment by [email protected]
on 17 Jun 2011 at 5:02
from java-gearman-service.
I cannot reproduce the stalling server issue.
I'm doing the following:
1) I'm starting the EchoWorkerServer.
2) Connecting to it through telnet.
3) Getting the telnet status.
After running through these steps, though still connected through telnet, I can
still connect to the job server using or gearman clients/workers. And
everything still seems to work properly.
Looking at the stack trace, it looks like there's something going wrong in
thread pool-1-thread-3.
I'm going to try this in Ubuntu 11.04. If have any more information, that would
be great.
Can you reproduce this issue every time? Or does it seem like it's a threading
issue?
Original comment by [email protected]
on 18 Jun 2011 at 1:21
from java-gearman-service.
Ignore that last message. I think I understand what your saying.
The standard codec does not decode text commands, it ignores them. This gives
the impression that the server is hanging. I'll get the text commands working
soon. It'll be in the trunk in the next day or two.
Sorry for the confusion
Original comment by [email protected]
on 18 Jun 2011 at 6:46
- Changed state: Accepted
from java-gearman-service.
Sorry If I wasn't clear. In fact, I was saying that the server was hanging but
that doesn't seem to be the case after a double check. What happen though is
that the process takes 100% CPU after sending it a text command.
Thanks!
Original comment by [email protected]
on 20 Jun 2011 at 12:58
from java-gearman-service.
"What happen though is that the process takes 100% CPU after sending it a text
command"
This is because the text commands are ignored. Since the text data is not read
in from the TCP buffer, the read method repeatedly being called, or spinning.
When I commit the text command fixes, the CPU will quit running so hot.
This is most likely the cause for the large looping stack in "pool-1-thread-3"
Thanks for finding this issue. It was a good find :)
Original comment by [email protected]
on 21 Jun 2011 at 1:06
from java-gearman-service.
The fix is in version 0.4. Thnak you for contributing :)
Original comment by [email protected]
on 29 Jun 2011 at 9:07
- Changed state: Fixed
from java-gearman-service.
Related Issues (20)
- Suspected memory leak HOT 8
- java.lang.NullPointerException HOT 5
- v0.6.4 not properly disconnecting HOT 1
- The gearman worker behaves incorectly when a function is removed and added from within the worker HOT 1
- Connection lost, fail to reconnect HOT 22
- Get the job handle from the GearmanFunction HOT 3
- Worker is not closing connections on shutdown. HOT 1
- NullPointerException HOT 2
- Possible Memory Leak HOT 1
- Gearman worker stopped connecting to server HOT 1
- GearmanClient timeout missing HOT 2
- Gearman shutdown issue
- GearmanJobReturnImpl.java poll(timeout,timeunit) function fail,
- After timeout on GRAB_JOB no futher jobs are processed and connection is dropped every 20 seconds HOT 4
- Worker disconnects 30 sec after PRE_SLEEP HOT 10
- exported .jar with 'echo' example produces errors HOT 4
- Null pointer exception when trying to unregister a function
- java.util.ConcurrentModificationException on the server side
- fake workers on gearman server HOT 1
- Gearman workers wont connnect to the daemon
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 java-gearman-service.