Currently I am working on a mac application in which I am getting OutOfMemoryError frequently. Currently we are using non executable JAR file for our application so I cannot set heap size before starting my application because my java code will execute using JNI, So there is any possible way to set heap size using JNI or C.
Or Any other solution for the above problem. Thanks in Advance.