Dynatrace.pl - Tool for finding invalidations in Dynacache Trace
This tool searches Dynacache Trace for invalidations and generates two CSV files.
Pre-req
This tool requires Perl. ActivePerl can be installed on Windows. The DateTime package is required.
The log to be parsed needs to contain Dynacache Tracing.
Usage
C:\>dynatrace.pl
usage: C:\dynatrace.pl [OPTIONS] FILE
Trace should contain this trace:
com.ibm.ws.cache.*=all:com.ibm.ws.drs.*=all
Tool looks for this line:
Cache.remove() cacheName=baseCache id=Customers cause=1 source=2
Filtering Options:
-i | --instance CACHE_INSTANCE
Tool uses the contains reg ex
-c | --cause CAUSE
Use either number of string
0 UNSET
1 DIRECT
2 LRU
3 TIMEOUT
6 INACTIVITY
7 DISK_GARBAGE_COLLECTOR
8 DISK_OVERFLOW
-s | --source SOURCE
1 MEMORY
2 REMOTE
3 DISK
4 NOOP
5 LOCAL
Output:
- FILE.inv.csv
- FILE.inv.nonum.csv
FILE.inv.nonum.csv can be used for grouping
usage: C:\dynatrace.pl [OPTIONS] FILE
Trace should contain this trace:
com.ibm.ws.cache.*=all:com.ibm.ws.drs.*=all
Tool looks for this line:
Cache.remove() cacheName=baseCache id=Customers cause=1 source=2
Filtering Options:
-i | --instance CACHE_INSTANCE
Tool uses the contains reg ex
-c | --cause CAUSE
Use either number of string
0 UNSET
1 DIRECT
2 LRU
3 TIMEOUT
6 INACTIVITY
7 DISK_GARBAGE_COLLECTOR
8 DISK_OVERFLOW
-s | --source SOURCE
1 MEMORY
2 REMOTE
3 DISK
4 NOOP
5 LOCAL
Output:
- FILE.inv.csv
- FILE.inv.nonum.csv
FILE.inv.nonum.csv can be used for grouping
Example Usage
C:\>dynatrace.pl --source REMOTE trace.log
-----> Grepping file: trace.log
-----> Filtering by source=REMOTE
-----> Processing: trace.log
-----> Writing trace.inv.csv
-----> Writing trace.inv.nonum.csv
-----> Log file format: Default - short
-----> Process trace.log file. Found 3443 invalidations
-----> Done
-----> Grepping file: trace.log
-----> Filtering by source=REMOTE
-----> Processing: trace.log
-----> Writing trace.inv.csv
-----> Writing trace.inv.nonum.csv
-----> Log file format: Default - short
-----> Process trace.log file. Found 3443 invalidations
-----> Done
Download
Download the tool from here ---------> Dynatrace.pl
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.