low wateradams marker是什么么

java - Netty 4: high and low write watermarks - Stack Overflow
Join the Stack Overflow Community
Stack Overflow is a community of 6.7 million programmers, just like you, helping each other.
J it only takes a minute:
I am working with Netty 4. I see folowing options of Netty server: WRITE_BUFFER_HIGH_WATER_MARK and WRITE_BUFFER_LOW_WATER_MARK.
The official page
has link to . One of slides looks like this:
ServerBootstrap bootstrap = new ServerBootstrap();
bootstrap.childOption(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK, 32 * 1024);
bootstrap.childOption(ChannelOption.WRITE_BUFFER_LOW_WATER_MARK, 8 * 1024);
and has this preface:
Set sane WRITE_BUFFER_HIGH_WATER_MARK and WRITE_BUFFER_LOW_WATER_MARK
But what is it WRITE_BUFFER_HIGH_WATER_MARK and WRITE_BUFFER_LOW_WATER_MARK? And how to set them to be sane?
I did not find any clear information. Thanks for your help.
Some information about watermarks from
For instance, imagine you have a queue of tasks on server side that is
filled by clients and processed by backend. In case clients send tasks
too quick the length of the queue grows. One needs to introduce so
named high watermark and low watermark. If queue length is greater
than high watermark stop reading from sockets and queue length will
decrease. When queue length becomes less than low watermark start
reading tasks from sockets again.
Note, to make it possible for clients to adapt to speed you process
tasks (actually to adapt window size) one shouldn't make a big gap
between high and low watermarks. From the other side small gap means
you'll be too often add/remove sockets from the event loop.
For Netty it seems to be true, because
JavaDoc for ChannelConfig says:
If the number of bytes queued in the write buffer exceeds writeBufferHighWaterMark value,
Channel.isWritable() will start to return false.
And for low watermark:
Once the number of bytes queued in the write buffer exceeded the high
water mark and then dropped down below this value,
Channel.isWritable() will return true again.
About sanity, I think, it is relative question, that depends on information that you are sending through the channel and how often. There is no strict rules for what values you must define for that variables. So, I think, you must found your own values in practice. Slides show you one of the examples for that.
5,51832344
WRITE_BUFFER_HIGH_WATER_MARK and WRITE_BUFFER_LOW_WATER_MARK
options and relative methods in ChannelConfig are deprecated.
.option(ChannelOption.WRITE_BUFFER_WATER_MARK, new
WriteBufferWaterMark(1, 2))
that's how you do it.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
rev .25223
Stack Overflow works best with JavaScript enabledIIS 7.5 详细错误 - 404.0 - Not Found
Internet Information Services 7.5
HTTP 错误 404.0 - Not Found
您要找的资源已被删除、已更名或暂时不可用。
详细错误信息
模块IIS Web Core
通知MapRequestHandler
处理程序PHP-5.
错误代码0x
请求的 URLhttp://www.mangacn.net:80/GFF/yy46.php?gov_cn/ik4swM.html
物理路径e:\ysweb\ihao2\web\GFF\yy46.php
登录方法匿名
登录用户匿名
最可能的原因:
指定的目录或文件在 Web 服务器上不存在。 URL 拼写错误。 某个自定义筛选器或模块(如 URLScan)限制了对该文件的访问。
可尝试的操作:
在 Web 服务器上创建内容。 检查浏览器 URL。 创建跟踪规则以跟踪此 HTTP 状态代码的失败请求,并查看是哪个模块在调用 SetStatus。有关为失败的请求创建跟踪规则的详细信息,请单击。
链接和更多信息
此错误表明文件或目录在服务器上不存在。请创建文件或目录并重新尝试请求。Mar,18,2016
Min. Order
100 Pieces
Supply Ability
10,000pcs per month
Payment Terms
L/C, T/T, Western Union
Business Type
Manufacturer Distributor/Wholesaler Exporter
Verified Supplier
[Province: Hubei, China]
Nov,09,2016
UV-SCE UV Resistant - Marker Sleeve, 2:1 Shrink Ratio Applications The latest solution to identify wires and cables where extreme resistance to Ultra ...
ICP Remarked Supplier
Jul,26,2014
Min. Order
Supply Ability
10000pcs one month
Payment Terms
TT, Western Union, Paypal
Business Type
Manufacturer
Active Member
[Province: Zhejiang, China]
Feb,06,2017
SL.400 Paint Marker SL.400 is a water-based, low-odor liquid paint marker that marks on almost all types of clean surfaces. The 6 opaque, bright ...
ICP Remarked Supplier
Feb,09,2017
Click Image for Detailed View Whitehall - 2 Line &Living Eternally...& Wilmington Memorial Markers Details Color/Finish: UV Protected Chip-Resistant ...
ICP Remarked Supplier
Jun,24,2016
Min. Order
Supply Ability
Payment Terms
Western Union, T/T
Business Type
Manufacturer
Site Member
Oct,18,2016
Min. Order
Supply Ability
according to model and qty
Payment Terms
L/C, D/A, D/P, T/T, Western Union, MoneyGram
Business Type
Manufacturer
Site Member
[Province: Sichuan, China]
Dec,13,2016
Min. Order
Supply Ability
10000pcs/month
Payment Terms
TT W/U Paypal
Business Type
Manufacturer Agent Importer Trading Company Seller
Site Member
[Province: Guangdong, China]
Nov,18,2011
OM Cable Markers OM Cable Markers Order No: OM-3.5 Material: PVC Country of Origin: China Brand Name: Qetol FOB Port: Shanghai & Ningbo Payment Terms: ...
ICP Remarked Supplier
[Province: Zhejiang, China]
Sep,30,2014
Min. Order
Supply Ability
Payment Terms
T/T,L/C and Paypal
Business Type
Manufacturer
Active Member
[Province: Jiangsu, China]
Jun,05,2015
Detailed Product Description Detailed Product Description9 led 400nm UV torch 9 led 400nm uv torch 1:Automobile Air Condition Fluid Leaking 2:Bulb ...
ICP Remarked Supplier
Aug,08,2016
Home Products Gardening Tools Equipment Supplies Plant Seed Tray & Nursery Accessories Plastic Garden Plant Tag Flower Marker HT5039 Plastic Garden ...
ICP Remarked Supplier
Jul,24,2012
Min. Order
3000 Piece
Supply Ability
200000 Piece / Month
Payment Terms
T/T, L/C, Western Union, PayPal
Business Type
Manufacturer
Active Member
[Province: Zhejiang, China]
Mar,22,2016
Min. Order
Supply Ability
according to model and qty
Payment Terms
Business Type
Manufacturer
Site Member
[Province: Sichuan, China]
Mar,15,2012
Runway-Taxiway Reflective Marker Product Information Runway or Taxiway reflective airport markers are used to outline the edges of runways and ...
ICP Remarked Supplier
Dec,13,2016
Min. Order
Supply Ability
10000pcs/month
Payment Terms
TT W/U Paypal
Business Type
Manufacturer,Agent,Importer,TradingCompany,Seller
Site Member
[Province: Guangdong, China]
Oct,21,2016
Military Grade, High Temperature, Oil Resistant Identification Tags ... MTVLO Resistant to high temperature fuel oil, lubricating oil and other ...
ICP Remarked Supplier
May,13,2016
Min. Order
Supply Ability
Payment Terms
T/T, Western Union
Business Type
Manufacturer
Site Member
[Province: Guangdong, China]
Aug,20,2015
Min. Order
Supply Ability
Payment Terms
Business Type
Manufacturer Exporter Trading Company
Site Member
[Province: Guangdong, China]
Sep,08,2016
Min. Order
Supply Ability
Payment Terms
TT in advanced
Business Type
Manufacturer,Exporter,TradingCompany,Seller
Site Member
[Province: Jiangsu, China]
Send me the latesr Product Alerts for
uv resistant marker
Sign up for Product Alert e-mail updates - FREE
贸易通多语言全球推广
坐享一对一询盘,坐等买家上门
· 11种语言版本网站
· 20大搜索引擎排名靠前
· 30大B2B平台推广
Related Products
Supplier Types
Verified Supplier
Site Member
Active Member
ICP Remarked Supplier
Fair trading tools
Select All

我要回帖

更多关于 low water mark 的文章

 

随机推荐