cppcms-users Mailing List for CppCMS C++ Web Framework (Page 33)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
| 2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
| 2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
| 2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
| 2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
| 2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
| 2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
| 2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
| 2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
| 2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: Василий Т. <par...@gm...> - 2015-02-04 13:54:57
|
Hello everybody. I want to implement OAuth2 in my first pet web project (i have very superficial knowledge of network/multithreded/event-driven programming). Could you please describe me the best approach to handle a huge amount of requests to perform https requests? Should i use synchronous application (sync curl? or i mised something inside cppcms..) and rely on cppcms::applications_pool, which will take care of everything (?), or make asynchronous application and dig into some kind of libcurl-multi (and invent wheel with requests pool, communicating with cppcms, may be dealing with several event loops or anything else). 2Artyom: Artyom, may you describe the Linicom <http://linicom.co.il/> project's internals (talking about cppcms)? In my case most of user requsts will retrieve data from postgresql server. I would appreciate for any advice. And thanks for the project! Andrey L. |
|
From: Дмитрий В. <ds...@gm...> - 2015-01-31 12:24:49
|
<p dir="ltr">Hi all, just a question, is it exist appropriate vim plugin that support CppCMS template syntax with highlighting and some autocompletion?</p> <p dir="ltr">As i know (from some topic on stackoverflow), CppCMS itself written with vim. May be Artyom has it? Please...</p> <p dir="ltr">Thanx</p> <p dir="ltr">Dmitriy Vostrikov</p> |
|
From: Artyom B. <art...@ya...> - 2015-01-20 13:10:44
|
No, currently there is no support of such a functionality.The local variables are recognized withing <% foreach %> block and <% template %>... It is actually not a bad idea to add some kind of "local" block that would define potential local variables that can be recognized by the templates compiler automatically. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Tolga HOŞGÖR <fas...@gm...> To: cpp...@li... Sent: Monday, January 19, 2015 10:13 PM Subject: Re: [Cppcms-users] Local variables in template By the way, I know I can use <% c++ ... %> by the way but then I have to manually add the escape function. I am asking if there is another, better way of doing it. On Mon Jan 19 2015 at 10:02:11 PM Tolga HOŞGÖR <fas...@gm...> wrote: Hello, First of all thanks for this great project. It works flawlessly and it is well designed. I looked through the documentation but I could not find anything about declaring and using local variables in templates. My exact use case is a boost::optional variable used as: <div style="(<% if (const auto var = object->test()) %>property: <%= *var %>;<% end %>)"></div> where object->test() returns a boost::optional<std::string>. The problem is that inside the if statement, *var is automatically replaced with *content.var. Is there a way to prevent this? What is the correct way of this kind of usage? Thanks. ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Tolga H. <fas...@gm...> - 2015-01-19 20:13:37
|
By the way, I know I can use <% c++ ... %> by the way but then I have to manually add the escape function. I am asking if there is another, better way of doing it. On Mon Jan 19 2015 at 10:02:11 PM Tolga HOŞGÖR <fas...@gm...> wrote: > Hello, > > First of all thanks for this great project. It works flawlessly and it is > well designed. > > I looked through the documentation but I could not find anything about > declaring and using local variables in templates. My exact use case is a > boost::optional variable used as: > > <div style="(<% if (const auto var = object->test()) %>property: <%= *var > %>;<% end %>)"></div> > > > where object->test() returns a boost::optional<std::string>. The problem > is that inside the if statement, *var is automatically replaced with > *content.var. Is there a way to prevent this? What is the correct way of > this kind of usage? > > > Thanks. > |
|
From: Tolga H. <fas...@gm...> - 2015-01-19 20:02:23
|
Hello, First of all thanks for this great project. It works flawlessly and it is well designed. I looked through the documentation but I could not find anything about declaring and using local variables in templates. My exact use case is a boost::optional variable used as: <div style="(<% if (const auto var = object->test()) %>property: <%= *var %>;<% end %>)"></div> where object->test() returns a boost::optional<std::string>. The problem is that inside the if statement, *var is automatically replaced with *content.var. Is there a way to prevent this? What is the correct way of this kind of usage? Thanks. |
|
From: Paolo B. <pao...@gm...> - 2015-01-07 18:42:10
|
Dear list, I think I got the point, in captcha.cpp:46 there must be a font name that it exists. No fallback is done. In my system I executed "fc-match Monospace," and the results was Inconsolata I replaced "helvetica" with "Inconsolata" and cppblog still crashed for the lack of /usr/share/fonts/Type1/n019003l.pfb. This file is part of the gsfonts package, once I also added the package cppblog halts with this error: Failed: No configuration defined That I think is expected since I just executed it from the compilation directory. So, I think the fact that the font name on the captcha.cpp:46 must be exact and that gsfonts must be installed should be added to the documentation. I hope I am fine now, in the case I'll share here. Cheers, Paolo On Wed, Jan 7, 2015 at 6:13 PM, Paolo Bolzoni <pao...@gm...> wrote: > It seems a bug in the captcha... > > % gdb ./cppblog > GNU gdb (GDB) 7.8.1 > [...] > Reading symbols from ./cppblog...done. > (gdb) catch throw > Catchpoint 1 (throw) > (gdb) run > Starting program: /home/paolo/cppblog/pkg/cppblog/usr/bin/cppblog > Catchpoint 1 (exception thrown), 0x00007ffff6da1050 in __cxa_throw () > from /usr/lib/libstdc++.so.6 > (gdb) bt > #0 0x00007ffff6da1050 in __cxa_throw () from /usr/lib/libstdc++.so.6 > #1 0x00007ffff70948e9 in > Magick::throwException(MagickLib::_ExceptionInfo&) () from > /usr/lib/libGraphicsMagick++.so.3 > #2 0x000000000041cc11 in captcha_maker (this=0x68a560 <(anonymous > namespace)::maker_instance>, width_=120, height_=60) at > /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:56 > #3 __static_initialization_and_destruction_0 (__initialize_p=1, > __priority=65535) at > /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:157 > #4 _GLOBAL__sub_I__ZN4apps7captchaC2ERN6cppcms7serviceE () at > /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:177 > #5 0x0000000000474d5d in __libc_csu_init () > #6 0x00007ffff67a8fcf in __libc_start_main () from /usr/lib/libc.so.6 > #7 0x000000000041de62 in _start () > (gdb) k > Kill the program being debugged? (y or n) y > (gdb) q > % > > On Thu, Jan 1, 2015 at 9:14 AM, augustin <aug...@ov...> wrote: >> On Sunday, December 21, 2014 02:36:54 AM Paolo Bolzoni wrote: >>> Sometimes it crashes outright, sometime it needs few seconds. But >>> meanwhile it uses 100% of the CPU, is it expected? What can I try? >> >> It is certainly not expected! >> I have never installed nor used cppblog, so I won't be able to help you much. >> However, the symptom you describe point to some infinite loop. The application >> crashes when it runs out of memory. >> I guess it's up to you to debug the application and report back here, for the >> benefit of other users who might encounter a similar problem. >> >> Good luck, and happy new year! >> >> >> augustin. >> >> >> >> >> -- >> Friends: http://www.reuniting.info/ >> My projects: >> http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ >> http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ >> http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ >> http://www.wechange.org/ http://searching911.info/ >> >> >> >> >> >> >> >> >> >> >> >> >> . |
|
From: Paolo B. <pao...@gm...> - 2015-01-07 17:13:14
|
It seems a bug in the captcha... % gdb ./cppblog GNU gdb (GDB) 7.8.1 [...] Reading symbols from ./cppblog...done. (gdb) catch throw Catchpoint 1 (throw) (gdb) run Starting program: /home/paolo/cppblog/pkg/cppblog/usr/bin/cppblog Catchpoint 1 (exception thrown), 0x00007ffff6da1050 in __cxa_throw () from /usr/lib/libstdc++.so.6 (gdb) bt #0 0x00007ffff6da1050 in __cxa_throw () from /usr/lib/libstdc++.so.6 #1 0x00007ffff70948e9 in Magick::throwException(MagickLib::_ExceptionInfo&) () from /usr/lib/libGraphicsMagick++.so.3 #2 0x000000000041cc11 in captcha_maker (this=0x68a560 <(anonymous namespace)::maker_instance>, width_=120, height_=60) at /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:56 #3 __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:157 #4 _GLOBAL__sub_I__ZN4apps7captchaC2ERN6cppcms7serviceE () at /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:177 #5 0x0000000000474d5d in __libc_csu_init () #6 0x00007ffff67a8fcf in __libc_start_main () from /usr/lib/libc.so.6 #7 0x000000000041de62 in _start () (gdb) k Kill the program being debugged? (y or n) y (gdb) q % On Thu, Jan 1, 2015 at 9:14 AM, augustin <aug...@ov...> wrote: > On Sunday, December 21, 2014 02:36:54 AM Paolo Bolzoni wrote: >> Sometimes it crashes outright, sometime it needs few seconds. But >> meanwhile it uses 100% of the CPU, is it expected? What can I try? > > It is certainly not expected! > I have never installed nor used cppblog, so I won't be able to help you much. > However, the symptom you describe point to some infinite loop. The application > crashes when it runs out of memory. > I guess it's up to you to debug the application and report back here, for the > benefit of other users who might encounter a similar problem. > > Good luck, and happy new year! > > > augustin. > > > > > -- > Friends: http://www.reuniting.info/ > My projects: > http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . |
|
From: augustin <aug...@ov...> - 2015-01-01 08:14:19
|
On Sunday, December 21, 2014 02:36:54 AM Paolo Bolzoni wrote: > Sometimes it crashes outright, sometime it needs few seconds. But > meanwhile it uses 100% of the CPU, is it expected? What can I try? It is certainly not expected! I have never installed nor used cppblog, so I won't be able to help you much. However, the symptom you describe point to some infinite loop. The application crashes when it runs out of memory. I guess it's up to you to debug the application and report back here, for the benefit of other users who might encounter a similar problem. Good luck, and happy new year! augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |
|
From: Paolo B. <pao...@gm...> - 2014-12-20 18:37:00
|
Dear list, I would like to use nginx (but I can switch lighttpd, if it is easier) and cppblog. So I installed cppcms and cppblog. However now I am slightly stuck, cppblog gives two binaries: cppblog ang cppblog_migrate. Since I want to setup a new blog, I guess I need the first. However on execution I get this: % cppblog cppblog: unable to read font `helvetica' @ error/annotate.c/RenderFreetype/1127. cppblog: unable to load module `/usr/lib/ImageMagick-6.9.0//modules-Q16HDRI/coders/ps.la': file not found @ error/module.c/OpenModule/1282. cppblog: no decode delegate for this image format `PS' @ error/constitute.c/ReadImage/501. cppblog: unable to read font `helvetica' @ error/annotate.c/RenderFreetype/1127. cppblog: unable to load module `/usr/lib/ImageMagick-6.9.0//modules-Q16HDRI/coders/ps.la': file not found @ error/module.c/OpenModule/1282. cppblog: no decode delegate for this image format `PS' @ error/constitute.c/ReadImage/501. terminate called after throwing an instance of 'Magick::ErrorDraw' what(): cppblog: non-conforming drawing primitive definition `text' @ error/draw.c/DrawImage/3182 [1] 13126 abort (core dumped) cppblog % Sometimes it crashes outright, sometime it needs few seconds. But meanwhile it uses 100% of the CPU, is it expected? What can I try? I tried installing the whole google fonts group[1], but it does not help... Yours faithfully, Paolo [1] https://www.google.com/fonts |
|
From: Sergey <ser...@gm...> - 2014-12-20 08:21:41
|
Nhân Lê Đức <nhanava@...> writes: > > > Hi Sergey, > Thank you for your correction, actually I mean /? > My question is we need to remember add this to all dispatch commands and no implicit way, is it true? > Basically you need to know regex. |
|
From: Nhân Lê Đ. <nh...@gm...> - 2014-12-20 07:09:40
|
Hi Sergey, Thank you for your correction, actually I mean /? My question is we need to remember add this to all dispatch commands and no implicit way, is it true? |
|
From: Sergey <ser...@gm...> - 2014-12-20 03:08:42
|
You forgot last slash with "?"
example:
dispatcher().assign("/number/(\\d+)/?",&page::number,this,1);
mapper().assign("number", "/number/{1}");
/number/(\\d+) - /number/1 found, /number/1/ not found
/number/(\\d+)/? - /number/1 found, /number/1/ found :)
|
|
From: Nhân Lê Đ. <nh...@gm...> - 2014-12-19 16:33:03
|
Hi, Seem CppCMS not support both slash and without slash automatically. For example: localhost/number/1 => work localhost/number/1/ => not found What is the best solution to deal with this problem? I am currently add */ regex to all patterns. |
|
From: Nhân Lê Đ. <nh...@gm...> - 2014-12-19 13:22:41
|
Hi, Seem CppCMS not support both slash and without slash automatically. For example: localhost/number/1 => work localhost/number/1/ => not found What is the best solution to deal with this problem? I am currently add */ regex to all patterns. |
|
From: Nhân Lê Đ. <nh...@gm...> - 2014-12-19 13:16:31
|
To build CppCMS on Windows, first need to download third party libs: pcre and zlib. http://gnuwin32.sourceforge.net/packages/pcre.htm http://gnuwin32.sourceforge.net/packages/zlib.htm Note: download developer files. Open console via "VS2013 x86 Native Tools Command Prompt", not the default cmd. Set following environment variables: set PATH=d:\workpj\cppcms\vendor\pcre\lib;%PATH% set PATH=d:\workpj\cppcms\cppcms-1.0.4\build\booster;%PATH% cd to cppcms source code, create new folder named "build" and cd to it. Run cmake to generate *nmake* project files: cmake -G "NMake Makefiles" -DCMAKE_INCLUDE_PATH=d:\workpj\cppcms\vendor\pcre\include;d:\workpj\cppcms\vendor\zlib\include -DCMAKE_LIBRARY_PATH=d:\workpj\cppcms\vendor\pcre\lib;d:\workpj\cppcms\vendor\zlib\lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=d:\workpj\cppcms\svn\framework\trunk .. Build project by running nmake Above are my installed paths, you need to modify for your usage. |
|
From: mm <mar...@gm...> - 2014-12-02 11:10:13
|
Erasmo Aguilera <eaguilerai@...> writes: > > > Hello Tamás, > > In order to avoid compilation and linkage problems, you need to build all dependencies with the same compiler you are going to build the intended source code. I tried to build CppCMS with Visual C++, but I could not link to PCRE because apparently it does not build correctly with Visual C++. That is why I decided to use MinGW. In fact, I built CppCMS with MinGW-w64 successfully. > > As for your UI question, I recommend you to use a Web UI Framework like Bootstrap or Metro UI CSS. You can also use jQuery UI. > > Hope it helps. > > Erasmo. > > De: Tamas Fekete [mailto:fek...@ou...] Enviado el: martes, 19 de agosto de 2014 09:40 a.m.Para: cpp...@li...: [Cppcms-users] build on Win 8 with MS VC 2013 using cmake > > Hello,I did a research in the old letters and I found nothing to my problem. > > I have Win 8.1 and MS CV 2013 express. > I installed the mandatory dependencies (only them). > I also installed the CMAKE. > > I run the CMAKE GUI and press configure and I get lots of red lines. Did someone try to install on similar way like mine?(and an additional question: I also want very good design/UI to my web service. Does this framework support it? or should I search after other C++ lib like Wt? Which is a better if I want complex UI/desing?)Thanks, Tamás > > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ Hi, i'm trying to build cppcms on Windows but i can't get it. It's turning very hard. Does anybody have a compiled version for windows? Thanks a lot, regards! |
|
From: augustin <aug...@ov...> - 2014-12-01 09:25:27
|
On Friday, November 14, 2014 04:29:07 AM Artyom Beilis wrote: > Hello, > You had probably noticed that during last year CppCMS experienced quite a > lower development activity. I was busy with a customer'ssystem based on > CppCMS. Of course a project that brings income had higher priority... > Now the team had expended and I'll have much more time to spend on the > development of the core CppCMS. I posted a blog post about it, > see: http://blog.cppcms.com/post/114 Now you'll find there some details > about high performance system that was built on CppCMS base and > runssmoothly under VERY high loads in production environment for quite a > long period, serving almostall major news sites here in Israel and many > other sites abroad. It just gives you a hint of what CppCMS based system > is capable of doing. Artyom Beilis Hi Artyom, Thank you for keeping us posted on your progress. I am glad that you found some customers. Thanks for posting the performance feedback on your blog. Keep going! Best of luck, augustin. . |
|
From: Artyom B. <art...@ya...> - 2014-11-20 16:45:46
|
BTW I would strongly recommend uploading files using multipart/form-data encoding. (Curl supports it well).This way you can upload quite huge files and save them directly to files rather than keeping them in memory, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: Artyom Beilis <art...@ya...>; cpp...@li... Sent: Thursday, November 20, 2014 6:14 PM Subject: Re: [Cppcms-users] Idle time in handling post requests Thank you very much, Artyom. Now it is fast. It remains to do the same within our C++ client with libcurl. But know I know what I have to look for. Best Wishes, Peter Am 20.11.2014 um 16:54 schrieb Artyom Beilis: Add "-0" to curl option - to disable HTTP/1.1 Expect: 100 continue by switching to HTTP/1.0 Even big web servers by default do not enable it (lighttpd for example) and internal cppcms web server is simple HTTP/1.0 web server. What happens is that curl does not send the data... but rather waits... Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: Artyom Beilis <art...@ya...>; cpp...@li... Sent: Thursday, November 20, 2014 5:02 PM Subject: Re: [Cppcms-users] Idle time in handling post requests Thank you Artyom for you quick reply. The answers to your questions are below. I really appreciate your help. Best Regards, Peter Am 20.11.2014 um 15:02 schrieb Artyom Beilis: Hi, - What CppCMS version are you working with? 1.0.4 (#define CPPCMS_PACKAGE_STRING "CppCMS/1.0.4") - How do you POST the XML data: multipart/form-data or urlencoded? #!/bin/tcsh foreach f ( `ls xml-data/*.xml` ) curl -X POST http://localhost:8889 -Hcontent-type:application/xml -d @$f # cppcms end the files are copied from boost: cp `find .../boost_1_53_0 -name "*.xml" -size +8k -size -10k` ../curl/xml-data/ - Do you use an external web server or internal cppcms web server? localhost, see also config - Can you show the full code/configuration? Sure. Attached. I tried a synchronous and an asynchronous request handler but the performance was the same. Measuring the "client user time" is useless you need to see what happens on the server side. Now that you mention that... Never mind. Small notes: - since 1.0.5 there was a significant fix in upload times of multipart/form-data but what you show (10 s) it does not look like the case Well, then I will try a newer version. Just in case. - When uploading files starting from some size the files go to disk rather than to the memory: http://cppcms.com/wikipp/en/page/cppcms_1x_config#security.file_in_memory_limit However the default limit is around 128k... so does not look like your case. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: CppCMS mailing list <cpp...@li...> Sent: Thursday, November 20, 2014 3:13 PM Subject: [Cppcms-users] Idle time in handling post requests Hi, We are using a CppCMS server and its performance is very low for post requests when the post messages reach a certain size of some kB. This already happens with minimal server examples from the beginners tutorial. The weird thing is that the server spends only 6 milliseconds in the main function (in total) but one or two seconds between two calls. - What is CppCMS doing in this time? - And more importantly, how can this time be shortened? - Is it an issue of the thread pool? - Is there some expensive treatment for the post messages? (I read something about compression) Can it be turned off or accelerated? Post requests with small data did not show these idle phases. 9 post requests with XML files between 8 and 10kB took 10 seconds wall clock time without even treating the requests. The user time was only 45ms. The same post requests take less than half a second with a similarly minimalistic node.js server. I tried different configurations and read a lot of dox and posts put couldn't find something that explains these long idle times. Any help is welcome. I can send the code and the configurations if this helps. Thank you in advance, Peter --- curl> time post_xml_files.sh Hello from CppCMS after 0.000135s Hello from CppCMS after 0.00111s Hello from CppCMS after 0.001995s Hello from CppCMS after 0.002756s Hello from CppCMS after 0.00354s Hello from CppCMS after 0.004228s Hello from CppCMS after 0.004865s Hello from CppCMS after 0.005481s Hello from CppCMS after 0.006174s real 0m10.154s user 0m0.046s sys 0m0.064s ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Artyom B. <art...@ya...> - 2014-11-20 16:45:22
|
BTW I would strongly recommend uploading files using multipart/form-data encoding. (Curl supports it well).This way you can upload quite huge files and save them directly to files rather than keeping them in memory, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: Artyom Beilis <art...@ya...>; cpp...@li... Sent: Thursday, November 20, 2014 6:14 PM Subject: Re: [Cppcms-users] Idle time in handling post requests Thank you very much, Artyom. Now it is fast. It remains to do the same within our C++ client with libcurl. But know I know what I have to look for. Best Wishes, Peter Am 20.11.2014 um 16:54 schrieb Artyom Beilis: Add "-0" to curl option - to disable HTTP/1.1 Expect: 100 continue by switching to HTTP/1.0 Even big web servers by default do not enable it (lighttpd for example) and internal cppcms web server is simple HTTP/1.0 web server. What happens is that curl does not send the data... but rather waits... Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: Artyom Beilis <art...@ya...>; cpp...@li... Sent: Thursday, November 20, 2014 5:02 PM Subject: Re: [Cppcms-users] Idle time in handling post requests Thank you Artyom for you quick reply. The answers to your questions are below. I really appreciate your help. Best Regards, Peter Am 20.11.2014 um 15:02 schrieb Artyom Beilis: Hi, - What CppCMS version are you working with? 1.0.4 (#define CPPCMS_PACKAGE_STRING "CppCMS/1.0.4") - How do you POST the XML data: multipart/form-data or urlencoded? #!/bin/tcsh foreach f ( `ls xml-data/*.xml` ) curl -X POST http://localhost:8889 -Hcontent-type:application/xml -d @$f # cppcms end the files are copied from boost: cp `find .../boost_1_53_0 -name "*.xml" -size +8k -size -10k` ../curl/xml-data/ - Do you use an external web server or internal cppcms web server? localhost, see also config - Can you show the full code/configuration? Sure. Attached. I tried a synchronous and an asynchronous request handler but the performance was the same. Measuring the "client user time" is useless you need to see what happens on the server side. Now that you mention that... Never mind. Small notes: - since 1.0.5 there was a significant fix in upload times of multipart/form-data but what you show (10 s) it does not look like the case Well, then I will try a newer version. Just in case. - When uploading files starting from some size the files go to disk rather than to the memory: http://cppcms.com/wikipp/en/page/cppcms_1x_config#security.file_in_memory_limit However the default limit is around 128k... so does not look like your case. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: CppCMS mailing list <cpp...@li...> Sent: Thursday, November 20, 2014 3:13 PM Subject: [Cppcms-users] Idle time in handling post requests Hi, We are using a CppCMS server and its performance is very low for post requests when the post messages reach a certain size of some kB. This already happens with minimal server examples from the beginners tutorial. The weird thing is that the server spends only 6 milliseconds in the main function (in total) but one or two seconds between two calls. - What is CppCMS doing in this time? - And more importantly, how can this time be shortened? - Is it an issue of the thread pool? - Is there some expensive treatment for the post messages? (I read something about compression) Can it be turned off or accelerated? Post requests with small data did not show these idle phases. 9 post requests with XML files between 8 and 10kB took 10 seconds wall clock time without even treating the requests. The user time was only 45ms. The same post requests take less than half a second with a similarly minimalistic node.js server. I tried different configurations and read a lot of dox and posts put couldn't find something that explains these long idle times. Any help is welcome. I can send the code and the configurations if this helps. Thank you in advance, Peter --- curl> time post_xml_files.sh Hello from CppCMS after 0.000135s Hello from CppCMS after 0.00111s Hello from CppCMS after 0.001995s Hello from CppCMS after 0.002756s Hello from CppCMS after 0.00354s Hello from CppCMS after 0.004228s Hello from CppCMS after 0.004865s Hello from CppCMS after 0.005481s Hello from CppCMS after 0.006174s real 0m10.154s user 0m0.046s sys 0m0.064s ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Artyom B. <art...@ya...> - 2014-11-20 15:57:30
|
Add "-0" to curl option - to disable HTTP/1.1 Expect: 100 continue by switching to HTTP/1.0 Even big web servers by default do not enable it (lighttpd for example) and internal cppcms web server is simple HTTP/1.0 web server. What happens is that curl does not send the data... but rather waits... Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: Artyom Beilis <art...@ya...>; cpp...@li... Sent: Thursday, November 20, 2014 5:02 PM Subject: Re: [Cppcms-users] Idle time in handling post requests Thank you Artyom for you quick reply. The answers to your questions are below. I really appreciate your help. Best Regards, Peter Am 20.11.2014 um 15:02 schrieb Artyom Beilis: Hi, - What CppCMS version are you working with? 1.0.4 (#define CPPCMS_PACKAGE_STRING "CppCMS/1.0.4") - How do you POST the XML data: multipart/form-data or urlencoded? #!/bin/tcsh foreach f ( `ls xml-data/*.xml` ) curl -X POST http://localhost:8889 -Hcontent-type:application/xml -d @$f # cppcms end the files are copied from boost: cp `find .../boost_1_53_0 -name "*.xml" -size +8k -size -10k` ../curl/xml-data/ - Do you use an external web server or internal cppcms web server? localhost, see also config - Can you show the full code/configuration? Sure. Attached. I tried a synchronous and an asynchronous request handler but the performance was the same. Measuring the "client user time" is useless you need to see what happens on the server side. Now that you mention that... Never mind. Small notes: - since 1.0.5 there was a significant fix in upload times of multipart/form-data but what you show (10 s) it does not look like the case Well, then I will try a newer version. Just in case. - When uploading files starting from some size the files go to disk rather than to the memory: http://cppcms.com/wikipp/en/page/cppcms_1x_config#security.file_in_memory_limit However the default limit is around 128k... so does not look like your case. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: CppCMS mailing list <cpp...@li...> Sent: Thursday, November 20, 2014 3:13 PM Subject: [Cppcms-users] Idle time in handling post requests Hi, We are using a CppCMS server and its performance is very low for post requests when the post messages reach a certain size of some kB. This already happens with minimal server examples from the beginners tutorial. The weird thing is that the server spends only 6 milliseconds in the main function (in total) but one or two seconds between two calls. - What is CppCMS doing in this time? - And more importantly, how can this time be shortened? - Is it an issue of the thread pool? - Is there some expensive treatment for the post messages? (I read something about compression) Can it be turned off or accelerated? Post requests with small data did not show these idle phases. 9 post requests with XML files between 8 and 10kB took 10 seconds wall clock time without even treating the requests. The user time was only 45ms. The same post requests take less than half a second with a similarly minimalistic node.js server. I tried different configurations and read a lot of dox and posts put couldn't find something that explains these long idle times. Any help is welcome. I can send the code and the configurations if this helps. Thank you in advance, Peter --- curl> time post_xml_files.sh Hello from CppCMS after 0.000135s Hello from CppCMS after 0.00111s Hello from CppCMS after 0.001995s Hello from CppCMS after 0.002756s Hello from CppCMS after 0.00354s Hello from CppCMS after 0.004228s Hello from CppCMS after 0.004865s Hello from CppCMS after 0.005481s Hello from CppCMS after 0.006174s real 0m10.154s user 0m0.046s sys 0m0.064s ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Dr. P. G. <pet...@si...> - 2014-11-20 15:02:33
|
Thank you Artyom for you quick reply.
The answers to your questions are below. I really appreciate your help.
Best Regards,
Peter
Am 20.11.2014 um 15:02 schrieb Artyom Beilis:
> Hi,
>
> - What CppCMS version are you working with?
1.0.4 (#define CPPCMS_PACKAGE_STRING "CppCMS/1.0.4")
> - How do you POST the XML data: multipart/form-data or urlencoded?
#!/bin/tcsh
foreach f ( `ls xml-data/*.xml` )
curl -X POST http://localhost:8889 -Hcontent-type:application/xml
-d @$f # cppcms
end
the files are copied from boost: cp `find .../boost_1_53_0 -name "*.xml"
-size +8k -size -10k` ../curl/xml-data/
> - Do you use an external web server or internal cppcms web server?
localhost, see also config
> - Can you show the full code/configuration?
Sure. Attached. I tried a synchronous and an asynchronous request
handler but the performance was the same.
>
> Measuring the "client user time" is useless you need to see what
> happens on the server side.
Now that you mention that... Never mind.
>
> Small notes:
> - since *1.0.5* there was a significant fix in upload times of
> multipart/form-data but what you show (10 s) it does not look like
> the case
Well, then I will try a newer version. Just in case.
> - When uploading files starting from some size the files go to disk
> rather than to the memory:
> http://cppcms.com/wikipp/en/page/cppcms_1x_config#security.file_in_memory_limit
> However the default limit is around 128k... so does not look like your
> case.
>
> Artyom Beilis
> --------------
> CppCMS - C++ Web Framework: http://cppcms.com/
> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>
> ------------------------------------------------------------------------
> *From:* Dr. Peter Gottschling <pet...@si...>
> *To:* CppCMS mailing list <cpp...@li...>
> *Sent:* Thursday, November 20, 2014 3:13 PM
> *Subject:* [Cppcms-users] Idle time in handling post requests
>
> Hi,
>
> We are using a CppCMS server and its performance is very low for
> post requests when the post messages reach a certain size of some
> kB. This already happens with minimal server examples from the
> beginners tutorial.
> The weird thing is that the server spends only 6 milliseconds in
> the main function (in total) but one or two seconds between two
> calls.
>
> 1. What is CppCMS doing in this time?
> 2. And more importantly, how can this time be shortened?
> 3. Is it an issue of the thread pool?
> 4. Is there some expensive treatment for the post messages? (I
> read something about compression) Can it be turned off or
> accelerated? Post requests with small data did not show these
> idle phases.
>
> 9 post requests with XML files between 8 and 10kB took 10 seconds
> wall clock time without even treating the requests. The user time
> was only 45ms.
> The same post requests take less than half a second with a
> similarly minimalistic node.js server. I tried different
> configurations and read a lot of dox and posts put couldn't find
> something that explains these long idle times. Any help is
> welcome. I can send the code and the configurations if this helps.
> Thank you in advance,
> Peter
> ---
> curl> time post_xml_files.sh
> Hello from CppCMS after 0.000135s
> Hello from CppCMS after 0.00111s
> Hello from CppCMS after 0.001995s
> Hello from CppCMS after 0.002756s
> Hello from CppCMS after 0.00354s
> Hello from CppCMS after 0.004228s
> Hello from CppCMS after 0.004865s
> Hello from CppCMS after 0.005481s
> Hello from CppCMS after 0.006174s
>
> real 0m10.154s
> user 0m0.046s
> sys 0m0.064s
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration
> & more
> Get technology previously reserved for billion-dollar
> corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> <mailto:Cpp...@li...>
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
|
|
From: Artyom B. <art...@ya...> - 2014-11-20 14:02:56
|
Hi, - What CppCMS version are you working with? - How do you POST the XML data: multipart/form-data or urlencoded? - Do you use an external web server or internal cppcms web server?- Can you show the full code/configuration? Measuring the "client user time" is useless you need to see what happens on the server side. Small notes:- since 1.0.5 there was a significant fix in upload times of multipart/form-data but what you show (10 s) it does not look like the case- When uploading files starting from some size the files go to disk rather than to the memory:http://cppcms.com/wikipp/en/page/cppcms_1x_config#security.file_in_memory_limit However the default limit is around 128k... so does not look like your case. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Dr. Peter Gottschling <pet...@si...> To: CppCMS mailing list <cpp...@li...> Sent: Thursday, November 20, 2014 3:13 PM Subject: [Cppcms-users] Idle time in handling post requests Hi, We are using a CppCMS server and its performance is very low for post requests when the post messages reach a certain size of some kB. This already happens with minimal server examples from the beginners tutorial. The weird thing is that the server spends only 6 milliseconds in the main function (in total) but one or two seconds between two calls. - What is CppCMS doing in this time? - And more importantly, how can this time be shortened? - Is it an issue of the thread pool? - Is there some expensive treatment for the post messages? (I read something about compression) Can it be turned off or accelerated? Post requests with small data did not show these idle phases. 9 post requests with XML files between 8 and 10kB took 10 seconds wall clock time without even treating the requests. The user time was only 45ms. The same post requests take less than half a second with a similarly minimalistic node.js server. I tried different configurations and read a lot of dox and posts put couldn't find something that explains these long idle times. Any help is welcome. I can send the code and the configurations if this helps. Thank you in advance, Peter --- curl> time post_xml_files.sh Hello from CppCMS after 0.000135s Hello from CppCMS after 0.00111s Hello from CppCMS after 0.001995s Hello from CppCMS after 0.002756s Hello from CppCMS after 0.00354s Hello from CppCMS after 0.004228s Hello from CppCMS after 0.004865s Hello from CppCMS after 0.005481s Hello from CppCMS after 0.006174s real 0m10.154s user 0m0.046s sys 0m0.064s ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Dr. P. G. <pet...@si...> - 2014-11-20 13:26:55
|
Hi,
We are using a CppCMS server and its performance is very low for post
requests when the post messages reach a certain size of some kB. This
already happens with minimal server examples from the beginners tutorial.
The weird thing is that the server spends only 6 milliseconds in the
main function (in total) but one or two seconds between two calls.
1. What is CppCMS doing in this time?
2. And more importantly, how can this time be shortened?
3. Is it an issue of the thread pool?
4. Is there some expensive treatment for the post messages? (I read
something about compression) Can it be turned off or accelerated?
Post requests with small data did not show these idle phases.
9 post requests with XML files between 8 and 10kB took 10 seconds wall
clock time without even treating the requests. The user time was only 45ms.
The same post requests take less than half a second with a similarly
minimalistic node.js server. I tried different configurations and read a
lot of dox and posts put couldn't find something that explains these
long idle times. Any help is welcome. I can send the code and the
configurations if this helps.
Thank you in advance,
Peter
---
curl> time post_xml_files.sh
Hello from CppCMS after 0.000135s
Hello from CppCMS after 0.00111s
Hello from CppCMS after 0.001995s
Hello from CppCMS after 0.002756s
Hello from CppCMS after 0.00354s
Hello from CppCMS after 0.004228s
Hello from CppCMS after 0.004865s
Hello from CppCMS after 0.005481s
Hello from CppCMS after 0.006174s
real 0m10.154s
user 0m0.046s
sys 0m0.064s
|
|
From: Artyom B. <art...@ya...> - 2014-11-13 20:29:15
|
Hello, You had probably noticed that during last year CppCMS experienced quite a lower development activity. I was busy with a customer'ssystem based on CppCMS. Of course a project that brings income had higher priority... Now the team had expended and I'll have much more time to spend on the development of the core CppCMS. I posted a blog post about it, see: http://blog.cppcms.com/post/114 Now you'll find there some details about high performance system that was built on CppCMS base and runssmoothly under VERY high loads in production environment for quite a long period, serving almostall major news sites here in Israel and many other sites abroad. It just gives you a hint of what CppCMS based system is capable of doing. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
|
From: Artyom B. <art...@ya...> - 2014-11-09 07:40:14
|
No it does not work like this. Also adding it is possible it would be quite sub-optimal as forexample the search for "foo.bar.baz" does virtually without any parsing or memory allocation.
So if get "foo.bar[5].baz" you'll need to first format a string with a number and let the json::value::get parse the number.
It is better to use:
at("foo.bar")[5].get("baz")
In your case:
at("path.some_array")[2][2].at("deeply_nested")[0].get("foo",...)
This would actually be efficient.
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
From: miniME <min...@go...>
To: cpp...@li...
Sent: Saturday, November 8, 2014 11:50 PM
Subject: [Cppcms-users] access JSON array through path
Hey,
is it possible to specify the path to a specific array value?
(see the "cppcms::json::value::get" method)
consider the following JSON:
{
"path": {
"some_array": [
"val1",
"val2",
[
"nested_array1_val1",
"nested_array1_val2",
{
"deeply_nested" : [
"foo"
]
}
]
]
}
}
I would expect to use the path including array values as following:
"path.some_array[0]" --> "val1"
"path.some_array[1]" --> "val2"
"path.some_array[2]" --> array
even nested:
"path.some_array[2][1]" --> "nested_array1_val2"
"path.some_array[2][2].deeply_nested[0]" --> "foo"
It is not documented and doesn't work like this. Is there some easy way to achive this?
------------------------------------------------------------------------------
_______________________________________________
Cppcms-users mailing list
Cpp...@li...
https://lists.sourceforge.net/lists/listinfo/cppcms-users
|