Re: [Cppcms-users] 100% cpu usage
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-07-31 18:56:26
|
1. how do you trigger the loop? 2. I don't understand why are you using asynchronous application for the WebAPI. You don't do anything asynchronous. More than that calling blocking SQL from event loop is BAD idea. also is there any way to make it with less dependencies so I can build it Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Wednesday, July 31, 2013 9:31 PM >Subject: Re: [Cppcms-users] 100% cpu usage > > > >On 31.07.2013 09:55, Artyom Beilis wrote: > >Guys >> >> >>To try to figure out what happens I really need a test case that reproduces the problem >>to see what happens, or somebody would join the process that uses 100% CPU with a debugger >>and bring some stack trace and see what is the loop that happens there The source code is here: >http://cookiesoft.de/git/?p=spaceio.git > >I still don't have a strace, but I will provide one as soon as I get time. >I know what happens when cppcms gets 100%. >There are 19 threads stuck at thread_pool.cpp in line 114 and always do polling, so they don't wait, the always poll. I think there is some kind of racecondition, but I don't know what kind :/ > >Hope you will fix it. > >------------------------------------------------------------------------------ >Get your SQL database under version control now! >Version control is standard for application code, but databases havent >caught up. So what steps can you take to put your SQL databases under >version control? Why should you start doing it? Read more to find out. >http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |