Agreed. One would do well to set an initial setting for Xms (initial heap) and PermGen (EG -XX:PermSize=256m non heap) as well as tuned maximum.

>How can I determine the values to use? Sorry but I am trying to learn this.You might like to watch a CF Java presentation I did end of 2010. Versions have changed since then and 64 bit alters the Java memory scope however the principles are still the same.

>Use JConsole or JVisualvm to find the memory, causing the error.This talk demonstrated use of Jconsole, more to look at CF tomcat connector than memory but again that might provide you some assistance with using Jconsole.