ให้ตั้งค่า environment variable ดังนี้
_JAVA_OPTIONS=-Xmx512M
- Right click on start-button and open "System"
- Search for "Advanced system settings" and open it
- Click the button "Environment Variables ..."
- In System Variables, click "New..."
- New Variable Name: _JAVA_OPTIONS
- New Variable Value: -Xmx512M
- Click OK
- Restart Visual Studio, so the variable is picked up