HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

java_heap_size

 
SOLVED
Go to solution
Soul_1
Respected Contributor

java_heap_size

Hi,

I want to increase the java heap size.When i searched in net if ound some options like

-Xmn100M -Xms500M -Xmx500M

but i didn't find where/how to apply this option.

Thanks in advance.
1 REPLY
Matti_Kurkela
Honored Contributor
Solution

Re: java_heap_size

Those options must be given to the JVM when you're starting your Java application.

You must find the command that actually starts the application. It's typically something like:

java

Change that to:

java -Xmn100M -Xms500M -Xmx500M

If your Java application is complex (something like a Weblogic server, for example), this command is probably embedded inside a startup script created by the application vendor. You must then examine the script and find out the best way to add these options to it.

Your application vendor might even have documented how you should add heap size options if you need them: read the documentation of your application.

MK
MK