>>> On 7/7/2008 at 9:46 AM, in message <[EMAIL PROTECTED]>, "Ulf"
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I use # python -V
> Python 2.4.2
> It is a 64Bit version python.
> 
> The "-n" is a good idea, anyway.
> But didn' t fix the problem.
> But I' ve not many connections open.
> # time netstat -t -a
> [...]
> real    0m0.071s
> user    0m0.012s
> sys     0m0.056s
> 
> # time netstat -t -a -n
> real    0m0.054s
> user    0m0.000s
> sys     0m0.052s
> 
> 
> Ulf


A lot of this had to due with the change that we made to the way that netstat 
was being exec'd from python in order to support older python versions.  We 
might want to consider using subprocess.Popen() in newer versions of python and 
the popen2 for older versions.  Take a look at this diff from the original 
version of tcpconn.py starting from the diff at line #179.  The subprocess way 
of exec'ing netstat is cleaner and doesn't carry the popenChild.wait() problems.

Brad


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to