Patent ID: 8903776
Filing Date: 2014-12-02
Classification: G06F,H04L

Abstract:
1. A method for caching socket connections while ensuring that there are file descriptors available for applications, the method comprising: creating a file descriptor reference to be associated with a cached socket connection, wherein said file descriptor reference references an object of said cached socket connection; storing, by a processor, said file descriptor reference and said object of said cached socket connection in a predefined memory area of a heap; determining a time that each file descriptor reference stored in said predefined memory area of said heap was created; determining a frequency count for said each file descriptor reference stored in said predefined memory area of said heap after completion of a previous garbage collection cycle; identifying file descriptor references and referenced objects that need to be collected by a garbage collector during a subsequent garbage collection cycle based on said determined time that said each file descriptor reference was created and based on said determined frequency count for said each file descriptor reference after said completion of said previous garbage collection cycle; removing said identified file descriptor references and referenced objects during said subsequent garbage collection cycle; and resetting said frequency count to zero for all file descriptor references remaining in said predefined memory area of said heap upon completion of said subsequent garbage collection cycle.