A method for dynamically tracking memory resource allocations/deallocations of a program resident in the memory of a network file server is disclosed wherein calls to system memory allocation functions are intercepted and diverted to memory resident tracker routines, interposed between the caller and the called functions to monitor returns from the called functions. Public symbol lists of application program interfaces are scanned for functions to be tracked, and function entry points are taken over by replacing initial instructions of the system functions with jumps to the tracker routines. The tracker routines then call the remainder of the system functions and record the reply before passing control back to the original caller program. Information on allocated blocks is written to ABLK blocks taken from an ABLK free block pool allocated at tracker startup. Subsequent deallocations of the allocated blocks release the same ABLK blocks back to the ABLK free pool. Information on "NULL" pointer and similar returns indicating allocation/deallocation errors is written to MSG queue blocks taken from a MSG free block pool allocated at tracker startup. Log file generator threads are activated to list the filled ABLK and MSG blocks when signalled. Cleanup routines restore the replaced code and deallocate all ABLK and MSG memory blocks when the tracker exits.