java.lang.OutOfMemoryError: Java heap space
pls tell me how to increase JVM heap size for on windows platform
It would be great helpfull anybody send solution for this
Originally posted by Srinivasan thoyyeti:
Could you please tell me snapshot of how many applications you are running ?
How much RAM you have?
1)Try to exit all remaining programs ...
2)You can checkout the free memory using Runtime Class.
I thought JVMs usually start up with a set amount of memory reserved, so as long as on JVM start up you have enough memory, opening a million other programs later on would not cause a Java out of memory error. Am I wrong?
But really, instead of just setting the heap size larger, you should have a look at your code and find out why you are getting an OutOfMemoryError. Does your program really need to allocate so much memory or do you have a bug somewhere in your code?