[opencms-dev] Performance Patch for Opencms

Brabenetz, Harald harald.brabenetz at bearingpointconsulting.com
Tue Aug 24 17:20:38 CEST 2010


Hi,

we created a performance-Patch for the Class CmsXmlEntityResolver.java

The CmsXmlEntityResolver clears his cache on every publish event, even if no "schema-definition" where published.
Also the LRU Cache has low dimensions (128 row-File-Content Entries and 64 parsed Schema-Definition Entries for the whole online and offline project).

* We made the following changes:
   1. The Cache will only be cleared on publish-event if a Schema definition (*.xsd or *.dtd) where found in the publish-List.
   2. The LRU-Cache were increased:
      o 1024 entries of row-File-Content (Map m_cacheTemporary)
      o 512 entries of already parsed Schema Defintion Objects (Map m_cacheContentDefinitions)

The Patch is attached (Works at least for OpenCms 7.5.2 and 7.5.3)

With friendly regards,
Harald Brabenetz

INFONOVA GmbH
Sitz: Unterpremst?tten bei Graz
Firmenbuchgericht: Landesgericht f?r ZRS Graz
Firmenbuchnummer: FN 44354b

The information in this email is confidential and may be legally privileged. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Patch_V7_5_2_CmsXmlEntityResolver.patch
Type: application/octet-stream
Size: 3980 bytes
Desc: Patch_V7_5_2_CmsXmlEntityResolver.patch
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100824/cae06ccc/attachment.obj>


More information about the opencms-dev mailing list