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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.