We have recently tried to upgrade to magnolia 4.4.9-JR24 in order to gain access to Jackrabbit 2.0 features and performance improvements. After upgrade we notice some severe performance problem. I use visualvm(with sampler and profiler), magnolia 4.4.9-JR24, and notice three method invokations that are taking a lot of time and a lot of invocations. The methods are:
(Look in the source code for magnolia-code 4.4.9-JR24) NOTE1: SimpleUrlPattern.getDomainName - makes 400-500 invocations for EACH request!, and makes a reflection!!!? The method it tries to invoke does not exists!? NOTE2: SimpleUrlPattern.getSiteNameBasedOnDomain - makes 400-500 invocations for EACH request!, makes a reflection!? The method it tries to invoke does not exists!? NOTE3: DefaultComponentProvider.getSingleton - synchronized method, invokes several 100 invocations per each page rendering. Questions: Q1. 4.4.9-JR24 can“t be a stable release, how can magnolia ship and recommend anything like this? In the source for 1 and 2 is also said "workaround until we move site to core" ? Q2. Why are there a reflection in NOTE1 and NOTE2? Q3. Why does it makes 400-500 request to these methods (NOTE1 and NOTE2) for each page rendering (Seems like it does that for each node, each property and each resource(img, css) etc that the page have to fetch) Q4. The reflection NOTE1 and NOTE2 try to invoke methods that do not exists in AggregationState.class (se the code in SimpleUrlPattern) and will always return null, why is that? What should it return? Are there any version error so that AggregationState should have these methods? Q5. Why are there several hundreds invokation to NOTE3 for each page rendering. If it IS a singleton it should not change and then each object should make a lookup ONCE and then store the instance, not invoke getSingleton().methodXXX each time. Or at least store the singleton instance ref in a thread local IF it will change during a request? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=f388e09a-e120-41fe-8671-a91c5b7f2517 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
