# Troubleshooting TD Agent Treasure Data’s Treasure Agent (td-agent) sometimes gets a “Failed to upload to TreasureData: Import failed” error. There are several possible causes: * Your network becomes unstable during the upload. * Treasure Data’s API shut down the connection by an unexpected network/node condition. td-agent has a robust retry mechanism for these cases, so continue to import the data to Treasure Data. You should see the message “retry succeeded” in your logs after several retries. If you continue to get the same error and it exceeds the retry limit, it is a non-network problem. Contact [support@treasure-data.com](mailto:support@treasure-data.com). # Cannot Import Data Here are some common reasons that you cannot import data. * Make sure your network is live and allows you to access external networks. * If your data contains numbers greater than 2e64, you need upgrade your td command/td-agent to the most recent version. If you are using Fluentd instead, upgrade Fluent-plugin-td to version 0.10.15 or later. # Slow Performance of td-agent There is some agent overhead associated with running td-agent. The resource consumption is approximate as follows: * Resident memory (actual RAM used): 50MB * CPU Runtime: less than 2% of averaged runtime + your workload * Disk: Linux 120MB + your file buffer (configurable) If you think td-agent is slow, see “[5 Tips to Optimize Fluentd Performance](https://blog.treasuredata.com/blog/2015/08/18/5-tips-to-optimize-fluentd-performance/)”. # Enable Verbose Logging If you are having issues, add the following line to `/etc/default/td-agent` to enable verbose logging. ```conf DAEMON_ARGS=-vv ``` Restart the daemon. You can now find more verbose logs in /var/log/td-agent.log. # Endpoint Change Warning You might see the following message in the td-agent log. ```log tdlog plugin will change the API endpoint from api.us01.treasure-data.com to api.us01.treasuredata.com If you want to keep api.treasure-data.com, set 'endpoint api.treasure-data.com' in tdlog configuration ``` This message is for users who change the control of network access to [api.treasure-data.com](https://api.treasure-data.com). If you don’t set access restrictions based on our API endpoint, ignore the warning.