(int)用来处理轮询事件的线程的数量。在版本7.0.27及以前版本,默认值是每个处理器1个。版本7.0.28的默认值是每个处理器1个,但不超过2个。
当接受一个套接字,操作系统拥有全局的锁。所以超过2个线程的好处而迅速减小。有一个以上的线程是因为系统需要非常迅速地接受连接。但通常只要增加acceptCount值就可以解决这个问题。增加该值也可能是有用的,当大量发送文件操作发生的时候。
(int)The priority of the poller threads. The default value is5(the value of thejava.lang.Thread.NORM_PRIORITYconstant). See the JavaDoc for thejava.lang.Threadclass for more details on what this priority means.
(int)轮询线程的优先级。默认值是5(java.lang.Thread.NORM_PRIORITY常量值)。优先级的更多详细信息,可以查考java.lang.Thread类的JavaDoc 。
(int)The time in milliseconds to timeout on a select() for the poller. This value is important, since connection clean up is done on the same thread, so do not set this value to an extremely high one. The default value is1000milliseconds.
(int)选择轮询器select()的超时时间(以毫秒为单位)。这个值非常重要,因为连接清理工作也是在同一个线程里的,所以不要将此值设置为一个非常高的。默认值是1000毫秒。
(bool)Whether to allow comet servlets or not. Default value istrue.
(bool)是否允许Comet servlet。默认值是 true。
(bool)Use this attribute to enable or disable sendfile capability. The default value istrue.
(bool)使用此属性来启用或禁用sendfile的能力。默认值是true。
(bool)Boolean value, whether to use direct ByteBuffers or java mapped ByteBuffers. Default isfalse.
When you are using direct buffers, make sure you allocate the appropriate amount of memory for the direct memory space. On Sun‘s JDK that would be something like-XX:MaxDirectMemorySize=256m.
(bool)选择使??用直接ByteBuffers或Java映射的ByteBuffers。默认是false。
当您使用直接ByteBuffers,请确保你分配适当的内存量给直接内存空间。在Sun的JDK中,配置如-XX:MaxDirectMemorySize = 256M。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-66844-15.html
这种做错事不道歉的官僚作风不除
检查
不能说出尊严来