Skip to content

Commit

Permalink
KIEKER-1566: Fixes for AMQP/JMS/Sigar examples, typo fix for userguid…
Browse files Browse the repository at this point in the history
…e, enabled flush for resourceMonitor executable.
  • Loading branch information
duelle committed Oct 4, 2017
1 parent d194f0d commit b6fd328
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/resourceMonitor.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ REM @author Nils Christian Ehmke

setlocal enabledelayedexpansion

SET JAVAARGS=-Dkieker.common.logging.Log=JDK -Djava.util.logging.config.file=./logging.properties -Xms56m -Xmx1024m
SET JAVAARGS=-Dkieker.monitoring.writer.filesystem.AsciiFileWriter.flush=true -Dkieker.common.logging.Log=JDK -Djava.util.logging.config.file=./logging.properties -Xms56m -Xmx1024m
SET MAINCLASSNAME=kieker.tools.resourceMonitor.ResourceMonitor

REM Get the directory of this file and change the working directory to it.
Expand Down
2 changes: 1 addition & 1 deletion bin/resourceMonitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

BINDIR=$(cd "$(dirname "$0")"; pwd)/

JAVAARGS="-Dkieker.common.logging.Log=JDK -Dkieker.common.logging.Log=JDK -Djava.util.logging.config.file=${BINDIR}/logging.properties -Xms56m -Xmx1024m"
JAVAARGS="-Dkieker.monitoring.writer.filesystem.AsciiFileWriter.flush=true -Dkieker.common.logging.Log=JDK -Dkieker.common.logging.Log=JDK -Djava.util.logging.config.file=${BINDIR}/logging.properties -Xms56m -Xmx1024m"
MAINCLASSNAME=kieker.tools.resourceMonitor.ResourceMonitor

java ${JAVAARGS} -cp "${BINDIR}/../lib/*":"${BINDIR}/../lib/sigar/*":"${BINDIR}/../build/libs/*":"${BINDIR}" ${MAINCLASSNAME} $*
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ \subsection{Download and Prepare ActiveMQ}

Download an ActiveMQ archive from \url{http://activemq.apache.org/download.html}
and decompress it to the base directory of the example. Note, that there are two different %
distributions, one for Unix/Linux/Cygwin and another one for Windows.
distributions, one for Unix/Linux/Cygwin and another one for Windows, and that the latest supported version of ActiveMQ compatible with Java 7 is 5.14.5.

Under \UnixLikeSystems{}, you'll need to set the executable-bit of the start script:

Expand Down
2 changes: 1 addition & 1 deletion kieker-documentation/userguide/Macros.tex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
\newcommand{\sigarJar}{sigar-1.6.4.jar}

\newcommand{\aopConfigFile}{aop.xml}
\newcommand{\binaryFileForDownload}{kieker-\version{}\_bina\-ries.zip}
\newcommand{\binaryFileForDownload}{kieker-\version{}\-bina\-ries.zip}
\newcommand{\kiekerMonitoringProperties}{kieker.monitoring.pro\-perties}
\newcommand{\kiekerExampleMonitoringProperties}{kieker.monitoring.ex\-am\-ple.pro\-perties}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
#\lstshellprompt{}# #\textbf{trace-analysis.bat}# #\textbf{--inputdirs}# %temp%\kieker-20100813-121041532-UTC-virus-KIEKER
#\textbf{--outputdir}# out\
#\textbf{--plot-Deployment-Sequence-Diagrams}#
#\textbf{--plot-Call-Trees}#
#\textbf{--plot-Call-Trees}#
#\textbf{--short-labels}#
\end{lstlisting}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
#\lstshellprompt{}# #\textbf{./trace-analysis.sh}# #\textbf{--inputdirs}# /tmp/kieker-20110428-142829399-UTC-Kaapstad-KIEKER
#\textbf{--outputdir}# out/
#\textbf{--plot-Deployment-Sequence-Diagrams}#
#\textbf{--plot-Call-Trees}#
#\textbf{--plot-Call-Trees}#
#\textbf{--short-labels}#
\end{lstlisting}
11 changes: 11 additions & 0 deletions kieker-examples/userguide/appendix-AMQP/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
apply plugin: 'application'
apply plugin: 'eclipse'

repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}

dependencies {

compile 'com.google.guava:guava:20.0' // (21.0 and above require java 8) used by StringRegistryCache for amqp reader

compile fileTree('lib') {
include "kieker-*.jar"
include "commons-logging-*.jar"
include "amqp-client-*.jar"
include "slf4j-api-*.jar"
}
}

Expand Down
4 changes: 2 additions & 2 deletions kieker-examples/userguide/appendix-JMS/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def monitoringConfiguration = {
main = 'kieker.examples.userguide.appendixJMS.BookstoreStarter'
classpath = sourceSets.main.runtimeClasspath

jvmArgs = ['-Dlog4j.configuration=META-INF/log4j.properties']
jvmArgs = ['-Dlog4j.configuration=META-INF/log4j.properties', '-Dorg.apache.activemq.SERIALIZABLE_PACKAGES=*']
}

task runMonitoringActiveMQ(type: JavaExec) {
Expand All @@ -36,7 +36,7 @@ def analysisConfiguration = {
main = 'kieker.examples.userguide.appendixJMS.JMSAnalysisStarter'
classpath = sourceSets.main.runtimeClasspath

jvmArgs = ['-Dlog4j.configuration=META-INF/log4j.properties']
jvmArgs = ['-Dlog4j.configuration=META-INF/log4j.properties', '-Dorg.apache.activemq.SERIALIZABLE_PACKAGES=*']
}

task runAnalysisActiveMQ(type: JavaExec) {
Expand Down
3 changes: 2 additions & 1 deletion kieker-examples/userguide/appendix-Sigar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ sourceSets.main.java.srcDirs = ['src']
task runMonitoring(type: JavaExec) {
main = 'kieker.examples.userguide.appendixSigar.MonitoringStarter'
classpath = sourceSets.main.runtimeClasspath
jvmArgs = ['-Dkieker.monitoring.writer.filesystem.AsciiFileWriter.flush=true']
}

task runAnalysis(type: JavaExec) {
main = 'kieker.examples.userguide.appendixSigar.AnalysisStarter'
classpath = sourceSets.main.runtimeClasspath
args = [System.getProperty("analysis.directory", ".")]
}
}

0 comments on commit b6fd328

Please sign in to comment.