Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moobench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SustainKieker
moobench
Commits
799f4fb0
Commit
799f4fb0
authored
Aug 27, 2021
by
David Georg Reichelt
Browse files
Options
Downloads
Patches
Plain Diff
Add option for registering trace but no writing (like Kieker NullWriter)
parent
b073fdf9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
frameworks/inspectIT/benchmark.sh
+20
-1
20 additions, 1 deletion
frameworks/inspectIT/benchmark.sh
frameworks/inspectIT/config/nullWriter/nullWriter.yml
+19
-0
19 additions, 0 deletions
frameworks/inspectIT/config/nullWriter/nullWriter.yml
with
39 additions
and
1 deletion
frameworks/inspectIT/benchmark.sh
+
20
−
1
View file @
799f4fb0
...
@@ -14,7 +14,6 @@ function runNoInstrumentation {
...
@@ -14,7 +14,6 @@ function runNoInstrumentation {
}
}
function
runInspectITDeactivated
{
function
runInspectITDeactivated
{
# InspectIT (minimal)
k
=
`
expr
${
k
}
+ 1
`
k
=
`
expr
${
k
}
+ 1
`
echo
" #
${
i
}
.
$RECURSION_DEPTH
.
${
k
}
"
${
TITLE
[
$k
]
}
echo
" #
${
i
}
.
$RECURSION_DEPTH
.
${
k
}
"
${
TITLE
[
$k
]
}
echo
" #
${
i
}
.
$RECURSION_DEPTH
.
${
k
}
"
${
TITLE
[
$k
]
}
>>
${
BASE_DIR
}
/inspectIT.log
echo
" #
${
i
}
.
$RECURSION_DEPTH
.
${
k
}
"
${
TITLE
[
$k
]
}
>>
${
BASE_DIR
}
/inspectIT.log
...
@@ -30,6 +29,22 @@ function runInspectITDeactivated {
...
@@ -30,6 +29,22 @@ function runInspectITDeactivated {
sleep
$SLEEP_TIME
sleep
$SLEEP_TIME
}
}
function
runInspectITNullWriter
{
k
=
`
expr
${
k
}
+ 1
`
echo
" #
${
i
}
.
$RECURSION_DEPTH
.
${
k
}
"
${
TITLE
[
$k
]
}
echo
" #
${
i
}
.
$RECURSION_DEPTH
.
${
k
}
"
${
TITLE
[
$k
]
}
>>
${
BASE_DIR
}
/inspectIT.log
sleep
$SLEEP_TIME
${
JAVABIN
}
java
${
JAVAARGS_INSPECTIT_NULLWRITER
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHOD_TIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
${
RECURSION_DEPTH
}
\
--force-terminate
\
${
MOREPARAMS
}
&>
${
RESULTS_DIR
}
/output_
"
$i
"
_
"
$RECURSION_DEPTH
"
_
$k
.txt
sleep
$SLEEP_TIME
}
function
runInspectITZipkin
{
function
runInspectITZipkin
{
# InspectIT (minimal)
# InspectIT (minimal)
...
@@ -114,6 +129,7 @@ JAR="-jar MooBench.jar --application moobench.application.MonitoredClassSimple"
...
@@ -114,6 +129,7 @@ JAR="-jar MooBench.jar --application moobench.application.MonitoredClassSimple"
JAVAARGS_NOINSTR
=
"
${
JAVAARGS
}
"
JAVAARGS_NOINSTR
=
"
${
JAVAARGS
}
"
JAVAARGS_LTW
=
"
${
JAVAARGS
}
-javaagent:
${
BASE_DIR
}
/agent/inspectit-ocelot-agent-1.11.1.jar -Djava.util.logging.config.file=
${
BASE_DIR
}
/config/logging.properties"
JAVAARGS_LTW
=
"
${
JAVAARGS
}
-javaagent:
${
BASE_DIR
}
/agent/inspectit-ocelot-agent-1.11.1.jar -Djava.util.logging.config.file=
${
BASE_DIR
}
/config/logging.properties"
JAVAARGS_INSPECTIT_DEACTIVATED
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.enabled=false -Dinspectit.config.file-based.path=
${
BASE_DIR
}
/config/onlyInstrument/"
JAVAARGS_INSPECTIT_DEACTIVATED
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.enabled=false -Dinspectit.config.file-based.path=
${
BASE_DIR
}
/config/onlyInstrument/"
JAVAARGS_INSPECTIT_NULLWRITER
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.enabled=false -Dinspectit.config.file-based.path=
${
BASE_DIR
}
/config/nullWriter/"
JAVAARGS_INSPECTIT_ZIPKIN
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.url=http://127.0.0.1:9411/api/v2/spans -Dinspectit.config.file-based.path=
${
BASE_DIR
}
/config/zipkin/"
JAVAARGS_INSPECTIT_ZIPKIN
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.url=http://127.0.0.1:9411/api/v2/spans -Dinspectit.config.file-based.path=
${
BASE_DIR
}
/config/zipkin/"
JAVAARGS_INSPECTIT_PROMETHEUS
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.zipkin.enabled=false -Dinspectit.exporters.metrics.prometheus.enabled=true -Dinspectit.config.file-based.path=
${
BASE_DIR
}
/config/prometheus/"
JAVAARGS_INSPECTIT_PROMETHEUS
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.zipkin.enabled=false -Dinspectit.exporters.metrics.prometheus.enabled=true -Dinspectit.config.file-based.path=
${
BASE_DIR
}
/config/prometheus/"
...
@@ -133,6 +149,9 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do
...
@@ -133,6 +149,9 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do
runInspectITDeactivated
runInspectITDeactivated
cleanup
cleanup
runInspectITNullWriter
cleanup
runInspectITZipkin
runInspectITZipkin
cleanup
cleanup
...
...
This diff is collapsed.
Click to expand it.
frameworks/inspectIT/config/nullWriter/nullWriter.yml
0 → 100644
+
19
−
0
View file @
799f4fb0
inspectit
:
instrumentation
:
scopes
:
'
s_moobench'
:
type
:
name
:
'
MonitoredClass'
matcher-mode
:
'
CONTAINS'
rules
:
'
r_moobench'
:
enabled
:
true
include
:
'
r_trace_method'
:
true
# do not save anything
'
r_capture_method_duration'
:
false
# do not save anything
scopes
:
'
s_moobench'
:
true
actions
:
'
a_do_nothing'
:
value-body
:
|
'if (true) {}'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment