For second one, my guess is
• Memory requirements may be varying as the job is running.
• Heap memory allocated may be more than required, major GC is not kicking in until heap usage reaches 80% and then GC kicks in reducing heap usage to 25% (closer to actual heap usage at that point).