I'm using Teamcity to run CI which works great, apart from one thing: when my webapp is deployed to the web container (Tomcat 5.5) after a few times Tomcat runs out of memory. This is something that you see in development as well, but it's not such a huge problem since then you can restart manually any way - with CI it's all automatic which makes it really annoying.
I tried to setup Teamcity so that it restarts Tomcat every deploy, but then I ran into another problem - the Tomcat start script just hangs when called from ant (ie it starts Tomcat just fine, but then doesn't go any further in the build-process).
Anyone out there with a similar Teamcity-Tomcat setup?