tags:

views:

62

answers:

2

i have 2gb ram on my computer. its a windows 7 using eclipse for java when i run a program that runs a select query on mysql database with 0.4 million records it gives heap size error. this is my present eclipse.ini

-vmargs
-Xmx1000m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m

what can i do ?

+1  A: 

Do you run the query in a plugin of Eclipse or do you use Eclipse to run a Java program? In the latter case, the settings in eclipse.ini aren't inherited. You must repeat the in the launch configuration of your app.

Aaron Digulla
its the latter case . i am using eclipse to run java program . how to set the launch configuration of the program.
silverkid
Use the "Run" menu and click on "Run Configurations...". You'll get a dialog where you can modify the options passed to your program and the options passed to the VM.
Aaron Digulla
+1  A: 
sfussenegger