Need solution for java.lang.OutOfMemoryError: Java heap space> without...

Hi, I am looking solution for java.lang.OutOfMemoryError: Java heap space> without increasing the heap memory.... I mean vm argument from " -Xms26M to higher values Regards,Rocky
[216 byte] By [rocky_333123a] at [2007-10-2 20:10:59]
# 1

The only solution for this is to decrease your memory usage in your program. The Java VM is throwing that error because it has run out of resources to do what you asked it to. Maybe you have some large resources (like images or a large cache) that you could minimize? In any case, you'll have to slim down your program or increase the heap size.

Updownquarka at 2007-7-13 22:51:31 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Hi,Do You know how to do explicit deallocation of memory allocated for array?Regards,Rocky
rocky_333123a at 2007-7-13 22:51:31 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

You can't do that explicitly. Java WILL do it for you if you dereference the array (set it to null) as well as all elements of the array (if they are objects). The java virtual machine is required to garbage collect as much memory as it can before it throws an OutOfMemoryError. Just make sure you aren't keeping references to your objects around longer than you need to and then you just have to trust java to do its job.

Updownquarka at 2007-7-13 22:51:31 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 4
HI I have the same problem I no need to increase the heap size but i need to resolve this problem please any one can advice on this issue
satishrspla at 2007-7-13 22:51:31 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 5
im getting the same problem Exception in thread "Thread- "java.lang.OutOfMemoryError : Java heap spaceat of .a(of.java:1168)at hc.a(hc.java:337)at v.run(v.java:574)at java.lang.Thread.run(Unknown Source
samyy7a at 2007-7-13 22:51:31 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...