title: Could not allocate enough heap space to Java
body: <p>We have an application which was running fine for one year. It is a web application, running under Tomcat 5.5 + JDK 1.5 under Microsoft Cluster on Windows Server 2003 Enterprise Edition Service Pack 2. The server has 11Gb of RAM (I know that it is useless!) with the following description "Physical Address Extension": I don't know what that means.</p>
  
  <p>The Tomcat service is configured with the following parameters: <code>-Xmx1024m -Xms128m</code></p>
  
  <p>Since last week, the service doesn't want to start anymore and stops with the following error message: "Could not allocate enough heap space".</p>
  
  <p>We tried several tests:</p>
  
  <ul>
  <li><code>java -Xmx1024m -version</code> => Failed</li>
  <li><code>java -Xmx758m -version</code> => Failed</li>
  <li><code>java -Xmx512m -version</code> => Passed</li>
  </ul>
  
  <p>So we can use less memory for the maximum heap size, but it is not an acceptable workaround because the number of users will increase in few months and we need to set the maximum heap size to 1024Mb.</p>
  
  <p>Also I don't understand why it worked fine and then suddenly it stopped working! It seems that the OS is now unable to allocate contiguous memory, or something else (page file size, user memory allocation, ...)</p>
  
  <p>It's quite difficult to know if something changed (OS patch, configuration, ...) because the web application is running on the customer server and we don't have access to it.</p>