System and method for dynamic selection of a garbage collector for java-based microservices
AssigneeDell Products L.P.
InventorsMin Liu, Gururaj Kulkarni
Life of this patent
Estimating the term…
Abstract
A log generated over a time period of garbage collection cycles of a microservice is reviewed. The log includes garbage collection events and pause times for each event. A determination is made that a threshold number of consecutive garbage collection events has been reached where each consecutive event had a pause time exceeding a threshold pause time. Upon the determination, a change is made to a configuration file associated with the microservice to reduce the pause times for a next time period. Once the microservice enters an idle state, a command is generated to restart the microservice for the change in the configuration file to take effect.
Claims18
A method comprising:
- reviewing a log generated over a time period of garbage collection cycles of a microservice, the log comprising garbage collection events and corresponding pause times for each event;
- determining that a threshold number of consecutive garbage collection events has been reached where each consecutive event had a pause time exceeding a threshold pause time;
- upon the determination, making a change to a configuration file associated with the microservice to reduce the pause times for a next time period;
- waiting for the microservice to enter an idle state;
- and
- upon the microservice entering the idle state, generating a command to restart the microservice for the change in the configuration file to take effect.
A system comprising:
- a processor;
- and memory configured to store one or more sequences of instructions which, when executed by the processor, cause the processor to carry out the steps of:
- reviewing a log generated over a time period of garbage collection cycles of a microservice, the log comprising garbage collection events and corresponding pause times for each event;
- determining that a threshold number of consecutive garbage collection events has been reached where each consecutive event had a pause time exceeding a threshold pause time;
- upon the determination, making a change to a configuration file associated with the microservice to reduce the pause times for a next time period;
- waiting for the microservice to enter an idle state;
- and
- upon the microservice entering the idle state, generating a command to restart the microservice for the change in the configuration file to take effect.
A computer program product, comprising a non-transitory computer-readable medium having a computer-readable program code embodied therein, the computer-readable program code adapted to be executed by one or more processors to implement a method comprising:
- reviewing a log generated over a time period of garbage collection cycles of a microservice, the log comprising garbage collection events and corresponding pause times for each event;
- determining that a threshold number of consecutive garbage collection events has been reached where each consecutive event had a pause time exceeding a threshold pause time;
- upon the determination, making a change to a configuration file associated with the microservice to reduce the pause times for a next time period;
- waiting for the microservice to enter an idle state;
- and
- upon the microservice entering the idle state, generating a command to restart the microservice for the change in the configuration file to take effect.
Dependencies are inferred from the claim text.