I have a spring boot app deployed on digital ocean, my current droplet (virtual pc, named as droplet) has 1gb of memory.
My app has some cron jobs that get infos from some APIs and stores on the db, i will explain it:
@Scheduled(cron = "50 0 0/12 * * ?")
^ this one clean some values from a table
@Scheduled(cron = "50 0 0/1 * * ?")
^ Same as above but for another table
@Scheduled(cron = "0 0/1 * * * ?")
^ Have two of this, that get infos from a API, do some math accounts and then store the results on db.
What i see from the monitoring tools is that my memory usage never goes down it always goes up a litle bit.
It start with 40% of usage about 5 hours ago and now its at 75%.
Theres something that i can do to cleanup the memory usage? Maybe a garbage collection?
Im using mysql, btw
Thanks
-- Edit
I just run visualvm, and the results are the show:
Seems like gc is actually running, so, whats wrong? maybe i need to set max heap at digital ocean?

