Neverfail Heartbeat Experiences java.lang.OutOfMemoryError

Follow

Summary

This Knowledgebase article provides information about Neverfail Heartbeat Experiencing java.lang.OutOfMemoryError.


More Information

Note: This only applies to Neverfail Heartbeat versions prior to and including 4.2

Normally, the java environment upon which the Heartbeat code depends manages its own resources. In systems that are under heavy loads, java may not perform garbage collection frequently enough resulting in java.lang.OutOfMemoryError. In such cases, it is necessary to perform garbage collection more frequently. This condition is more likely to be seen on the passive server.

Procedure

To identify this condition, search for the following events in the NFLOG.txt.

java.lang.OutOfMemoryError

allocateDirect

  1. Create a Scheduled Task on the Primary and Secondary servers to perform garbage collection using the following command:

    C:\<neverfail_install_directory>\R2\bin\nfcmd.exe localhost doGC
  2. Set the task to run every minute using the administrator/system credentials

Additional Configuration Required For Microsoft Exchange Servers

Exchange Servers running Neverfail Heartbeat will have the Task Scheduler service set to manual and stopped on the passive server. To work around this the following method can be used to execute the command on the passive server remotely.

The following instructions assume server roles are set as Primary/active and Secondary/passive.

Create a Trusted Client

  1. On the Secondary/passive server, run the following commands so that commands can be issued from the Primary/active server:
  2. C:\<neverfail_install_directory>\R2\bin\nfcmd localhost addtrust <primary_server_channel_IP_address> administrator administrator

    Note: The first occurrence of administrator denotes the user under which the command is issued. The second occurrence denotes the rights in Neverfail Heartbeat.

    C:\<neverfail_install_directory>\R2\bin\nfcmd localhost addtrust <primary_server_channel_IP_address> SYSTEM administrator

  3. On the Primary/active server, run the following commands:

C:\<neverfail_install_directory>\R2\bin\nfcmd localhost addtrust <secondary_server_channel_IP_address> administrator administrator

Note: The first occurrence of administrator denotes the user under which the command is issued. The second occurrence denotes the rights in Neverfail Heartbeat.

C:\<neverfail_install_directory>\R2\bin\nfcmd localhost addtrust <secondary_server_channel_IP_address> SYSTEM administrator

Creating the Scheduled Task

  1. On the Primary/active server, create a second Scheduled task to perform garbage collection on the Secondary/passive server with the following command:

    C:\<neverfail_install_directory>\R2\bin\nfcmd <secondary_server_channel_IP_address> GC
  2. Set the task to run every minute using the Administrator/System credentials.
  3. The Secondary server will need Scheduled Tasks for periods it is active, on the Secondary/passive server, create a second Scheduled task to perform garbage collection on the Primary server with the following command:

    C:\<neverfail_install_directory>\R2\bin\nfcmd <primary_server_channel_IP_address> GC

    Note: You will be prompted to start the Task Scheduler in order to do this.
  4. Set the task to run every minute using the Administrator/System credentials.
  5. After completing the task configuration please stop the Task Scheduler service.


Applies To

Neverfail Heartbeat V4.2 and Earlier


Related Information

None

KBID-347

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.