Re: Slow page load
Posted by wreeder on Oct 05, 2010; 2:00pm
URL: https://discuss.orbeon.com/Slow-page-load-tp2768407p2956066.html
Erik,
The 2 environments are running on identical WebLogic domains on the same machine. It is likely that the slow server has more activity than the faster server. After more investigation, we found the following:
1. Every reload of this page caused the heap memory to reduce by about 20-30mb. After reloading this page several times, we ran out of heap memory. Do you know why memory is not being garbage collected before the JVM crashes with an out of heap memory exception? We are using WebLogic 11g with the Sun JDK 1.6.0_18 runtime.
2. This page has logic to dynamically add elements to an instance used to display a grid, and from logging, we we a bulk of the time being spent here. We will change our logic to fully prepare the instance in an XPL instead of in the XForm page and hope this improves the performance.
3. This page has 2 dialog boxes, requiring different data than the main page. We will initialize the instances required for the dialogs with an empty template, and will load it on demand when the dialog is loaded first. We hope the initial page load will be quicker with this technique.
I'll let you know how this works for us. If you have any other suggestions of best practices regarding instance manipulation on a XForm page, I'd appreciate your insight.
Thanks,
Bill