title: deployment and "java.lang.OutOfMemoryError: PermGen exception"
body: <p>I have a number of WAR files that I manage for QA , I tend to use the JBoss command line utility to manage to deploy these applications on JBoss 7</p>
  
  <p>After I undeploy a war file, and try to deploy it again, I often get permgen exception, which sometimes get resolved by waiting few minutes and attempt to deploy the application again. </p>
  
  <p>the other option is to restart the server and deploy the applications. </p>
  
  <p>My question would be is there is a way to clear unused memory in jboss 7, so I can avoid restarting the application server? </p>