Did you use the same server (with the same settings) when your site was still on MODX 2? Because the session handling is exactly the same in MODX 2 and MODX 3 and this amount of database entries doesn’t indicate a problem with the garbage collection.