Java Heap Space for a project

Discussions about Java virtual machine, installation, and running

Moderator: Moderators

Java Heap Space for a project

Postby nmantilla@generali.fr » Mon Jan 25, 2016 2:52 am

Hello,

I have a project with a size of 65MB (i can't send the project : the size is too heavy).

When users save the project, MagicDraw returns an error : the user must change the parameter Xmx. After the project is corrupted. Users can't open it : magicdraw throws "Java Heap Space".

I have found in the project that users had downloaded images in diagrams. It's why, probably, the project has a significant size .

The parameters of magicdraw are : JAVA_ARGS=-Xmx1200M -XX\:PermSize\=40M -XX\:MaxPermSize\=150M -Duser.language\=fr -DLOCALCONFIG\=true
I can't increase the size of -Xmx because after i can't launch magicdraw.

I use MagicDraw version 16.5 sp4.

Thanks for your help

Nathalie
nmantilla@generali.fr
Forum Beginner
Forum Beginner
 
Posts: 25
Posts Rating:0
Joined: Thu Jan 26, 2012 8:53 am

Re: Java Heap Space for a project

Postby vidjur » Mon Jan 25, 2016 8:47 am

Hello,

We suspect that you are starting MagicDraw with Java 32 bit. You may check it from MagicDraw main menu Help > About MagicDraw > Environment in the Architecture line.
On 32-bit systems the maximum heap size will range from 1100M to 1300M.

Could you please try to use 64 bit Java and then increase Java maximum heap size?
Java can be changed in mduml.properties file in " JAVA_HOME= " line. The mduml.properties can be found in <MagicDraw install dir>/bin folder.
Note, use recommended Java 1.6.0_10 version for MagicDraw 16.5 sp4.

You can download the Java from
http://www.oracle.com/technetwork/java/ ... 10-oth-JPR

Please keep us informed about your progress.
Best regards,
Vidas Jurkevicius
vidjur
Forum Beginner
Forum Beginner
 
Posts: 68
Posts Rating:1
Joined: Thu Jan 28, 2010 12:59 am

Re: Java Heap Space for a project

Postby marlonbrando921@gmail.com » Mon Apr 18, 2016 1:55 am

This can happen with very large orgs, or with very large metadata sets. I've had success by doing any one of the following:

1: Upgrade to a 64 bit jvm, and Kepler
2: Upgrade your Xmx to 2048m (2gb heap)
3: Use Mavensmate for Sublime Text
4: Use Mavensmate for Atom.

Options 3 & 4 have the added benefit of getting you off eclipse!
marlonbrando921@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:1
Joined: Mon Apr 18, 2016 1:51 am
Full name: marlonbrando

Re: Java Heap Space for a project

Postby nexsoft@nexcorp.in » Mon Jun 20, 2016 7:47 am

I'm getting a java project error "Unable to create project. Issue for heap space in java projects.
So, some common setting to implement into your projects whenever getting the error

-Xms256m
-Xmx1024m
-XX:PermSize=128m
-XX:MaxPermSize=512m
nexsoft@nexcorp.in
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Mon Jun 20, 2016 7:23 am


Return to Installing and running

Who is online

Users browsing this forum: No registered users and 1 guest