-
1. Re: Producer hangs after 20M sent
timfox Jul 19, 2008 6:39 AM (in response to ataylor)Sounds like something to do with producer flow control.
What's your producer window size set to? What happens if you disable producer flow control or change the window size? -
2. Re: Producer hangs after 20M sent
clebert.suconic Jul 19, 2008 9:01 PM (in response to ataylor)That's a big coincidence for me...
I also ran the same test on friday...
I got the stack traces and it had to do with Producer Flow Control. -
3. Re: Producer hangs after 20M sent
ataylor Jul 21, 2008 3:26 AM (in response to ataylor)Yeah, it's definitely producer flow control. If you set it to -1 however, you quite quickly get an out of memory exception. I'll raise a JIRA
-
4. Re: Producer hangs after 20M sent
timfox Jul 21, 2008 4:50 AM (in response to ataylor)"ataylor" wrote:
Yeah, it's definitely producer flow control. If you set it to -1 however, you quite quickly get an out of memory exception. I'll raise a JIRA
That's to be expected, since you're not limiting flow to the server any more (with -1). -
5. Re: Producer hangs after 20M sent
ataylor Jul 21, 2008 5:16 AM (in response to ataylor)altho, the exception is happening on the client which i wouldn't have expected!
-
6. Re: Producer hangs after 20M sent
timfox Jul 21, 2008 5:24 AM (in response to ataylor)"ataylor" wrote:
altho, the exception is happening on the client which i wouldn't have expected!
It happens because you're putting packets on the MINA write queue faster than MINA can take if off the other end and write it to the socket. -
7. Re: Producer hangs after 20M sent
ataylor Jul 21, 2008 5:52 AM (in response to ataylor)ahhh, ok, i get it now.
-
8. Re: Producer hangs after 20M sent
timfox Jul 24, 2008 10:53 AM (in response to ataylor)Is there a JIRA for this?
-
9. Re: Producer hangs after 20M sent
ataylor Jul 24, 2008 10:58 AM (in response to ataylor)nope, do we need one as its bad configuration or do we need to force flow control to always be enabled?
-
10. Re: Producer hangs after 20M sent
timfox Jul 24, 2008 10:59 AM (in response to ataylor)We don't know what the problem is yet do we?
-
11. Re: Producer hangs after 20M sent
ataylor Jul 24, 2008 11:07 AM (in response to ataylor)It happens because you're putting packets on the MINA write queue faster than MINA can take if off the other end and write it to the socket.
I thought this was the problem! -
12. Re: Producer hangs after 20M sent
timfox Jul 24, 2008 11:08 AM (in response to ataylor)"ataylor" wrote:
I thought this was the problem!
No, that was an explanation of why you run out of memory when you disabled flow control, not an explanation of the reason for the original problem. -
13. Re: Producer hangs after 20M sent
ataylor Jul 24, 2008 11:14 AM (in response to ataylor)ah yes, memory, old age etc :)
I'll raise a JIRA