Skip to content
Kohei Tamura edited this page Jun 14, 2018 · 14 revisions

To develop on eclipse:

mvn dependency:sources
mvn eclipse:eclipse

To build war and runnable jar:

mvn package

To startup by mvn command:

mvn clean install

To startup runnable jar:

java -jar easybuggy.jar

w/ JVM options:

-Xmx256m -XX:MaxPermSize=64m -XX:MaxDirectMemorySize=90m -XX:+UseSerialGC -Xloggc:logs/gc.log -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=10M -XX:GCTimeLimit=15 -XX:GCHeapFreeLimit=50 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/ -XX:ErrorFile=logs/hs_err_pid%p.log -XX:NativeMemoryTracking=summary -agentlib:jdwp=transport=dt_socket,server=y,address=9009,suspend=n -Dderby.stream.error.file=logs/derby.log -Dderby.infolog.append=true -Dderby.language.logStatementText=true -Dderby.locks.deadlockTrace=true -Dderby.locks.monitor=true -Dderby.storage.rowLocking=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7900 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

To change port:

java -jar easybuggy.jar -httpPort=7777

To overwrite application properties:

java -jar -Dmail.smtp.host=192.168.1.2 -Dmail.smtp.port=9925 easybuggy.jar

To start on another container, for example Tomcat:

cp ROOT.war ${CATALINA_HOME}/webapps/
${CATALINA_HOME}/bin/startup.sh

To stop:

Click Ctrl+C or access to http://localhost:8080/exit

To attach a remote debugger:

  • Connection type: Standard (Socket Listen)
  • Host: localhost
  • Port: 9009