b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

java执行bat文件1. 目的 通过优化tomcat提高网(18)

电脑杂谈  发布时间:2018-02-08 08:24:29  来源:网络整理

(int)The max selectors to be used in the pool, to reduce selector contention. Use this option when the command lineorg.apache.tomcat.util.net.NioSelectorSharedvalue is set to false. Default value is200.

(int)以减少选择器的争用,在池中使用的选择器最大个数。命令行org.apache.tomcat.util.net.NioSelectorShared值设置为false时,使用此选项。默认值是200。

(int)The max spare selectors to be used in the pool, to reduce selector contention. When a selector is returned to the pool, the system can decide to keep it or let it be GC‘d. Use this option when the command lineorg.apache.tomcat.util.net.NioSelectorSharedvalue is set to false. Default value is-1(unlimited).

(int)以减少选择器的争用,在池中使用的最大备用选择器个数。当选择器返回到池中时,系统可以决定保留它或者让他垃圾回收。当org.apache.tomcat.util.net.NioSelectorShared 值设置为false时,使用此选项。默认值是-1(无限制)。

The following command line options are available for the NIO connector:

-Dorg.apache.tomcat.util.net.NioSelectorShared=true|false- default istrue. Set this value tofalseif you wish to use a selector for each thread. When you set it tofalse, you can control the size of the pool of selectors by using theselectorPool.maxSelectorsattribute.

下面的命令行选项可用于NIO连接器:-Dorg.apache.tomcat.util.net.NioSelectorShared=true|false

默认情况下是true。如果你想每个线程使用一个选择器,将此值设置为false。当你将它设置为false,你可以通过使用selectorPool.maxSelectors属性控制选择器池的大小。

(int)The NIO connector implements an OutOfMemoryError strategy called parachute. It holds a chunk of data as a byte array. In case of an OOM, this chunk of data is released and the error is reported. This will give the VM enough room to clean up. TheoomParachuterepresents the size in bytes of the parachute(the byte array). The default value is1024*1024(1MB). Please note, this only works for OOM errors regarding the Java Heap space, and there is absolutely no guarantee that you will be able to recover at all. If you have an OOM outside of the Java Heap, then this parachute trick will not help.


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-66844-18.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...