title: Do the JBoss attributes ActiveThreadCount and ActiveThreadGroupCount have maximums?
body: <p>In JBoss 5, there is the mbean</p>
  
  <pre><code>jboss.system:type=ServerInfo
  </code></pre>
  
  <p>Which has the properties <code>ActiveThreadCount</code> and <code>ActiveThreadGroupCount</code>.</p>
  
  <p>Does anyone know if there are maximum values for either or both of these properties, and if there are, how to find them out? I am happy parsing configuration files if necessary.</p>
  
  <p>Looking at the source code of <code>org.jboss.system.server.ServerInfo</code>, <code>getActiveThreadCount</code> returns the number of active threads in a <code>ThreadGroup</code>, not a <code>ThreadPoolExecutor</code>; therefore there is no maximum.</p>
  
  <p>Perhaps someone who really knows the innards of JBoss 5.1.0 GA would know whether all members of that <code>ThreadGroup</code> are created by a single <code>ThreadPoolExecutor</code> which obviously does have a maximum?</p>
  
  <p>Thanks in advance for any suggestions or pointers!</p>
  
  <p>Rich</p>