>>> On 7/7/2008 at 10:45 AM, in message <[EMAIL PROTECTED]>, "Brad
Nicholes" <[EMAIL PROTECTED]> wrote:
>>>> 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.
> 

Sorry, forgot to include the link to the diff 

http://ganglia.svn.sourceforge.net/viewvc/ganglia/trunk/monitor-core/gmond/python_modules/network/tcpconn.py?view=diff&r1=851&r2=1528&diff_format=h


-------------------------------------------------------------------------
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
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to