Giter Club home page Giter Club logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
$ 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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
"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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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)

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.