Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase heap space and debug in Eclipse

The issue is that running from cmd is not very good for debugging . I need to debug the code , so is there any way i could increase heap and debug in eclipse .

I tried increasing heap in control panel - > java -> view - > 6g

but still get the java out of memory in eclipse

like image 996
Andrei Vasilev Avatar asked Mar 31 '26 02:03

Andrei Vasilev


1 Answers

  1. Click the arrow next to the run button, and select Run Configurations...
  2. Select your application from the left list
  3. Go to Arguments
  4. In VM arguments add -Xmx6g -Xms2g
  5. Click Apply.

This will increase the heap size for that launch configuration to 6G.

like image 165
PurkkaKoodari Avatar answered Apr 02 '26 03:04

PurkkaKoodari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!