java.lang.outOfMemoryError.....

Buddies...can anyone of you help me in combating this error. The application requires loading a lot of VOs from the database upon a click at the front end. The application runs fine nearly till 25 hits, after which it posts java.lang.outOfMemoryError.... I have tried adding static counters to check the number of objects created in each VO. To the best of my observation, there are no dangling objects in the heap.... The worst part is, in the weblogic monitor the space used is minimal during the first 20 hits, it spikes up after that and fails at the 24th or 25th one.... Can anyone help me out on this case....Is changing the heap size a sure-shot way to tackle this?

[679 byte] By [anthropocentriquea] at [2007-10-2 8:07:07]
# 1
try using a profileri recommend OptimizeIt
SoulTech2012a at 2007-7-16 22:01:27 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...