I'm running into this odd scenario where my instance definitions causes
the page to load/display very slowly. It doesn't happen each time the XForms page is loaded, but it does occur at times. The source document XML is about 300kb in size. After putting in my own debug statements in the Orbeon source, I found the time is being spent in XFormsURIResolver#resolve(String,String,String,String,String) method. I've tested the the response time of my page, and even added debug statements to see when the request was being made. From this, I was able to rule out the delaysfrom my side (average response times for returning of my XML documents was less than a second). I guess I'm curious as to what would be causing this, and what, if anything, I can do to prevent these delays from happening. I'm attaching my log file so that you can see the how the 1st request made to my page (studydef.jsf) took 399 millis, and then the 2nd request took 19271 millis. The XFormsURIResolver debug statements were what I was using to determine what was taking up the time in the XFormsURIResolver#readURLAsDocumentInfo method. Environment: Tomcat: 6.0.20 Java: 1.6.0_20 Orbeon: I'm using a custom build from nightly source (2010-06-25). Instance Definitions: <xforms:instance id="study-def" src="{$baseUrl}/{$studyDefUrl}" /> <xforms:instance id="template-instance" src="{$baseUrl}/{$studyDefTemplateUrl}" /> -- ------------------------------------------------------------------------ Jeremy Nix Senior Application Developer Cincinnati Children's Hospital Medical Center -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws orbeon.log (165K) Download Attachment |
I'm doing more debugging today and I'm beginning to think that the delay
is being caused within eXist somewhere, but I'm not completely positive. Attached is another log output that contains debug statements of a single call to my JSF page that writes an XML file to the output stream. This XML is used within the XForms XHTML as instance data (instance src="mypage.jsf"). The XML size is the same as before, ~300kb. I've tried tweaking settings in the exist-conf.xml, setting cacheSize to 128M, nodesBuffer to 1000, and setting the lucene-index buffer to 64. None of these changes has improved the delays. I did notice the bump of the cacheSize made page transitions (xform to xform) faster when this odd delay situation did not occur. But, when it does occur, it tends to cause a delay of 17-20 seconds. Has anyone else run into this kind of scenario? ------------------------------------------------------------------------ Jeremy Nix Senior Application Developer Cincinnati Children's Hospital Medical Center On 06/29/2010 12:47 PM, Jeremy Nix wrote: > I'm running into this odd scenario where my instance definitions > causes the page to load/display very slowly. It doesn't happen each > time the XForms page is loaded, but it does occur at times. The > source document XML is about 300kb in size. After putting in my own > debug statements in the Orbeon source, I found the time is being spent > in XFormsURIResolver#resolve(String,String,String,String,String) > method. I've tested the the response time of my page, and even added > debug statements to see when the request was being made. From this, I > was able to rule out the delaysfrom my side (average response times > for returning of my XML documents was less than a second). I guess > I'm curious as to what would be causing this, and what, if anything, I > can do to prevent these delays from happening. I'm attaching my log > file so that you can see the how the 1st request made to my page > (studydef.jsf) took 399 millis, and then the 2nd request took 19271 > millis. The XFormsURIResolver debug statements were what I was using > to determine what was taking up the time in the > XFormsURIResolver#readURLAsDocumentInfo method. > > Environment: > Tomcat: 6.0.20 > Java: 1.6.0_20 > Orbeon: I'm using a custom build from nightly source (2010-06-25). > > Instance Definitions: > <xforms:instance id="study-def" src="{$baseUrl}/{$studyDefUrl}" /> > <xforms:instance id="template-instance" > src="{$baseUrl}/{$studyDefTemplateUrl}" /> > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws orbeout_output.log (16K) Download Attachment |
Administrator
|
Jeremy,
I would check in the eXist logs when that request to load http://localhost:7070/i2b2web/dataentry/xformsinc/studydef.jsf came in. Are those 19 seconds all spent in eXist? Is they are, maybe you'll find more information in the eXist log about what is going on. If you can run this locally, I would also try using HTTPScoop or WireShark to monitor that HTTP connection between Orbeon Forms and eXist. Alex On Wednesday, June 30, 2010, Jeremy Nix <[hidden email]> wrote: > I'm doing more debugging today and I'm beginning to think that the delay is being caused within eXist somewhere, but I'm not completely positive. Attached is another log output that contains debug statements of a single call to my JSF page that writes an XML file to the output stream. This XML is used within the XForms XHTML as instance data (instance src="mypage.jsf"). The XML size is the same as before, ~300kb. I've tried tweaking settings in the exist-conf.xml, setting cacheSize to 128M, nodesBuffer to 1000, and setting the lucene-index buffer to 64. None of these changes has improved the delays. I did notice the bump of the cacheSize made page transitions (xform to xform) faster when this odd delay situation did not occur. But, when it does occur, it tends to cause a delay of 17-20 seconds. > > Has anyone else run into this kind of scenario? > > ------------------------------------------------------------------------ > Jeremy Nix > Senior Application Developer > Cincinnati Children's Hospital Medical Center > > On 06/29/2010 12:47 PM, Jeremy Nix wrote: > > I'm running into this odd scenario where my instance definitions causes the page to load/display very slowly. It doesn't happen each time the XForms page is loaded, but it does occur at times. The source document XML is about 300kb in size. After putting in my own debug statements in the Orbeon source, I found the time is being spent in XFormsURIResolver#resolve(String,String,String,String,String) method. I've tested the the response time of my page, and even added debug statements to see when the request was being made. From this, I was able to rule out the delaysfrom my side (average response times for returning of my XML documents was less than a second). I guess I'm curious as to what would be causing this, and what, if anything, I can do to prevent these delays from happening. I'm attaching my log file so that you can see the how the 1st request made to my page (studydef.jsf) took 399 millis, and then the 2nd request took 19271 millis. The XFormsURIResolver debug statements were what I was using to determine what was taking up the time in the XFormsURIResolver#readURLAsDocumentInfo method. > > Environment: > Tomcat: 6.0.20 > Java: 1.6.0_20 > Orbeon: I'm using a custom build from nightly source (2010-06-25). > > Instance Definitions: > <xforms:instance id="study-def" src="{$baseUrl}/{$studyDefUrl}" /> > <xforms:instance id="template-instance" src="{$baseUrl}/{$studyDefTemplateUrl}" /> > > > Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |