Patent ID: 8583783

Claim:
A method for automated garbage collection in a heap of an application server, comprising: gathering a plurality of garbage collection log files associated with a plurality of garbage collection events over periods of time; analyzing data from the plurality of garbage collection log files; determining a trend in the garbage collection activities over the periods of time based on the analyzing; obtaining data on a volume of application transactions in the application server that have occurred over the same periods of time from another source; projecting either an increase or decrease in the volume of application transactions in the application server based on the data obtained on the volume of application transactions; identifying a correlation between garbage collection activity and the data obtained on the volume of application transactions in the application server based on the trend; forecasting at least one of a future utilization of heap memory and a future garbage collection activity based on the correlation and the projected increase or decrease in the volume of application transactions; and tuning the heap based on the forecast, wherein tuning the heap comprises setting an average length of time between garbage collection events to a multiple of an average length of time of an application transaction, and wherein the average length of time between garbage collection events is set to at least twice the average length of time of an application transaction.