The intellij idea takes up a lot of RAM, is there a way we can reduce the program size?
go to C:\Users{yourName}\AppData\Roaming\JetBrains\IntelliJIdea2022.1 (your version)
edit idea64.exe.vmoptions
-Xmx2015m -> -Xmx1024m (maximum memory)
You can change the heap of memory the compiler in the "Build, Execution, Deployment" tab in the preferences.
Preferences > Build, Execution, Deployment > Compiler | User local process heap size (...)
But you can search in preferences for "Mbyte" and see whatelse you can configure.