When I redeploy application many times, i get out of memory error. Is it related to classloader? I have 1 static class for connection and I thinks that this class is resulting an error because it is never freed. How can I make JBoss to free the memory in correct way?