If an installation wizard is used to install a template and you reinstall the template by deleting and installing it multiple times, an out of permanent generation memory space (PermGen) error can occur.
Perform the troubleshooting steps given here to ensure that a PermGen error does not occur.