Connectors are slow to startup

The HashSessionIdManager class by default will use the random number generator. It uses the operating system's source to provide entropy. If your machine is very tranquil, then there may not be enough entropy to drive the random number generator and hence the operating system waits for more interrupts, disk IO, network traffic or whatever is used to generate the entropy.

An INSECURE solution, apart from loading the machine more (smile), is to replace the SecureRandom with the java.util.Random generator instead. Add the following lines to your jetty.xml file:

<Set name="sessionIdManager">
  <New class="org.mortbay.jetty.servlet.HashSessionIdManager">
      <New class="java.util.Random"/>
    <Set name="workerName">node1</Set>

Session IDs generated by Random may be able to be predicted, thus it is not recommended to use Random in production.

For more information, here are the relevant Sun bug numbers: 6202721, 6521844, 5031872.

Note that one of the workarounds suggested is to try and force the use of the /dev/urandom device, which does NOT block, rather than the /dev/random device which does:

Set the system property: 
Make sure that the file contains this setting:

NB Some workaround reports use /dev/./urandom instead of /dev/urandom.