

Last date modified: September 30 2025
This document provides troubleshooting guidance for common APM Server issues encountered during installation, configuration, and operation in Relativity Server environments.
This guide assumes a default APM Server installation path of C:\elastic\apm-server
. Adjust paths according to your actual installation directory.
Symptoms:
Troubleshooting Steps:
Check APM Server Status:
Get-Service -Name apm-server
Status Name DisplayName
------ ---- -----------
Running apm-server Elastic APM Server
Verify Service Configuration:
(Get-CimInstance Win32_Service -Filter "Name = 'apm-server'").StartName
LocalSystem
Check APM Server Logs:
C:\Program Files\apm-server\logs\
apm-server.log
) for error messagesFor Elasticsearch connection issues, see Elasticsearch Troubleshooting
Verify Configuration File:
C:\elastic\apm-server\apm-server.exe test config -c "C:\elastic\apm-server\apm-server.yml"
Config OK
Symptoms:
Troubleshooting Steps:
Check APM Server Logs:
See above.
Review APM Server Configuration:
apm-server.yml
file in C:\elastic\apm-server\
http
vs https
)API keys are the preferred authentication method and expire by default in 6 months. Consider switching from username/password to API key authentication. For API key creation, see Kibana Troubleshooting.
output.elasticsearch:
hosts: ["https://<hostname_or_ip>:9200"]
api_key: "your-api-key-here"
# OR (not recommended)
# username: "<username>"
# password: "<password>"
This section in apm-server.yml
configures how APM Server connects to your Elasticsearch cluster.
hosts
: The URL(s) of your Elasticsearch node(s).api_key
: The recommended authentication method.username
/password
: Legacy authentication (not recommended; use API keys instead).
For instructions on creating an API key, see Kibana Troubleshooting.To verify the connection, run:
C:\elastic\apm-server\apm-server.exe test output -c "C:\elastic\apm-server\apm-server.yml"
Expected output for successful connection
elasticsearch: https://<hostname_or_ip>:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: fe80::61a7:3f3f:210:8d65%Ethernet 2, 10.0.2.2
dial up... OK
TLS...
security... WARN server's certificate chain verification is disabled
handshake... OK
TLS version: TLSv1.3
dial up... OK
talk to server... OK
version: 8.17.3
To verify Elasticsearch connectivity, see Elasticsearch Troubleshooting.
Symptoms:
Troubleshooting Steps:
C:\elastic\apm-server\
directory.C:\Program Files\apm-server\logs\
directory.Symptoms:
Troubleshooting Steps:
Check APM Server Logs:
fatal error: out of memory
Review APM Server Configuration:
Check apm-server.yml
for memory-related settings.
Common settings to review:
apm-server.memory.limit
: Maximum memory APM Server can use.apm-server.memory.queue
: Size of the memory queue for incoming events.Example configuration:
apm-server:
memory:
limit: 512mb
queue: 1000
Monitor System Resources:
apm-server.yml
.Adjust Memory Settings:
If APM Server is using too much memory, consider adjusting the following settings in apm-server.yml
:
apm-server.memory.limit
: Decrease the maximum memory limit.apm-server.memory.queue
: Decrease the memory queue size.Example:
apm-server:
memory:
limit: 256mb
queue: 500
Restart APM Server:
After making changes, restart the APM Server service:
Restart-Service apm-server
Expected response
WARNING: Waiting for service 'apm-server
(apm-server)' to stop...
Symptoms:
Troubleshooting Steps:
Enable Self-Instrumentation:
apm-server.yml
file.Verify Self-Instrumentation:
After configuration, restart the APM Server service:
Restart-Service apm-server
Expected response
WARNING: Waiting for service 'apm-server
(apm-server)' to stop...
Symptoms:
Troubleshooting Steps:
Why was this not helpful?
Check one that applies.
Thank you for your feedback.
Want to tell us more?
Great!