Link to home
Start Free TrialLog in
Avatar of Luis Diaz
Luis DiazFlag for Colombia

asked on

Java: modify max heap size

Hello experts,
I access through a web browser to a java webstart ap. I am able to launch the ap If I run it 1024 mb however if try to increase to 2048 mb I am not able to launch the ap.
My java version is 7.55 and my OS is a 64  bit with 8 GB of ram. I think that I need to modify the maxheapsize of java to be able to run my webstart in 2048 mb. Someone know which file should I modify to be able to run my webstart in 2048 mb?
Thak you in advance.
SOLUTION
Avatar of Radek Baranowski
Radek Baranowski
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Luis Diaz

ASKER

I have in the JNLP the following:
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.7+" initial-heap-size="20m" max-heap-size="768m" java-vm-args="-XX:MaxPermSize=128m"/>

Open in new window


However the strange thing is that I some computer I can run the app above 1024 such as 2048 with this line and in other computers I am not able to run the app above 1024 even if they are in 64 bit so I don't know if there another config to do in the computer in which I am not able to run the app above 2048.

Thank you in advance for your help.
how exactly do you alter your application memory setting ? do you modify the above line or some other way ?
Directly in the server and every user download the WebStart through a specific web link.
You mention 64-bit OS.  JVM 64/32 bit matters too.  On the problem system(s):

Are you attempting to start a 64-bit JVM or a 32-bit JVM?  What specifc JVM?  What platform?  What error are you getting?
How can I know that my JVM installed is in 64-bit or in 32-bit?
The JVM that I use is 7.55. I don't have any error, the application doesn't run when I launch the WebStart in (2048) and It runs when I launch it in (1024).
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial