Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Memory next disconnected

0 views
Skip to first unread message

Gabriel Perez S.

unread,
Apr 27, 2006, 12:11:45 PM4/27/06
to p...@perl.org
Hi,

I have a question about a memory size for socket conections. Whith a
POE::Component::Server::TCP module I make a server. In one test make 5000
conections in 10 minutes (test conections).

After the test the memory is this:

$ cat /proc/3565/status | egrep "^(State|VmSize|VmRSS)"
State: S (sleeping)
VmSize: 9734 kB
VmRSS: 8120 kB

Next of test conections is this:

$ cat /proc/3565/status | egrep "^(State|VmSize|VmRSS)"
State: S (sleeping)
VmSize: 14348 kB
VmRSS: 11180 kB


I delete all hash my hash create for work this conections. But I don't now
why low memory next close all conections (I see in netstat don't exist any
conection to the server).

Thanks.

PD: Sorry for my english.
--
--
Gabriel Perez S.
System & Network Development
-
RunSolutions
Open Source It Consulting
-
email: gpe...@runsolutions.com
Mov: 649 98 99 91
tel: 902 88 99 79
fax: 902 88 87 61

Paseo del Borne nº 15 - 6ª Planta
07012 - Palma de Mallorca
Baleares España

Rocco Caputo

unread,
Apr 27, 2006, 1:33:33 PM4/27/06
to p...@perl.org
On Apr 27, 2006, at 12:11, Gabriel Perez S. wrote:

> Hi,
>
> I have a question about a memory size for socket conections. Whith a
> POE::Component::Server::TCP module I make a server. In one test
> make 5000
> conections in 10 minutes (test conections).
>
> After the test the memory is this:
>
> $ cat /proc/3565/status | egrep "^(State|VmSize|VmRSS)"
> State: S (sleeping)
> VmSize: 9734 kB
> VmRSS: 8120 kB
>
> Next of test conections is this:
>
> $ cat /proc/3565/status | egrep "^(State|VmSize|VmRSS)"
> State: S (sleeping)
> VmSize: 14348 kB
> VmRSS: 11180 kB
>
>
> I delete all hash my hash create for work this conections. But I
> don't now
> why low memory next close all conections (I see in netstat don't
> exist any
> conection to the server).
>
> Thanks.

Your report of increased memory use from POE::Component::Server::TCP
is not the first. I suspect that recent patches to the module, or to
POE::Filter modules, have introduced a memory leak.

--
Rocco Caputo - rca...@pobox.com

Sungo

unread,
Apr 27, 2006, 6:41:51 PM4/27/06
to Rocco Caputo, p...@perl.org
Rocco Caputo wrote:

> Your report of increased memory use from POE::Component::Server::TCP is
> not the first. I suspect that recent patches to the module, or to
> POE::Filter modules, have introduced a memory leak.

I've used Devel::Size to great affect in debugging problems of this
nature. POE::API::Peek has some memory-size-grabbing features that might
be helpful and use Devel::Size

sungo

0 new messages