Myeclipse's solution to java.lang.OutOfMemoryError: Java heap space under mybatis

The incoming parameters are not judged in mybatis xml

 

Here's how this problem occurs routinely:

1. Modify from Installed JREs; window->Preferences->Java->Installed JREs, select the current JRE, then edit it; in the new window, set the Default VM Arguments to -Xms512M -Xmx1024M; this setting should work for all projects are valid;


 

2. If you just want to be effective for a certain project, modify it from Debug... or Run..., and set the same parameters as above in (x)=Arguments;

 

3. If Tomcat, window->Preferences->Application Servers->Tomcat->Tomcat 6.x, select JDK settings;



 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326938158&siteId=291194637