DS210 course Garbage Collection at ~4:00 minute.
If you see multi-seconds GC pauses. There is likely major compaction happening. If this occurs, you need to fix your GC setting by adjusting the heap size. Also you may want to consider your data model, because something is creating a lot of garbage.
Question: what is in the data model that could create a lot of garbage? And possibly how to reduce or even to avoid?