By renaaanbs
I would like to know the following:
1- Where the runtime logs are stored. (If it is)
2- I would like to know if the runtime logs are kept in the Ram memory because I am seeing my app increasing the consumption of ram memory.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Heya @renanbarbosasilva,
DigitalOcean App Platform stores logs for each of your app’s components, including services, workers, and jobs. While the logs are not stored in a specific directory within your app, you can access them through the DigitalOcean Control Panel or using the DigitalOcean CLI (doctl
).
To view logs in the Control Panel, navigate to your app’s page, then click on the specific component (e.g., service, worker, etc.) for which you’d like to see logs. You’ll find a “Logs” tab that shows the most recent logs for that component.
To access logs using the DigitalOcean CLI, first, make sure you have doctl
installed and authenticated. Then, you can run the following command, replacing <app-id>
with your app’s ID and <component-name>
with the name of the component for which you’d like to view logs:
doctl apps logs <app-id> --component=<component-name>
Logs generated by your application should not be kept in your app’s RAM memory by default. The increased RAM consumption you are observing might be due to other factors such as a memory leak or increased workload in your app.
However, if you’ve configured your application to store logs in memory (e.g., using an in-memory datastore like Redis), this could contribute to increased RAM consumption. In this case, you should consider storing logs in an external service or periodically flushing the in-memory datastore to manage memory usage better.
Hope that helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.