Bug 724619 (BRMS-525)

Summary: Importing DRL package takes ages with ModeShape repository compared to Jackrabbit
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Petr Široký <psiroky>
Component: 3rd PartyAssignee: Nobody <nobody>
Status: ASSIGNED --- QA Contact: Lukáš Petrovický <lpetrovi>
Severity: urgent Docs Contact:
Priority: medium    
Version: 5.1.0 GA, BRMS 5.2.0.GACC: atangrin, jlocker
Target Milestone: ---Keywords: Reopened
Target Release: BRMS 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-525
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Modeshape 2.2x r2625 ModeShape 2.5.1 in BRMS-5.2.0.ER1
Last Closed: 2011-05-31 19:52:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
brms-repo-test-jacrabbit-derby.png
none
brms-repo-test-modeshape-config-in-memory.png
none
brms-repo-test-modeshape-default-config-hsql.png
none
modeshape-config.xml
none
modeshape-config-in-memory.xml
none
small_repo.drl none

Description Petr Široký 2011-01-04 10:51:35 UTC
securitylevel_name: Public

When trying to import drl file (see attachment) and ModeShape is used as JCR backend, the import takes too much time. Comparing to JR in some cases it is more than 20 times slower. The bigger the importing content is, the more times slower the import is.

Example:
File with 3800 lines (attached): takes 900s with ModeShape, 60s with JR -- cca 15 times slower
File with 300 lines: takes 70s with ModeShape, 9s with JR -- cca 7 times slower

The test was run with HSQL, mysql51 and with in-memory repo and the results are pretty much same.

Comment 1 Petr Široký 2011-01-04 10:54:10 UTC
Added ModeShape config files, DRL file that is being imported and some charts that shows the duration of test.

Comment 2 Petr Široký 2011-01-04 10:54:10 UTC
Attachment: Added: brms-repo-test-jacrabbit-derby.png
Attachment: Added: brms-repo-test-modeshape-config-in-memory.png
Attachment: Added: brms-repo-test-modeshape-default-config-hsql.png
Attachment: Added: modeshape-config.xml
Attachment: Added: modeshape-config-in-memory.xml
Attachment: Added: small_repo.drl


Comment 3 Lukáš Petrovický 2011-02-28 14:01:02 UTC
Link: Added: This issue is related to BRMS-557


Comment 4 Len DiMaggio 2011-05-31 19:52:12 UTC
This will be tested in the first 5.2 build.

Comment 5 Van Halbert 2011-08-09 12:53:16 UTC
1st. based on the modeshape-config.xml, you are running with very old code, because it doesn't have the changes that improves startup.

2nd.  with the new changes, tasks that were performed on the first time publishing has been moved to startup, so that no priming needs to be done so that subsequent publishings should see better improvement.   I'm assuming here, there was no priming, just one file being published.   Hence, the slowness of publishing.

I would suggest holding off on all modeshape performance related testing until you've changed over to use ER2.

Your configuration files will need updating.