The error says invalid maximum heap size 4GB, but your system is only 2GB, so it exceeds the system memory. you need to configure the acceptable heap size.
You can set the maximum memory usage to 1GB, like -Xmx1024
, restart your IDE and it should work
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.