From: Kai Moritz Date: Sun, 25 Dec 2011 11:54:20 +0000 (+0100) Subject: Startskripte für Jetty und Tomcat X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=775e8c8416e030604360b7237e3f613cfaf7df1b;p=percentcodec Startskripte für Jetty und Tomcat --- diff --git a/cachecontrol-examples/jetty.sh b/cachecontrol-examples/jetty.sh new file mode 100755 index 00000000..4950796b --- /dev/null +++ b/cachecontrol-examples/jetty.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# + +# OutOfMemoryException beim "mvn jetty:run" umgehen und +# Parameter zum nachträglichen anhängen eines Debuggers +# setzen +export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=256m -XX:-UseGCOverheadLimit -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n" + +rm -v src/main/webapp/WEB-INF/lib/juplo* + +mvn jetty:run diff --git a/cachecontrol-examples/pom.xml b/cachecontrol-examples/pom.xml index b9ff4437..6d057d3e 100644 --- a/cachecontrol-examples/pom.xml +++ b/cachecontrol-examples/pom.xml @@ -79,6 +79,12 @@ runtime --> + + org.slf4j + ${slf4j.binding} + ${slf4j.version} + runtime + diff --git a/cachecontrol-examples/tomcat.sh b/cachecontrol-examples/tomcat.sh new file mode 100755 index 00000000..4378a128 --- /dev/null +++ b/cachecontrol-examples/tomcat.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# + +# OutOfMemoryException beim "mvn jetty:run" umgehen und +# Parameter zum nachträglichen anhängen eines Debuggers +# setzen +export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=256m -XX:-UseGCOverheadLimit -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n" + +rm -v src/main/webapp/WEB-INF/lib/juplo* + +mvn tomcat:run-war