Start up Visual VM and see what each generation of memory is doing.
I would focus on the perm gen. You can increase its setting like this:
-Xms256m -Xmx512m -XX:MaxPermSize=256m
You'd better be running on a 64-bit operating system. The 32 bit JVM won't allow max heap larger than 1.2-1.5MB.