Idea starts the java service and reports an error OutOfMemoryError: GC overhead limit exceeded solution

When using idea to develop a java project, a memory overflow error is reported at startup, causing the service to fail to start:

Error:java: java.lang.OutOfMemoryError: GC overhead limit exceeded

Reporting this error means that the memory is not enough during the startup period. Just set the heap memory value of the startup process of the idea to a larger value.
Setting window: Settings --->Build, Execution, Deployment---> Complier,
just change the build process heap size to a larger value, as
shown in the figure below:

Change this value to 1000 and restart the service normally.

 

My blog article link:   http://www.iotjike.com/article/49

 

Guess you like

Origin blog.csdn.net/dreamer23/article/details/106402155