[Interest] QNAM::get() spawns three processess and opens file descriptors which I am unable to close
gsmember gs
gsmember at hotmail.de
Wed Aug 28 17:11:22 CEST 2013
Hi,I wrote a desktop app on Debian5. Right after the first manager->get() I opened pstree and htop:root at kvm2:~# pstree | grep votebotserver |-screen---votebotserver---4*[{votebotserver}]
htop shows me 4 running processess as well.
I tried to kill them with following methods:
QNetworkSession session(manager->configuration());
session.close();
session.stop();reply->abort();reply->close();reply->deleteLater();manager->deleteLater();After a while (about 5 minutes) the running process amount was reduced to 3 (2 + 1 the main process).
But the remaining 2 processess started my get() were never killed.
And after 2 hours, running many requests, I hit the user limit of open file descriptors.
"lsof | grep resrv" gave me a bunch of open fd's:[...]
resrv 12701 root 13r FIFO 0,8 0t0 319902 pipe
resrv 12701 root 14w FIFO 0,8 0t0 319902 pipe
resrv 12701 root 15r FIFO 0,8 0t0 320685 pipe
resrv 12701 root 16w FIFO 0,8 0t0 320685 pipe
resrv 12701 root 17r FIFO 0,8 0t0 322801 pipe
resrv 12701 root 18r FIFO 0,8 0t0 319929 pipe
resrv 12701 root 19r FIFO 0,8 0t0 320156 pipe
resrv 12701 root 20w FIFO 0,8 0t0 319929 pipe
resrv 12701 root 21w FIFO 0,8 0t0 320156 pipe
resrv 12701 root 22r FIFO 0,8 0t0 322200 pipe
resrv 12701 root 23r FIFO 0,8 0t0 320223 pipe
resrv 12701 root 24w FIFO 0,8 0t0 320223 pipe
resrv 12701 root 25r FIFO 0,8 0t0 322464 pipe
resrv 12701 root 26r FIFO 0,8 0t0 320225 pipe
resrv 12701 root 27w FIFO 0,8 0t0 320225 pipe
resrv 12701 root 28r FIFO 0,8 0t0 323006 pipe
resrv 12701 root 29r FIFO 0,8 0t0 320298 pipe
resrv 12701 root 30w FIFO 0,8 0t0 320298 pipe
resrv 12701 root 31w FIFO 0,8 0t0 323006 pipe
resrv 12701 root 32r FIFO 0,8 0t0 320300 pipe
resrv 12701 root 33w FIFO 0,8 0t0 320300 pipe
resrv 12701 root 34w FIFO 0,8 0t0 322464 pipe
resrv 12701 root 35r FIFO 0,8 0t0 320417 pipe
resrv 12701 root 36w FIFO 0,8 0t0 320417 pipe
resrv 12701 root 37r FIFO 0,8 0t0 324320 pipe
[...]I have instanciated QNAM only once.Thanks
_gs
From: thiago.macieira at intel.com
To: interest at qt-project.org
Date: Wed, 28 Aug 2013 07:45:56 -0700
Subject: Re: [Interest] QNAM::get() spawns three processess and opens file descriptors which I am unable to close
On quarta-feira, 28 de agosto de 2013 14:21:08, gsmember gs wrote:
> I will create one when I'm back home.
Also tell us how you found those processes, how you tried to kill them; how
you found open file descriptors.
I also understood you're saying there's a leak. How did you diagnose that?
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130828/96b00fb8/attachment.html>
More information about the Interest
mailing list