Java out of memory

Hi I am running a process on Solaris server having disk space is 31% and VMSTAT sersult is shown below:
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s1 s2 s3 s4 in sy cs us sy id
0 0 0 9424488 10718576 6 31 6 1 1 0 0 6 -0 1 0 360 349174 444 20 13 67

while we run process...we are getting "Exception in thread main java.lang.OutOfMemoryError:Java heap space Error

Please suggest what to do?

Thanks

Looks like the JVM heap is undersized. You can increase it with the java -Xmx option.