Skip to content
Advertisement

JAVA_OPTS for increasing heap size

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

JavaScript

Advertisement

Answer

You should be able to use the information found in this post.

JavaScript

where zzz is your minimum size.

JavaScript

where zzz is your maximum size.

JavaScript

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.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement