java.lang.outof memory ,Java Heap Space memory

Hi all,
I got an exception in smart client , like 'java.Lang.out of memory:java heap space problem.
and i have increased the java heap space to 2Gb. even though i am getting same exception.

Server version : 6.0.1
OS: Mac

any suggestions

Thanks in advance

how did you increase it?
you are running a 64 bit vm i guess (else 2GB would be way to much)
But 2GB is really completely overkill. That should never be needed for a smart client, what stuff do you do ?