1. A method, in a data processing system comprising a processor and a memory, for remote direct memory access (RDMA) resource leak detection, the method comprising: generating, by the data processing system, in a user space of the data processing system, a user space context comprising a user space RDMA resource hierarchical data structure; generating, by the data processing system, in a kernel space of the data processing system, a kernel context comprising a kernel RDMA resource hierarchical data structure, wherein the kernel RDMA resource hierarchical data structure comprises nodes of the users space RDMA resource hierarchical data structure; receiving, by the data processing system, a request to close a RDMA resource; traversing, by the data processing system, the user space RDMA resource hierarchical data structure to determine whether the RDMA resource has child RDMA resources allocated in the user space RDMA resource hierarchical data structure; detecting, by the data processing system, a resource leak in response to determining, based on at least one of the user space RDMA resource hierarchical data structure or the kernel RDMA resource hierarchical data structure, that the RDMA resource has a child RDMA resource allocated in the user space RDMA resource hierarchical data structure; and reporting, by the data processing system, the resource leak.