Planning for Java CAPS Installation

Increasing the NetBeans IDE Heap Size

If you install the Sun Message Library for HL7, we recommend that you increase the NetBeans IDE heap memory size. If the heap size is not sufficient it could result in out of memory exceptions from the built-in parser. Use the netbeans.conf file to set the heap size for the JVM on which NetBeans IDE runs.

The recommended heap sizes for NetBeans C/C++ Development Pack for medium- and large-sized applications are:

ProcedureTo Increase the Heap Size in NetBeans IDE

Before You Begin

Save a backup copy of the netbeans.conf file before beginning this process.

  1. Navigate to JavaCAPS-home/netbeans-home/etc and copy the netbeans.conf file to the NetBeans user directory (JavaCAPS-home/.netbeans/caps/etc).


    Note –

    You may need to create the etc directory in the NetBeans IDE user directory.


  2. In your NetBeans IDE user directory, edit the —J-Xmx command line Java startup switch in the netbeans.conf file, for example:

    # command line switches
    netbeans_default_options=" -J-Xms32m -J-Xmx128m -J-XX:PermSize=32m
    -J-XX:MaxPermSize=96m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true"
  3. Restart the NetBeans IDE.


    Note –

    To ensure that you do not run out of memory while the built-in parser is running, you can also add the garbage collector switches, -J-XX:+UseConcMarkSweepGC (concurrent collector) and -J-XX:+UseParNewGC (parallel collector), to the netbeans.conf file.