Intermittent memory issues and hangs in Domino Designer

Technote (troubleshooting)


Problem

While using IBM Domino Designer, you are experiencing repeated hangs or symptoms of memory issues (such as the error, "JVM: Out of Memory") even though your machine has at least 2 GB of physical RAM. Although the problems are frequent, you are unable to link them to a particular set of steps. You may observe that the issues occur more often under certain conditions, but there's still an intermittent nature to the problem.

Other possible patterns or symptoms:

- The issues are more likely to show themselves after Designer has been running for a few hours.

- The hour glass (busy cursor) is displaying more frequently, even when performing seemingly simple tasks such as opening a form or an XPage.

- Switching between editors is now taking awhile.


Resolving the problem

Most likely, a set of default configurations for Notes/Designers' use of the JVM needs to be modified. The JVM is the runtime upon which Java programs execute. For Notes and Domino Designer, the JVM settings are stored in a file called jvm.properties that is located in the following path:

<Notes program dir>/framework/rcp/deploy/jvm.properties

By default, the properties file has the following values:

    vmarg.Xmx=-Xmx256m
    vmarg.Xms=-Xms48m
    vmarg.Xmca=-Xmca8k

If you have at least 2 GB of physical RAM, close all instances of Notes, Domino Designer, and Domino Administrator, and then change the settings to the following values:
    vmarg.Xmx=-Xmx1024m
    vmarg.Xms=-Xms512m
    vmarg.Xmca=-Xmca512k

NOTE: In a post Notes/Designer 9.0 release, these higher values will be set by default in new installs, but currently you must change them manually.

Details:
  • vmarg.XMx - defines the maximum amount of memory that Notes/Designer will consume.
  • vMarg.XMs - defines the minimum amount of memory that Notes/Designer will consume.
  • vmarg.Xmca - defines the block size by which Notes/Designer will increase memory by when either need more than the minimum.
  • With these changes, Notes and Designer will start out with 512 MB memory (up from 48 MB) and, if more memory is needed, the JVM will add blocks of 512 KB and finally cap out at 1024 MB.
  • The result of these changes is that Notes and Designer have more of the available memory to start out with. Equally important, when Designer needs more memory, it will be able to assign it in blocks up to 1024 MB.
  • With the original settings, Designer can spend a great deal of time adding memory in small 8 K blocks or trying to free preassigned memory blocks when the 256 MB upper limit is reached. As a result, it appears to hang/freeze when actually it is working to allocate or free up memory in order for the program to run.
  • Notes and Designer share the same JVM, so the changes you make will also change Notes' use of the JVM. Possible considerations:
    • If Notes is run, it will have the same heap size settings as Designer.
    • Notes, when run without Designer, will also have a minimum memory footprint of 512 MB and a maximum footprint of 1024 MB.
    • When Notes and Designer are run at the same time they will share the assigned memory, that is the maximum memory usage by the two programs combined will not exceed 1024 MB.

Further diagnosis:
    If a developer suspects the JVM properties may be related to poor experience in Designer but is reluctant to edit the jvm.properties file without more information, the developer can use the Java heap monitor tool in Designer to display the amount of memory used.

    The Java heap monitor is enabled in Designer properties. Detailed steps to enable it are:

    1. In Designer, choose File -> Preferences.
    2. Change to the General preference panel.
    3. Select the checkbox for "Show heap size" and then click OK.

    The monitor displays information on the status bar. If you see Designer is consistently running with 75% to 80% (or more) of the available memory used, this indicates Designer does not have enough memory to operate effectively. The jvm.properties file must be modified as documented above.

Related information

A simplified Chinese translation is available

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM Domino Designer

Software version:

8.5, 8.5.1, 8.5.2, 8.5.3, 9.0

Operating system(s):

Windows

Reference #:

1617708

Modified date:

2013-07-30

Translate my page

Machine Translation

Content navigation