The main reason is: the introduction of a large number of third-party framework packages in the project.
Simplest solution :
在eclipse中,window-->preferences-->Java-->Installed JREs
Select the JRE and click Edit
Write this sentence :
-Xms800m -Xmx800m -XX:MaxNewSize=256m -XX:MaxPermSize=256m