The invention discloses a cache preheating method, device and equipment based on a
Java soft reference
garbage collection mechanism and load self-adaption, a medium and a product, and relates to the technical field of cache preheating. The method comprises the steps of firstly monitoring a soft reference
garbage collection process of the
Java virtual machine, specifically capturing recycled soft reference objects through an association
queue in the monitoring process, then when any soft reference object is monitored to be recycled, determining a key Key of recycled data corresponding to the any soft reference object through a
reverse mapping relation, and if the any soft reference object is not recycled, executing the step of executing the step of executing the step of executing the step of executing the step of executing the step of executing the step of executing the step of executing the step of executing the step of executing the step of executing the step of executing the step of executing the step. The method comprises the following steps: acquiring a
cache management event, triggering to generate a cache preheating task, acquiring a
system load index in real time, dynamically adjusting execution strategies of all the cache preheating tasks according to the
system load index, and finally executing the cache preheating task according to the adjusted execution strategies to write corresponding data into a cache, so that on-demand preheating triggered by the
memory management event can be realized. And resource scrambling with normal services is avoided through load awareness, and the
cache hit rate and the
system resource utilization rate are effectively improved.