Re: Java thrift server consuming up systemp tcp_mem under high load pressure.

2017-06-24 Thread Randy Abernethy
Thanks for sharing your experiences and glad you got the ball moved down field a little! On Fri, Jun 23, 2017 at 9:29 PM, w yishigan wrote: > I find the problem. The AbstractNonblockingServer.maxReadBufferBytes is > too > small. Now the tcp_mem is good and the data is clogged in jvm now. > Thank

Re: Java thrift server consuming up systemp tcp_mem under high load pressure.

2017-06-23 Thread w yishigan
I find the problem. The AbstractNonblockingServer.maxReadBufferBytes is too small. Now the tcp_mem is good and the data is clogged in jvm now. Thanks. On Fri, Jun 23, 2017 at 9:46 AM, w yishigan wrote: > Hi Randy, > Thanks for your email. Yes, there're 4 GB in the kernel's buffer. I'm > using

Re: Java thrift server consuming up systemp tcp_mem under high load pressure.

2017-06-23 Thread w yishigan
Hi Randy, Thanks for your email. Yes, there're 4 GB in the kernel's buffer. I'm using two 1Gig nic, so the throughput is only ~200 MB. It's thrift 0.9.0. The problem is Scribe which is use c++ thrift library won't have such problem. The processor thread of scribe is busy, but only ~40MB data in t

Re: Java thrift server consuming up systemp tcp_mem under high load pressure.

2017-06-23 Thread Randy Abernethy
Hello, If you truly mean simultaneously that's 4 GB of instantaneous data. If you are using 10Gig Ethernet it would take 4 seconds or more just to move the bytes in the perfect case. That sounds like a DDOS more than a use case. You might consider scaling your servers out. If you mean 4,000 simulta

Java thrift server consuming up systemp tcp_mem under high load pressure.

2017-06-22 Thread w yishigan
Hi folks, I had been working on flume which use thrift server to receive data recently and encountered a problem. After removing all the user logic and only keep the thrift server code, I try to use ~4000 thrift clients to send data(~1MB per rpc) simultaneously to one thrift server. Seems like the