2Gig is a huge memory ....What is this application doing? Are you keeping lots of data in memory ?
You may need to give more details on the kind of application you are using.
Also tell following
1. What is machine configuration? RAM, Processor Disk space etc.
2. What is the
java min/max heap size of this application.
If you application is crashing due to huge memory requirements then there could be two possible causes
1. Either your application has a memory leak or
2. It really requires that much of memory and it is not able to manage it by doing swapping also.