Is it safe (or a good idea) to run "jmap -histo:live" on a scheduled basis (e.g. every 10minutes) to trigger garbage collection? We want to reduce the number of alarms we are getting from AWS (Amazon Web Services), which is triggered when memory consumption is high.
Server has 16GB RAM. GC is G1GC (instead of CMS). Xmx is set at 12GB. Xms is also 12GB (but we are planning to reduce it). Memory consumption icreases rapidly when Excel files are being processed / created via Apache POI (we're using XSSFSheet).
BTW, we plan to run the scheduled jmap on a Production environment (SAP Hybris 5.7.0.3).