Comments (10)
If it's happening consistently on some machines and never on others, it sounds
like an environmental issue. It may not be an issue with the application. It
may have something to do with the windows keepalive settings. It's possible
that it's 30 seconds. The workers should ping the server frequently. I think
it's every 59 seconds.
Can you attach some source that produces this behavior?
When I have a free second, I'll try to reproduce this with different
environmental settings. If you figure out a solution, can you please keep me
updated?
Thanks,
Isaiah
Original comment by [email protected]
on 13 Apr 2013 at 6:29
from java-gearman-service.
Hi Isaiah,
I'm sorry not replying earlier but I'm on holidays now. This week and next week.
After that I'll give you something from the application, but it's really like
having workers registered to a remote server with 4-5 different function names
but on 1 thread, and having clients on the same machine as the server
submitting foreground jobs with async callbacks.
As my point with using Gearman was to keep this part of my application as
simple as possible, there's really no extra tricks I used here.
Thanks,
Balazs
Original comment by [email protected]
on 17 Apr 2013 at 9:40
from java-gearman-service.
Hi Isaiah,
I'm back and still struggling with this problem. I've already checked the
Windows' keepalive settings, but nothing specific is set on the machines - so
it has to be the default 2 hours. Any other idea to pinpoint the origin of the
problem?
Thanks,
Balazs
Original comment by [email protected]
on 29 Apr 2013 at 4:13
from java-gearman-service.
Maybe it's a different problem but after a couple of hours (>8) of running the
server all of the clients lose their connections and they never come back. They
periodically try to reconnect - there's no problem with that - but they don't
see the server.
My GearmanLostConnectionPolicy logs
GearmanLostConnectionGrounds.FAILED_CONNECTION on the workers.
There's nothing of it in the server's log.
I'm worried because when I started to use your framework it all seemed to be
OK, just when I finally want to test it in real-life environment it all seems
to be very unstable.
Of course I'm aware that lots of other people are using it without problems so
it might be my environment not the framework, I'm just asking for help what to
check to discover what's wrong.
Thanks,
B
Original comment by [email protected]
on 30 Apr 2013 at 9:47
from java-gearman-service.
"They periodically try to reconnect - there's no problem with that - but they
don't see the server. My GearmanLostConnectionPolicy logs
GearmanLostConnectionGrounds.FAILED_CONNECTION on the workers. There's nothing
of it in the server's log."
This sounds like something totally different. In fact, it sounds a lot like
Issue 41. I've been having a hard time tracking this down. If you can attach
some source that reproduces this behavior somewhat regularly, I'd really
appreciate it.
Original comment by [email protected]
on 1 May 2013 at 8:06
from java-gearman-service.
I've checked Issue 41, but it's not like that. Restarting the worker does not
help, it's the server. Has a possible relation with Issue 13, see my comments
there.
Original comment by [email protected]
on 1 May 2013 at 9:39
from java-gearman-service.
Here are my sources. It's rather complicated but not the Gearman parts.
It creates the GearmanServer in "ContextManager" and passes it to the
constructor of "Queue". That also stores it because for every "BatchImpl" (that
is a batch of jobs) it creates a GearmanClient. Otherwise Gearman-related parts
of the client and the worker is based on your "EchoClientAsynchronous" and
"EchoWorker" example classes.
Original comment by [email protected]
on 1 May 2013 at 10:15
Attachments:
from java-gearman-service.
And I've created a thread dump from the "hanging" server. The "gearman-xxx"
thread looks exactly the same as in a normally functioning server.
Original comment by [email protected]
on 1 May 2013 at 10:22
Attachments:
from java-gearman-service.
Balazs,
Just to clarify, is the only issue you are seeing is the worker disconnecting
after 30 seconds? I'm fairly certain that this is an envoirnmental issue. I'm
think that I'll address this by allowing the user to set the ping interval.
It'll be a few days before I have the time, but I'm hoping to get your issues
addressed asap.
Original comment by [email protected]
on 4 May 2013 at 2:11
from java-gearman-service.
No, unfortunately.
There is this one with the 30 seconds and there is Issue 13, what might be a
64bit JRE issue. I can live with that other one as long as I don't try to run
the server on 64bit, but I can't tell what environment setting causes this one,
so I can't stop this happening.
The good part: it's only happening when there are no jobs and the workers are
reconnecting after a minute. It's just annoying and giving the feeling to my
bosses that the system is not stable enough.
Original comment by [email protected]
on 7 May 2013 at 11:03
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
- 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.