Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fd leak? #260

Open
easonqing opened this issue Jun 25, 2023 · 1 comment
Open

fd leak? #260

easonqing opened this issue Jun 25, 2023 · 1 comment

Comments

@easonqing
Copy link

here is my client code:

class AgentAction(object):
def init(self, agent_ip, timeout=60):
self.agent_ip = agent_ip
self.timeout = timeout
self.rpc_address = "tcp://%s:%s" % (self.agent_ip, 5000)

def test_action(self, arg1):
    c = ZeroRpcClient(prefix="Agent1", heartbeat=None, timeout=self.timeout)
    c.connect(self.rpc_address)
    ret = c.test_action(arg1)
    c.close()
    return ret

when I run the test_action repeatedly, I found leak of several fds like these:
python 8041 rtrs 30u a_inode 0,12 0 12760 [eventpoll]

so what happened? how to avoid this?
thanks!

@bombela
Copy link
Member

bombela commented Jun 25, 2023

Can you tell by any chances if it is from the gevent ioloop or zmq?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants