Save that application server startup file and restart the application server
Note:
You can also configure a secure APM URL. Ensure that the connection is stable and free from certificate-related issues. Example: https://apm-prod-server:8443
For an Applications Manager failover setup, you can specify multiple hosts in a comma-separated format (supported from Java Agent v6.8), as shown below: apm.host=http://apm-prod-server-A:9090, http://apm-prod-server-B:9090