Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0.1.1
-
Fix Version/s: KC Release 2.0, 1.0.2
-
Component/s: Development
-
Labels:None
-
Similar issues:
KULRICE-12988KC app startup time really slow with the latest rice 2.5 revision KULRICE-9583LightTables are still slow in IE KULRICE-5548KRAD: IE is extremely slow to load pages KULRICE-13070Pages load really slow after rice upgrade KULRICE-3313Look into why unit test runs are taking ~40 minutes longer now. Which changes were impacting? KULRICE-7962IE script taking too long KULRICE-8837CM: Adding groups takes over 10 minutes KULRICE-4037KFS user preference records cause batch slowness due to too many krew_usr_optn_t records in Rice 1.0.1.1 KULRICE-9915Add line client Javascript runs for over a minute KULRICE-10050 DatePicker widgets can take a lot of time to create client-side as more are used on the page, ie collections -
Rice Module:KEW
Description
Our local KC instance was taking a very long time (e.g. > 12 minutes) to save a document. Using a profiler, we determined that appendXml runs for a very long time. Invocations of that method vary widely in performance, but in one instance, appending about 1MB of XML took 415 seconds (~7 minutes).
The original method uses XSLT to append the XML. I rewrote the method to use pure DOM to append the XML. After doing so, operations that used to take mintues now take seconds. Here is the rewritten method:
public static void appendXml(Node parentNode, String xml) throws TransformerException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(false);
try
catch (Exception e)
{ LOG.error("Error when appending XML", e); throw new RuntimeException("Error when appending XML", e); }}
Issue Links
- Trackbacks
-
Analysis of Cynergy 2.0.x Customizations Customization Description Rice 1.0.3 Impact Customization JIRA Resolution JIRA Outcome KIMServiceLocator, KEWServiceLocator, and SpringResourceLoader Customization These classes were customized as part of a patch Chad H....
-
Cynergy 2.0 Customizations KIMServiceLocator, KEWServiceLocator, SpringResourceLoader Rice 1.0.1 versions of KIMServiceLocator,...
For your reference, attaching log file of execution times from the original method calls.
There will be 4 types of logging messages based on the text: