No log file (Java)

Problem

Your New Relic Java agent is not generating log files.

Solution

Ensure your New Relic Java agent is configured to generate newrelic_agent.log files by checking the following:

Log file directory

New Relic's Java agent stores log files in the logs directory. The Java agent creates this directory in the same location used for the newrelic.jar in the -javaagent switch. If you cannot find newrelic_agent.log, ensure the JVM process has permissions to write to the logs directory.

Permissions management varies greatly by environment, so work with your system administrator to verify that this is not an issue. If permissions are not the issue, check that you did not customize the location of the logs directory.

When booting your JVM, verify that the generated logs show that the newrelic.jar file opened and that the Java agent interpreted the newrelic.yml configuration file. Failures to find either file or open them correctly will appear in the logs.