*Out of memory, exiting

Hi,
when I launche my script , ireceive this message :
*Out of memory, exiting
What is the problem ? and solution ?
Many thanks.
PS : my unix version :
SunOS SERVER03 5.8 Generic_117350-13 sun4us sparc FJSV,GPUZC-M

if you are using ksh
before firing the script execute the script with -x option
i.e ksh -x script_name

and see which steps is throwing the out of memory error.
it could be for n number of reasons, probably somewhere there is infinite recursion happening.

Regards,
rishi