Tips and Tricks
O/R Mapping
Mac OS X

Increasing Heap Size to Prevent Out of Memory

When running Visual Paradigm’s product, you might receive a message that ask you to increase the memory size in order to complete an action, for example, generating report for a large scale project. In such case, you need to increase the heap size of the JVM. The following sections list the steps required to start a product with an increased heap size value.

VP-UML, DB-VA (Standalone), Agilian and BP-VA

  1. Run the command prompt
  2. Change directory to $vpsuite-installation-folder/bin (or $bp-va-installation-folder/bin for BP-VA installation)
  3. Execute the following script to start the product. Please allocate at least 768m for the heap size, defined by the option -Xmx.

..\jre\bin\java -Xms128m -Xmx1024m -cp ".;..\lib\vpplatform.jar;..\lib\jniwrap.jar;..\lib\jhall.jar;..\lib\vpuml-help.jar;..\lib\winpack.jar;..\lib\openapi.jar;..\ormlib\orm.jar;..\lib\jh.jar;..\lib\lib01.jar;..\lib\lib02.jar;..\lib\lib03.jar;..\lib\lib04.jar;..\lib\lib05.jar;..\lib\lib06.jar;..\lib\lib07.jar;..\lib\lib08.jar;..\lib\lib09.jar;..\lib\lib10.jar" RV


SDE and DB-VA with IDE

Different from standalone products, SDE (and DB-VA with IDE) shares the same environment with the IDE, thus the VM. In other words, to change the memory settings of SDE is to change the memory settings to start the IDE. The following links direct you to the instructions of increasing the heap size value of some of the IDEs.

Eclipse
http://wiki.eclipse.org/index.php/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

JBuilder
http://docs.sun.com/source/817-2846-05/install_jbuilder.html

NetBeans
http://wiki.netbeans.org/wiki/view/FaqSettingHeapSize

IntelliJ IDEA
http://support.jetbrains.com/kb/entry.jspa?externalID=33

Resource

 
 
Last modified: 2007/05/03 21:17
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory