[Libwebsockets] libwebsockets is taking 50% cpu cycle after serving one http connection
adinov.bjorka at gmail.com
Mon Nov 4 07:07:40 CET 2013
Thanks for the reply.
I tried with the 1.23 version, compiled using Visual Studio 10 Express,
projects generated using CMAKE 2.8. The symptom is still there, usually
immediately after I opened the second window (using Chrome, dumb-increment
only). I try this on other PC and the problem also occurred. Any help will
be greatly appreciated, also I can provide you with necessary data to
On Mon, Nov 4, 2013 at 9:39 AM, "Andy Green (林安廸)" <andy at warmcat.com> wrote:
> On 31/10/13 15:41, the mail apparently from bjorka adinov included:
> Hello Andy,
>> I managed to compiled and ran test_server sample (from ver. 1.22) using
>> Visual Studio 2008 compiler (My OS is windows 7 home premium). I
>> accessed http://localhost:7681 and it was functioning well, the
>> dumb_increment protocol worked (the counter number was running), and the
>> lws_mirror also working ( I can draw shapes).
>> Unfortunately the application consumed 50% cycle of my CPU (Core 2 Duo
>> 2,5 GHZ). I tried to modify test.html file, make it only serves static
>> few seconds, the cpu cycle will always go to 50%.
> Well libwebsockets should show almost 0% CPU if idle or even just doing
> the dumb increment.
> Please try 1.23 or current git head and see if it's any diffferent.
> No need to modify the test apps, they should show the 0% behaviour or
> something is wrong.
> Any advice will be greatly appreciated
>> Libwebsockets mailing list
>> Libwebsockets at ml.libwebsockets.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets