Increased server memory usage

Hello Matomo Teams!

I changed Matomo from 3.X to 4.X and imported the logs via “import_logs.py”. The server memory usage appears to have more than doubled, while the DB memory usage appears to be unchanged.
I know “import_logs.py” was changed from python2 to python3, but why is it taking up so much memory?