---
title: Troubleshooting Java App and API Protection
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > App and API Protection > Enabling App and API
  Protection > Enabling App and API Protection for Java > Troubleshooting Java
  App and API Protection
---

# Troubleshooting Java App and API Protection

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ().
{% /alert %}

{% /callout %}

## Common Issues{% #common-issues %}

### No security signals appearing{% #no-security-signals-appearing %}

1. Verify Agent version:
   - Ensure you're running Datadog Agent v7.41.1 or higher.
   - Check Agent status: `datadog-agent status`.
1. Check Java tracer version:
   - Confirm you're using Java tracer v0.94.0 or higher.
   - Verify the tracer is loaded: `java -javaagent:/path/to/dd-java-agent.jar -version`.
1. Verify environment variables:
   - Ensure `DD_APPSEC_ENABLED=true` is set.
   - Check `DD_SERVICE` and `DD_ENV` are properly configured.
   - Verify `DD_APM_ENABLED=true` if using APM features.
1. Check file system permissions:
   - Ensure the application has write access to `/tmp`.
   - Verify the Java agent JAR is readable.

### Application fails to start{% #application-fails-to-start %}

1. Check Java agent path:
   - Verify the path to `dd-java-agent.jar` is correct.
   - Ensure the JAR file exists and is readable.
1. Memory issues:
   - If you see `OutOfMemoryError`, increase the JVM heap size.
   - Add `-Xmx` parameter to your Java command.
1. Class loading errors:
   - Check for conflicts with other Java agents.
   - Verify Java version compatibility.

### Performance impact{% #performance-impact %}

1. High latency:
   - Check Agent resource usage.
   - Verify network connectivity between Agent and Datadog.
   - Consider adjusting sampling rates.
1. High memory usage:
   - Monitor JVM memory usage.
   - Adjust Agent resource limits if needed

### Still having issues?{% #still-having-issues %}

If you're still experiencing problems:

1. Check the [Application Security Monitoring troubleshooting guide](https://docs.datadoghq.com/security/application_security/troubleshooting.md)
1. Review the [Java tracer documentation](https://docs.datadoghq.com/tracing/trace_collection/compatibility/java.md)
1. Contact [Datadog support](https://docs.datadoghq.com/help)
