opening sockets and cpu usage

Wouter wouter.abraham at pi.be
Tue Aug 10 19:23:04 EDT 2004


> Re: opening sockets and cpu usage
> 	• 	From: Pierre Sahores
> 	• 	 Subject: Re: opening sockets and cpu usage
> 	• 	 Date: Tue, 10 Aug 2004 14:31:47 -0700
>
> Hello,
>
>
> Le 10 août 04, à 22:59, Dar Scott a écrit :
>>
>>
>>
>> On Aug 10, 2004, at 2:26 PM, Dar Scott wrote:
>>
>>
>>  It looks like a bad thread is running when any socket is open. It 
>> might be polling.
>>
>> This looks like bugzilla food to me.
>>
>>  I don't see any new threads added. A polling thread might be OK 
>> under some conditions.
>>
>> Normally Rev makes 200 system calls a second, but with sockets on, it 
>> makes about 80,000.
>
>  ... and 1/20 of the sended requests, using the "open socket" command 
> don't never arrive to destination... This is an Metacard historical 
> bug. As a workaround, i avoid to use this command and use the "POST 
> Method" to the Apache port + a php sockets listener/translator 
> instead, where the php script is binded, first side, to Apache on port 
> 80 and, second side, to the Revolution server-side app on the port 
> xxxx this app accept connection :
>
>
> accept connections on port "xxxx" with message "newconnect"
>
>  Works just as expected and take advantage of the Apache+PHP ability 
> to replace MC/Rev in what represants, in my opinion, one of its oldest 
> and most dangerous MC/Rev limitation...
>
> The php script example can be found in the list archives in searching 
> about the Metacard+PostgreSQL threads.
>
>
> Best, Pierre
>
>
> Dar Scott

Tnx Dar and Pierre,

What I don't understand is some others don't have this problem when 
working with the same stack.
Their cpu usage was under 3%.
Anyway I fed this bug to its Zilla  (1963)

Greets,
WA



More information about the use-livecode mailing list