Set Memory Pool
Edit the file <tomcat_home/conf/setenv.local:
export JAVA_OPTS="-Xms128m -Xmx1024m -XX:MaxPermSize=256m $JAVA_OPTS"
Create .war Files
Go into the directory where the application is, e.g. <tomcat_home>/webapps/example and execute:
jar -cfv example.war *