I want to increase my Heap size. How can I use JAVA_OPTS for doing so.I am getting the following error may be this is because of low heap size
UNEXPECTED TOP-LEV
You should be able to use the information found in this post.
-Xmszzzm
where zzz is your minimum size.
-Xmxzzzm
where zzz is your maximum size.
JAVA_OPTS="-Xms128m -Xmx512m"
You can find more info on VM args here.
How to set it globally in your environment depends on your operating system. Which OS are you using?
EDIT: I see the "ubuntu" tag now.
You should just be able to put the JAVA_OPTs line in etc/environment
. Once you modify etc/environment
, you'll have to log out and back in for the updated environment variables to take effect.