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:
Greg Wilkins 2010-10-19 01:46:06 +00:00
parent 3e2de0f439
commit da54b0d2e8
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}