title: Java heap size problems with SpringSource tcServer on Cloud Foundry
body: <p>I am using Cloud Foundry with tcServer to deploy my java application but am experiencing out-of-memory issues as I cannot seem to get any Java heap settings to take effect. Does anyone have any experience of changing Java heap settings using the Cloud Foundry interface?</p>
  <p>I am using a large EC2 instance (64bit) and I have tried the following:</p>
  <ul>
  <li>Entered -Xmx3g in JVM OPtions of the Application definition</li>
  <li>Entered -Xmx3g in the JVM Options of the Deployment definition</li>
  <li>Tried overriding in the setenv.sh script of tcServer on the instance</li>
  <li>Tried overriding in the wrapper.conf settings of the tcServer on the instance</li>
  </ul>
  <p>Nothing I try effects the reported max heap size of 1gb from the Cloud Foundry console. Even setting to a lower value has no effect. I can confirm that the JVM on the box is a 64-bit version.</p>
  <p>Predictably, as the user volume grows on my service, the system stacks run out of memory.</p>
  <p>Does anyone have any similar experience of getting CloudFoundry to accept JVM options, or failing that know how to make tcServer (that is installed by Cloud Foundry without any AMS tools such as tcsdamin as far as I can see) take some new values on restart?</p>