Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c3bef2c
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Aug 26, 2022
7a0d514
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Aug 26, 2022
6cdfdaa
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Aug 26, 2022
b9eef90
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Aug 26, 2022
2df62b2
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Aug 26, 2022
1231dad
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Aug 26, 2022
1a00dee
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Nov 18, 2022
0f61fc5
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Nov 18, 2022
c54f2f6
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Dec 20, 2022
1d8bfa1
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Jan 9, 2023
efbc0df
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Sep 27, 2023
362dac0
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Jan 26, 2024
424af85
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Feb 28, 2024
efd668a
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Jul 19, 2024
90231b7
add two sample data files.
julialongtin Jan 28, 2026
2695cca
add debugging graphs for websockets, move calling graphs into a separ…
julialongtin Jan 28, 2026
a36cce0
fix capitalization and double-escaped quotes.
julialongtin Jan 28, 2026
49d7bd1
Merge branch 'master' of github.com:wireapp/wire-server-deploy
julialongtin Jan 29, 2026
b84f8a8
add two sample data files.
julialongtin Jan 28, 2026
49d333f
add debugging graphs for websockets, move calling graphs into a separ…
julialongtin Jan 28, 2026
1a327ca
fix capitalization and double-escaped quotes.
julialongtin Jan 28, 2026
5e6c219
Merge branch 'gnuplot_improvements' of github.com:wireapp/wire-server…
julialongtin Jan 29, 2026
f65523a
add changelog entry.
julialongtin Jan 29, 2026
3cf2aba
deeper analysis, and full explode.
julialongtin Jan 29, 2026
6777463
add missing carriage return.
julialongtin Feb 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added: Scripts for rotating android logs.
31 changes: 31 additions & 0 deletions utils/calling_latency_debugging/report1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
439-711 1 19719.460784313724
439-711 1.3 41394

711-786 2 24684.382352941175
711-786 2.3 41149

787-853 3 29288.245098039217
787-853 3.3 41409

855-907 4 28998.26732673267
855-907 4.3 66440

908-966 5 32298.79411764706
908-966 5.3 45838

966-1023 6 29475.00980392157
966-1023 6.3 51180

1024-1075 7 27131.30693069307
1024-1075 7.3 46485

1076-1103 8 23763.264705882353
1076-1103 8.3 46124

1104-1176 9 24750.539215686276
1104-1176 9.3 41261

1176-1255 10 24920.50495049505
1176-1255 10.3 46448


31 changes: 31 additions & 0 deletions utils/calling_latency_debugging/report2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
166-623 1 20897.941747572815
166-623 1.3 100466

624-709 2 29136.13725490196
624-709 2.3 92988

709-782 3 29054.514563106797
709-782 3.3 107127

782-847 4 32564.352941176472
782-847 4.3 185677

848-913 5 31933.264705882353
848-913 5.3 81419

914-991 6 29572.514563106797
914-991 6.3 87716

993-1060 7 31690.20588235294
993-1060 7.3 114912

1061-1106 8 19307.35922330097
1061-1106 8.3 75043

1109-1172 9 19573.607843137255
1109-1172 9.3 79203

1172-1262 10 19017.774509803923
1172-1262 10.3 78183


39 changes: 39 additions & 0 deletions utils/websocket_android_debugging/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Situation:

You have android logs, and suspect a problem with the websocket connection.

To explode the websocket related lines of an android log file into separate files:
```
zcat ~demo/Downloads/wire_2026-01-19_09-06-42.gz | awk 'BEGIN{FS="[ :.=()]+"}function q(){return $2*3600+$3*60+$4+$5/1000}/Websocket Closed/ {lose[q()]=300};/Websocket open/ {open[q()]=200};/Received Frame/ {frame[q()]=$(NF-1)};/PersistentWebsocketCheckWorker returned/ {workerOK[q()]=250};/for com.wire.android.workmanager.worker.PersistentWebsocketCheckWorker/ {workerSTART[q()]=250};/PersistentWebsocketCheckWorker,/ {workerRESULT[q()]=250};/featureId:ManagedConfigurationsManager/ {configREFRESH[q()]=250}; /Nh.k: Websocket/ {disconnect[q()]=250};/java.io.EOFException/ {eo[q()]=250};/java.net.ProtocolException:/ {protocol[q()]=250};/java.net.SocketException/{socketEx[q()]=250};/java.net.SocketTimeoutException/{socketTimeEx[q()]=250};/onMessage()/{onMessage[q()]=250};/WebSocket Protocol Handshake/{handshake[q()]=250};/PersistentWebsocketCheckWorker/{persistent[q()]=250};/ServicesManager: PersistentWebsocketService/{norestart[q()]=250};/Starting PersistentWebsocketService/{serviceSTART[q()]=250};/Worker result SUCCESS/{resultSUCCESS[q()]=250};END{for(t in lose) print t, lose[t]>"closed.dat";for(t in open) print t, open[t]>"open.dat";for(t in frame) print t, frame[t]>"frame.dat"; for (t in workerOK) print t, workerOK[t]>"workerOK.dat"; for (t in workerSTART) print t, workerSTART[t]>"workerSTART.dat"; for (t in workerRESULT) print t, workerRESULT[t]>"workerRESULT.dat"; for (t in configREFRESH) print t, configREFRESH[t]>"configREFRESH.dat"; for (t in disconnect) print t, disconnect[t]>"disconnect.dat"; for (t in eo) print t,eo[t]>"eof.dat"; for (t in protocol) print t, protocol[t]>"protocol.dat"; for (t in socketEx) print t,socketEx[t]>"socketException.dat";for (t in socketTimeEx) print t,socketTimeEx[t]>"socketTimeoutException.dat";for (t in onMessage) print t,onMessage[t]>"onMessage.dat";for (t in handshake) print t,handshake[t]>"handshake.dat";for (t in persistent) print t,persistent[t]>"persistent.dat";for (t in norestart) print t,norestart[t]>"norestart.dat";for (t in serviceSTART) print t,serviceSTART[t]>"servicestart.dat";for (t in resultSUCCESS) print t,resultSUCCESS[t]>"resultsuccess.dat";}'
```

That will create the following files:
```
closed.dat
disconnect.dat
frame.dat
norestart.dat
open.dat
protocol.dat
servicestart.dat
socketTimeoutException.dat
workerRESULT.dat
configREFRESH.dat
eof.dat
handshake.dat
onMessage.dat
persistent.dat
resultsuccess.dat
socketException.dat
workerOK.dat
workerSTART.dat
```

Each one of these files contains only the timestamps when a given log line type was seen, with the exception of frame.dat (which contains amount of data transfered(?)).

To run gnuplot, and generate an image:
plot_websocket.gnuplot <name of output file>

Feel free to play with the height of the bars (the hard coded values in the awk command), or play with the colours and ordering of them.

websocket_with_refresh_and_disconnect_and_eof_and_handshake.svg contains an example of an environment with a malfunctioning firewall.
Loading