When running my java program, I get following error:
Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit
I am wondering how I can increase the limits on my system, so that my program does not crash. Also, how can I print the current limits?