Respawning with some repeating commands blocks running can cause lag
to recreate:
place a repeating command block with the command: effect give @e minecraft:glowing 1
power it
run /kill
the game will lag
Linked issues
Attachments
Comments

Respawning with some repeating commands blocks running can cause lag
to recreate:
place a repeating command block with the command: effect give @e minecraft:glowing 1
power it
run /kill
the game will lag
EMD
(Unassigned)
Unconfirmed
(Unassigned)
1.18 Release Candidate 1
Retrieved
Duplicate of MC-165963, you don't need to be running commands to experience this issue.