forked from hazelcast/hazelcast-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
performance_notes.txt
80 lines (61 loc) · 1.77 KB
/
performance_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
-------------------------------------------------------------
A selection of performance notes.
-------------------------------------------------------------
-------------------------------------------------------------
Async-Profiler
-------------------------------------------------------------
Install async profiler;
```
inventory install async_profiler
```
Make sure you have added following JVM settings:
```
-XX:+UnlockDiagnosticVMOptions
-XX:+DebugNonSafepoints
```
And to run, execute the following (s
```
profiler.sh collect -d 60 --jfrsync ${JAVA_HOME}/lib/jfr/default.jfc -f profile.jfr Worker
```
-------------------------------------------------------------
Perf
-------------------------------------------------------------
Make sure you have added following JVM settings:
```
-XX:+UnlockDiagnosticVMOptions
-XX:+DebugNonSafepoints
-XX:+PreserveFramePointer
```
Creating a perfmap with java 17+
```
jcmd <pid> Compiler.perfmap
```
https://www.doof.me.uk/2021/02/28/generating-perf-maps-with-openjdk-17/
-------------------------------------------------------------
JFR
-------------------------------------------------------------
```
-XX:+UnlockDiagnosticVMOptions
-XX:+DebugNonSafepoints
-XX:+PreserveFramePointer
-XX:+FlightRecorder
-XX:StartFlightRecording=duration=3600s,filename=recording.jfr
```
-------------------------------------------------------------
Page Cache
-------------------------------------------------------------
Clear PageCache only.
```
sync
echo 1 | sudo tee /proc/sys/vm/drop_caches
```
Clear dentries and inodes.
```
sync
echo 2 | sudo tee /proc/sys/vm/drop_caches
```
Clear pagecache, dentries, and inodes.
```
sync
echo 3 | sudo tee /proc/sys/vm/drop_caches
```