Upgrading project from 5.0.3 to 5.1 results in a memory leak

just saw your post i noticed that migrating from 5.03 to 5.1 use much more RAM from 4.8Go to 14Go of ram