Debugging and Logging ActiveMatrix Environment

Procedure

  1. Navigate to the node directory on which the action is deployed and add the given line to the DeployedNode.tra file. For example, the custom action is deployed on the DevNode, so add the given line to the file ~/confighome/tibcohost/Admin-amxadmin-instanceOne/data_3.2.x/nodes/DevNode/bin/DevNode.tra
    java.extended.properties=-Xmx512m -Xms128m -XX:MaxPermSize=192m -XX:+HeapDumpOnOutOfMemoryError 
    -Xdebug -Xnoagent -Djava.compiler=NONE 
    -Xrunjdwp:transport=dt_socket,server=y,address=5005,suspend=y
  2. Add a debug point on the execute() method in the custom action and remote debug the action using Eclipse or ActiveMatrix Studio by connecting to the port specified.