actually i and my friend are trying to learn and use eclipse 3.4 and we are having some heap memory issue while working, and my friend suggested to increase the memory alloc
The default allocation is ridiculous on modern machines; I wish Eclipse would adjust the default to the actual machine or at least be more interactive.
As suggested by Eric, you should increase the max heap. However, you may also want to adjust permgen.
I've seen somewhere the following numbers:
For 512MB RAM: -Xms256m -Xmx256m -XX:PermSize=64m -XX:MaxPermSize=64m
For 1024MB Ram: -vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m
For 4GB Ram the recommendation was to go 1024m ram if you need it, and as much as 512m permgen if you need it.