Troubleshooting issues with plug-in servers
About the plug-in servers
Based on the products and features installed, there can be several instances of the plug-in servers running on AR System server. The following table lists the possible plug-in servers:
Plug-in server | Port | Location of pluginsvr_config.xml | Plug-in server log file |
---|---|---|---|
AR System | 9999 | <ARInstallationFolder> | <ARInstallationFolder> |
Full Text Search | 9977 | <ARInstallationFolder> | <ARInstallationFolder> |
Approval Server | 9800 | <ARInstallationFolder> | <ARInstallationFolder>\ARServer |
Atrium Shared | 9556 | <AtriumCoreInstallationFolder> | <AtriumCoreInstallationFolder> |
Atrium Normalization | 9555 | <AtriumCoreInstallationFolder> | <AtriumCoreInstallationFolder> |
To monitor plug-in server activity
You can monitor whether the plug-in server is stopping or restarting.
- On Microsoft Windows:
- Launch Task Manager
- Select View > Select Columns
- Select the Command Line, CPU, Memory (Private Working Set), and PID check boxes.
- Click OK.
- Select Show processes from all users.
- Sort by Image Name and examine the lines where the Image Name is java.exe.
- In the Command Line column, note the path following the -classpath parameter.
This parameter indicates where the plug-in server loads the pluginsvr_config.xml file. - To determine if the plug-in server is near its limit for memory consumption, compare the memory value for the process and the --Xmx parameter specified in the Command Line column.
- Click View > Refresh Now to refresh the process list and check if the value of Process ID (PID) changed for any of the java.exe processes.
A changed PID value indicates that the plug-in server is stopping and restarting.
- On UNIX:
- Run the following command as root or the user who started AR System server:
ps -auxwww | grep java | grep arpluginsvr - If the command fails, run the following command:
ps -ef | grep java | grep arpluginsvr
The command returns several results. - Note the path following the -classpath, which indicates where the plug-in server loads the pluginsvr_config.xml file.
- Identify the PID at the beginning of the line.
- Run the ps command to monitor the PID for the plug-in server instance that is having the issue.
- Run the following command as root or the user who started AR System server:
To investigate a plug-in server which is not running
If an instance of the plug-in server is not running, view the armonitor configuration file in a text editor to determine whether the plug-in server is configured correctly.
- Search for lines which specify java and include com.bmc.arsys.pluginsvr.ARPluginServerMain in the command line.
For each line that you find, scroll to find the -classpath parameter. The first location specified by the -classpath parameter indicates the directory, which contains the pluginsvr_config.xml file for the instance of the plug-in server. - If one of the instances of the plug-in server specified in the armonitor configuration file is not running, perform the following tasks:
- Identify the port specified in the AR System Administration: Plugin Server Configuration form.
See Setting-plug-in-server-configuration-options. - Run netstat -a on the server and confirm that there is no process using the port.
- From the armonitor configuration file, copy the line which starts the plug-in server.
- As the user who owns the AR System installation, launch a command prompt on the server.
- Run the line from the armonitor configuration file in the command window.
- Investigate any errors reported.
- Identify the port specified in the AR System Administration: Plugin Server Configuration form.
To verify plug-in server configuration
- Examine the AR System Configuration Generic UI form (AR System Administration: AR System Configuration Generic UI form) and the Plugin Server Configuration form (AR System Administration: Plugin Server Configuration form) to check the configuration.
See Updating-configuration-settings-by-using-the-AR-System-Configuration-Generic-UI-form and Configuring-Java-plug-in-servers. - On the Plugin Server Configuration form, on the Plugin Server Configuration tab, identify the specified port.
See Setting-plug-in-server-configuration-options. - Verify that the server name specified in the Plugin Server Configuration form and AR System Configuration Generic UI form is consistent.
- If the server is in a server group, verify that the Server-Connect-Name is configured in the AR System Configuration Generic UI form.
For more information, see Server-group-naming. - Review the configured number of plug-in threads.
For more information, see Using-multithreading-in-the-Java-plug-in-server. - In the Plugin Server Configuration form, identify the plug-ins which are hosted by this instance of the plug-in server.
- Verify that the list of plug-ins specified in the Plugin Server Configuration form and the Server-Plugin-Alias setting in the AR System Configuration Generic UI form uses a consistent server name and port.
To check for exceptions in the plug-in server log
View the plug-in server log to check for run-time exceptions. By default, the plug-in server logs INFO and WARN events, which describe the behavior of the plug-in server.
When the plug-in server starts successfully, the following message is displayed:
The server is ready to receive RPC calls
Search the plug-in server log for ERROR to find errors. For example, Exceeding Java heap size, is a common error situation.
For more information about exceptions, see the Logging exceptions for calls to Java plug-ins section from Running the plug-in server.
To use workflow logging to investigate plug-in server issues
Use workflow logging when:
- You are investigating a reproducible issue with a plug-in
- A plug-in causes the plug-in server to become unresponsive
To prevent the logs from growing too large, disable logging after capturing the issue.
Troubleshooting java plug-in server issues related to centralized configuration
For any java plug-in server related issues, refer to the arjavaplugin.log file. The following table describes the common error and warning messages and other issues:
Scenarios | Description |
---|---|
You see the following message in the arjavaplugin.log file intermittently: Cannot connect to AR Server, will retry again | The java plug-in server tries to connect to AR System server at a one-minute interval until it connects successfully. If you continue to see this message, restart AR System server manually. |
The java plug-in server is not able to connect to AR System server even though AR System server is running. Cannot connect to AR Server, will retry again | Check the following connection parameters in the AR System Configuration Generic UI form:
|
You see the following error message in the arjavaplugin.log file: No component found in Configuration database with | The java plug-in server component, as mentioned in the <pluginsvrname> tag in the pluginsvr_config.xml file, is not present in the AR System Configuration Component Form. You must delete the <pluginsvrname> tag from the pluginsvr_config.xml file and restart the java plug-in server. |
The java plug-in server is running, but the component is not loaded into the AR System Configuration Component Form. | Make sure you have applied AR System server license properly (write license). |
You see the following error message in the arjavaplugin.log file: “Missing value for key in userDefined parameter | For the <plug-in name> java plug-in server component, the value defined for the userDefined parameter is incorrect. You must define values for both Setting Name and Setting Value. |