instead of working towards increasing the heap size you should solve the
other way around.

Why is taking up so much heap space?

Any thing you have found while debugging?

Some possible scenarios which i can think of:
1.You may be working with  large set of objects before doing database
commit/they go out of scope .Those large set are occupying huge amount of
memory which results in OutofMemoryError
Solution :    Use pagination and   try to work with smaller set of objects.

2.Some weird runtime error.


On Tue, Sep 29, 2009 at 2:05 PM, Pratik K Anand <[email protected]>wrote:

> Hi, I'm getting the following error :
>
> java.lang.OutOfMemoryError: Java heap space
>
> when I run a war on Tomcat...
>
>
> Can anyone tell me how to increase the heap size?
>
>
> I use Linux 2.6.28-15-generic
>
>
> Ubuntu 9.04
>
>
>
> --
> thanks for your time,
> Pratik K Anand
>

Reply via email to