warning for excessive acceptors
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2359 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
3e2de0f439
commit
da54b0d2e8
|
@ -336,6 +336,8 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
|
|||
*/
|
||||
public void setAcceptors(int acceptors)
|
||||
{
|
||||
if (acceptors > 2*Runtime.getRuntime().availableProcessors())
|
||||
Log.warn("Acceptors should be <=2*availableProcessors: "+this);
|
||||
_acceptors = acceptors;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue