[Java] AppName configuration - Multiple JVMs and Multiple environments

I have configured three java application for APM service. three of them are showing in the APM section. But when I try to add environment variable to distinguish between apps from different environments it’s not working.

Any help is appreciated.

Hello @developer14,

Do you happen to have enable_auto_app_naming true in your config? When auto_app_naming is enabled, applications will be named for their context, filter, servlet, or request attribute. Additionally, when enabled, the name set in the config will be used for non-web transactions.

If you want to use the names set in the newrelic.yml, I suggest setting enable_auto_app_naming false instead.

More resources can be found here: