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.
LVL 1
LD16Asked:
Who is Participating?
 
Gary PattersonVP Technology / Senior Consultant Commented:
Post the output from java -version on your problem system.  

You can start your app from the command line using the javaws command to see startup errors.

What OS platform are you running on?
0
 
Radek BaranowskiFull-stack Java DeveloperCommented:
did you try to add arguments to j2se tag in JNLP file ?

<j2se version="1.6+" initial-heap-size="256m" max-heap-size="1024m" />

Open in new window

0
 
LD16Author Commented:
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.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
Radek BaranowskiFull-stack Java DeveloperCommented:
how exactly do you alter your application memory setting ? do you modify the above line or some other way ?
0
 
LD16Author Commented:
Directly in the server and every user download the WebStart through a specific web link.
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
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?
0
 
LD16Author Commented:
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).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.