grouper-users - Re: [grouper-users] Grouper UI stem and groups browing is slow
Subject: Grouper Users - Open Discussion List
List archive
- From: Tom Barton <>
- To: Allen Chen <>
- Cc: Grouper Users <>
- Subject: Re: [grouper-users] Grouper UI stem and groups browing is slow
- Date: Fri, 14 Dec 2007 07:19:51 -0600
Sorry I wasn't able to get back to this until now. And I noticed that it
wasn't CC'd to grouper-users, which is usually a good idea since there
are some very knowledgeable grouper users and developers on that list.
Gary, do you recognize this?
DOMHelper.getDomFromResourceOnClassPath("resources/grouper/ui-permissions.xml");
The file resources/grouper/ui-permissions.xml doesn't exist at all!
Tom
Allen Chen wrote:
> I user Grouper 1.2.1 now.
> I try to allocate more memory for tomcat by using javaopts -Xms256m
> -Xmx512m, but little help to the page loading and displaying.
>
> I calculated the time between PopulateMyGroupsAction.do and the displaying
> of result on the page.
> In PopulateMyGroupsAction.java grouperExecute method:
> ...
> Date date = new Date();
> DebugLog.info(this.getClass(), "Start at "+ date);
> session.setAttribute("startTime", date.getTime());
> ...
> And I add time output code in browseChildStem.jsp
> <html:link page="/browseStems${browseMode}.do"
> paramId="currentNode"
> paramName="viewObject"
> paramProperty="stemId"
> title="${navMap['browse.expand.stem']}
> ${viewObject.displayExtension}">
> <span class="stemView"><c:out
> value="${viewObject[mediaMap['stem.display']]}"/></span>
> <% out.println((new
> Date()).getTime()-startTime.longValue()); %>
> </html:link>
>
> Then the page content of browsing stem is as follows:
>
> ----------------------------------------------------------------------------
> Current location is - Root
>
> Skip children for Root
>
> Showing 1 to 4 of 4 items
> Click on a stem to view its direct children, or a [group] to see its summary
> Grouper Administration 3281
> ISM App 3281
> HR App 3297
> My University 3297
> ---------------------------------------------------------------------------
> ps: the time unit is millisecond.
>
> What's more, there is always an error when i start the tomcat:
> java.lang.IllegalArgumentException: InputStream cannot be null
> at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
> at
> edu.internet2.middleware.grouper.ui.util.DOMHelper.getDomFromResourceOnClassPath(DOMHelper.java:135)
> at
> edu.internet2.middleware.grouper.ui.SessionInitialiser.init(SessionInitialiser.java:177)
> at
> edu.internet2.middleware.grouper.ui.SessionInitialiser.init(SessionInitialiser.java:59)
> at
> edu.internet2.middleware.grouper.ui.LoginCheckFilter.doFilter(LoginCheckFilter.java:229)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:261)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> uk.ac.bris.is.grouper.ui.PreCASFilter.doFilter(PreCASFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> edu.scut.grouper.ui.filter.CharsetFilter.doFilter(CharsetFilter.java:29)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Unknown Source)
>
> And I found the problem is caused by the code in SessionInitialiser.java:
> doc =
> DOMHelper.getDomFromResourceOnClassPath("resources/grouper/ui-permissions.xml");
> The file resources/grouper/ui-permissions.xml doesn't exist at all!
>
> Allen Chen
> 2007-12-10
>
>
>
> 发件人: Tom Barton
> 发送时间: 2007-12-09 02:33:01
> 收件人: Allen Chen
> 抄送:
>
> 主题: Re: [grouper-users] Grouper UI stem and groups browing is slow
>
> (CCing only the grouper-users list)
>
> I tried but could not reproduce this problem on my test setup. Is it
> possible that your tomcat needs more memory allocated to it?
>
> Tom
>
> Allen Chen wrote:
>> I found a problem with grouper UI: when access populateManageGroups.do,
>> I found that the first few time the page loading is very quick, but after
>> a few times i click the menu Manage Groups or My Memberships, the page
>> loading will be extremely slow. I calculate the time between
>> populateManageGroupsAction and the outputing results on the page, which is
>> not satisfying-- lowermost 0.4 secs, and upmost 4.089 secs.
>> i don't know why the performance bottleneck turns up. Does it has
>> something done with caching?
>>
>> I hope someone can tell me why and help me on that issue.
>> Thanks you in advance!
>>
>> ps: The phenomenent happens both in Grouper UI 1.2.0 and 1.2.1
>>
>> And the following is my grouper.ehcache.xml:
>> <diskStore path="java.io.tmpdir"/ >
>> <defaultCache maxElementsInMemory="100000"
>> eternal="true"
>> timeToIdleSeconds="30"
>> timeToLiveSeconds="120"
>> overflowToDisk="false"
>> / >
>>
>>
>>
>> <!-- Access privilege resolving caching -- >
>>
>> <!-- @see CachingAccessResolver#hasPrivilege(...) -- >
>> <cache
>> name="edu.internet2.middleware.grouper.privs.CachingAccessResolver.HasPrivilege"
>> maxElementsInMemory="100000"
>> eternal="true"
>> timeToIdleSeconds="30"
>> timeToLiveSeconds="120"
>> overflowToDisk="false"
>> / >
>>
>>
>>
>> <!-- Naming privilege resolving caching -- >
>>
>> <!-- @see CachingNamingResolver#hasPrivilege(...) -- >
>> <cache
>> name="edu.internet2.middleware.grouper.privs.CachingNamingResolver.HasPrivilege"
>> maxElementsInMemory="100000"
>> eternal="true"
>> timeToIdleSeconds="30"
>> timeToLiveSeconds="120"
>> overflowToDisk="false"
>> / >
>>
>>
>>
>> <!-- Subject resolving caching -- >
>>
>> <!-- @see CachingResolver#find(...) -- >
>> <cache
>> name="edu.internet2.middleware.grouper.subj.CachingResolver.Find"
>> maxElementsInMemory="100000"
>> eternal="true"
>> timeToIdleSeconds="30"
>> timeToLiveSeconds="120"
>> overflowToDisk="false"
>> / >
>>
>> <!-- @see CachingResolver#findAll(...) -- >
>> <cache
>> name="edu.internet2.middleware.grouper.subj.CachingResolver.FindAll"
>> maxElementsInMemory="100000"
>> eternal="true"
>> timeToIdleSeconds="30"
>> timeToLiveSeconds="120"
>> overflowToDisk="false"
>> / >
>>
>> <!-- @see CachingResolver#findByIdentifier(...) -- >
>> <cache
>> name="edu.internet2.middleware.grouper.subj.CachingResolver.FindByIdentifier"
>> maxElementsInMemory="100000"
>> eternal="true"
>> timeToIdleSeconds="30"
>> timeToLiveSeconds="120"
>> overflowToDisk="false"
>> / >
>>
>> <!-- @see WheelAccessResolver#isWheelMember(...) -- >
>> <cache
>> name="edu.internet2.middleware.grouper.privs.WheelAccessResolver.isWheelMember"
>> maxElementsInMemory="100000"
>> eternal="true"
>> timeToIdleSeconds="30"
>> timeToLiveSeconds="120"
>> overflowToDisk="false"
>> / >
>>
>>
>>
>>
>>
>> Allen Chen
>> 2007-12-08
>>
>>
>>
>> 发件人: Jessica Bibbee
>> 发送时间: 2007-12-07 04:21:13
>> 收件人: Grouper Dev; Grouper-Users
>> 抄送:
>> 主题: [grouper-users] Grouper v1.2.1 Release Now Available
>>
>> Hello Grouper Community!
>>
>> Grouper v1.2.1 release is now available.
>> Release Date: 6-Dec-07
>>
>> Grouper v1.2.1 offers a few bug fixes and substantially improved
>> performance. The API and UI feature a few modest functional enhancements
>> to this end:
>>
>> Substantially improved performance
>> API and UI use new strategies to check privileges
>> Improved API caching strategy
>> A complete list of fixes and changes can be found at <
>> http://preview.tinyurl.com/39dtjc >.
>>
>>
>>
>> The Grouper v1.2.1 tarballs are now available for download from the
>> Grouper product wiki < https://wiki.internet2.edu/confluence/x/BAg >.
>> Please see < https://wiki.internet2.edu/confluence/x/_zM > for a summary
>> of the changes from v1.2.0 to v1.2.1. Grouper source is also available via
>> anonymous CVS. Instructions can be found in <
>> http://viewvc.internet2.edu/viewvc.py/?root=I2MI >
>>
>> This new release of Grouper v1.2.1 is now available, linked from the
>> Grouper home page: < http://grouper.internet2.edu/ > Feedback is
>> welcomed and appreciated!
>>
>> Thanks! The Grouper Developer Team
>>
>>
- Grouper v1.2.1 Release Now Available, Jessica Bibbee, 12/06/2007
- Grouper UI stem and groups browing is slow, Allen Chen, 12/08/2007
- Re: [grouper-users] Grouper UI stem and groups browing is slow, Tom Barton, 12/08/2007
- Message not available
- Re: [grouper-users] Grouper UI stem and groups browing is slow, Tom Barton, 12/14/2007
- Re: [grouper-users] Grouper UI stem and groups browing is slow, GW Brown, Information Systems and Computing, 12/14/2007
- Re: [grouper-users] Grouper UI stem and groups browing is slow, Tom Barton, 12/14/2007
- Message not available
- Re: [grouper-users] Grouper UI stem and groups browing is slow, Tom Barton, 12/08/2007
- Grouper UI stem and groups browing is slow, Allen Chen, 12/08/2007
Archive powered by MHonArc 2.6.16.