basexhttp server serving html document?
Sunday, 11 December 2011 · 2 messages
CG
Hi Erol,
as our web services are very light-weight and optimized for
performance, I wouldn't expect any noteworthy problems at this point. Instead, you may encounter any bottlenecks in the http server itself (Jetty, Tomcat) or the BaseX core. All I can recommend here: just do some basic stress tests that will simulate your expected worst cases.
Hope this helps,
Christian
Quoted text · Erol Akarsu · 119 lines
On Sun, Dec 11, 2011 at 2:33 AM, Erol Akarsu <eakarsu at gmail.com> wrote: > Christian, > > I would like to know the scalability and performance of basex if we used it > as Web server serving HTML documents for web clients. Think about we would > be using basexhttp server. > Have we done any load testing for multiple concurrent users on basexhttp > server? Do we have any performance metrics available to share with me? > > Best Regards > > Erol Akarsu > > On Sat, Dec 10, 2011 at 6:16 PM, Erol Akarsu <eakarsu at gmail.com> wrote: >> >> Christian, >> >> Nothing wrong on Basex side. >> >> It was my error no handling one type of input in html page. >> >> Basex works perfectly, >> >> It was first time to use Basex as web scrapping tool. It did indeed very >> nicely and perfectly. >> >> Great job of Basex team >> >> Erol Akarsu >> >> >> On Fri, Dec 9, 2011 at 4:55 PM, Christian Grün <christian.gruen at gmail.com> >> wrote: >>> >>> ..wow, I've never managed to do segmentation faults with Java ;) Seems >>> to be an error in your JVM, which will have to be reported to Oracle. >>> >>> How long did you run your script? Did you manage to find the script >>> with the unparsed "µ" ? >>> >>> Christian >>> ___________________________ >>> >>> On Fri, Dec 9, 2011 at 10:37 PM, Erol Akarsu <eakarsu at gmail.com> wrote: >>> > Christian, >>> > >>> > Attached xquery file run gives segmentation fault. You can run it and >>> > see >>> > it: >>> > >>> > eakarsu@ubuntu:~/Neweggdata/scripts$ xquery1 xq5 >>> > /home/eakarsu/basex/bin/xquery1: line 20: 808 Segmentation fault >>> > java >>> > -cp "$CP" $VM org.basex.BaseX "$@" >>> > >>> > Erol Akarsu >>> > >>> > >>> > On Fri, Dec 9, 2011 at 10:55 AM, Christian Grün >>> > <christian.gruen at gmail.com> >>> > wrote: >>> >> >>> >> It's probably an encoding issue. Could you provide us with the >>> >> relevant $url or original file? >>> >> ___________________________ >>> >> >>> >> On Fri, Dec 9, 2011 at 4:24 PM, Erol Akarsu <eakarsu at gmail.com> wrote: >>> >> > Christian, >>> >> > >>> >> > It won't work with latest version of Basex also. >>> >> > >>> >> > Erol Akarsu >>> >> > >>> >> > >>> >> > On Fri, Dec 9, 2011 at 9:52 AM, Christian Grün >>> >> > <christian.gruen at gmail.com> >>> >> > wrote: >>> >> >> >>> >> >> Thanks Erol, >>> >> >> >>> >> >> have you tried the latest version >>> >> >> (http://files.basex.org/releases/latest/)? >>> >> >> >>> >> >> Best, >>> >> >> Christian >>> >> >> ___________________________ >>> >> >> >>> >> >> On Fri, Dec 9, 2011 at 3:49 PM, Erol Akarsu <eakarsu at gmail.com> >>> >> >> wrote: >>> >> >> > >>> >> >> > When I was fetching and parsing some html documents with >>> >> >> > >>> >> >> > let $doc := http:send-request(<http:request method='get' >>> >> >> > href='{$url}'/>) >>> >> >> > >>> >> >> > I am getting an error: >>> >> >> > >>> >> >> > [FOHC0001] An HTTP error occurred: "1323441640568.xml" (Line >>> >> >> > 475): >>> >> >> > Invalid >>> >> >> > character found: 'µ'. >>> >> >> > >>> >> >> > It seems base is not able to handle special chracter 'µ'. >>> >> >> > >>> >> >> > >>> >> >> > Erol Akarsu >>> >> >> > >>> >> >> > _______________________________________________ >>> >> >> > BaseX-Talk mailing list >>> >> >> > BaseX-Talk at mailman.uni-konstanz.de >>> >> >> > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >> >> > >>> >> > >>> >> > >>> > >>> > >> >> >
EA
Erol Akarsu11 Dec 2011 03:33 #
Christian,
I would like to know the scalability and performance of basex if we used it as Web server serving HTML documents for web clients. Think about we would be using basexhttp server.
Have we done any load testing for multiple concurrent users on basexhttp server? Do we have any performance metrics available to share with me?
Best Regards
Erol Akarsu
Quoted text · Erol Akarsu · 103 lines
On Sat, Dec 10, 2011 at 6:16 PM, Erol Akarsu <eakarsu at gmail.com> wrote: > Christian, > > Nothing wrong on Basex side. > > It was my error no handling one type of input in html page. > > Basex works perfectly, > > It was first time to use Basex as web scrapping tool. It did indeed very > nicely and perfectly. > > Great job of Basex team > > Erol Akarsu > > > On Fri, Dec 9, 2011 at 4:55 PM, Christian Grün <christian.gruen at gmail.com>wrote: > >> ..wow, I've never managed to do segmentation faults with Java ;) Seems >> to be an error in your JVM, which will have to be reported to Oracle. >> >> How long did you run your script? Did you manage to find the script >> with the unparsed "µ" ? >> >> Christian >> ___________________________ >> >> On Fri, Dec 9, 2011 at 10:37 PM, Erol Akarsu <eakarsu at gmail.com> wrote: >> > Christian, >> > >> > Attached xquery file run gives segmentation fault. You can run it and >> see >> > it: >> > >> > eakarsu@ubuntu:~/Neweggdata/scripts$ xquery1 xq5 >> > /home/eakarsu/basex/bin/xquery1: line 20: 808 Segmentation fault >> java >> > -cp "$CP" $VM org.basex.BaseX "$@" >> > >> > Erol Akarsu >> > >> > >> > On Fri, Dec 9, 2011 at 10:55 AM, Christian Grün < >> christian.gruen at gmail.com> >> > wrote: >> >> >> >> It's probably an encoding issue. Could you provide us with the >> >> relevant $url or original file? >> >> ___________________________ >> >> >> >> On Fri, Dec 9, 2011 at 4:24 PM, Erol Akarsu <eakarsu at gmail.com> wrote: >> >> > Christian, >> >> > >> >> > It won't work with latest version of Basex also. >> >> > >> >> > Erol Akarsu >> >> > >> >> > >> >> > On Fri, Dec 9, 2011 at 9:52 AM, Christian Grün >> >> > <christian.gruen at gmail.com> >> >> > wrote: >> >> >> >> >> >> Thanks Erol, >> >> >> >> >> >> have you tried the latest version >> >> >> (http://files.basex.org/releases/latest/)? >> >> >> >> >> >> Best, >> >> >> Christian >> >> >> ___________________________ >> >> >> >> >> >> On Fri, Dec 9, 2011 at 3:49 PM, Erol Akarsu <eakarsu at gmail.com> >> wrote: >> >> >> > >> >> >> > When I was fetching and parsing some html documents with >> >> >> > >> >> >> > let $doc := http:send-request(<http:request method='get' >> >> >> > href='{$url}'/>) >> >> >> > >> >> >> > I am getting an error: >> >> >> > >> >> >> > [FOHC0001] An HTTP error occurred: "1323441640568.xml" (Line 475): >> >> >> > Invalid >> >> >> > character found: 'µ'. >> >> >> > >> >> >> > It seems base is not able to handle special chracter 'µ'. >> >> >> > >> >> >> > >> >> >> > Erol Akarsu >> >> >> > >> >> >> > _______________________________________________ >> >> >> > BaseX-Talk mailing list >> >> >> > BaseX-Talk at mailman.uni-konstanz.de >> >> >> > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >> > >> >> > >> >> > >> > >> > >> > >
Written for BaseX 7.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery