You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by Wendy Smoak <ws...@gmail.com> on 2009/06/15 18:39:32 UTC
Adding project groups takes longer and longer
I've noticed Continuum getting slower and slower... we're trying to
track down exactly why, but one theory relates to there being lots of
user roles that have to be checked, which would mean there are lots of
project groups.
To try to reproduce that, I added 400 groups to a fresh Continuum
1.3.3 instance. I notice that it takes longer and longer to add each
group. Here's a graph:
http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png
On trunk it's similar. There in the audit log I can see there are 3
seconds between adding the second and third groups, and 19 seconds
between groups 399 and 400. All in all it takes over an hour to add
400 groups to an instance.
The test code is in the sandbox:
http://svn.apache.org/repos/asf/continuum/sandbox/continuum-webapp-test-many-roles/
Any ideas? Are we missing an index on some field?
--
Wendy
Re: Adding project groups takes longer and longer
Posted by Emmanuel Venisse <em...@gmail.com>.
Thanks Deng
Emmanuel
On Tue, Jun 16, 2009 at 1:38 PM, Deng Ching <oc...@apache.org> wrote:
> More additional info..
>
> I tried using the JDO user manager implementation instead of the cached
> user
> manager implementation (which is using the ehcache configured in Redback)
> and I didn't see much improvement on the queries during login so it's
> possible that the jpox caching is the main cause of all the queries. I'll
> investigate this further tomorrow.
>
> Thanks,
> Deng
>
> On Tue, Jun 16, 2009 at 5:45 PM, Emmanuel Venisse <
> emmanuel.venisse@gmail.com> wrote:
>
> > On Tue, Jun 16, 2009 at 11:26 AM, Deng Ching <oc...@apache.org> wrote:
> >
> > > On Tue, Jun 16, 2009 at 4:50 PM, Emmanuel Venisse <
> > > emmanuel.venisse@gmail.com> wrote:
> > >
> > > > On Mon, Jun 15, 2009 at 10:56 PM, Wendy Smoak <ws...@gmail.com>
> > wrote:
> > > >
> > > > > On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com>
> > wrote:
> > > > >
> > > > > > To try to reproduce that, I added 400 groups to a fresh Continuum
> > > > > > 1.3.3 instance. I notice that it takes longer and longer to add
> > each
> > > > > > group. Here's a graph:
> > > > > >
> > > > >
> > > >
> > >
> >
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
> <
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> >
> > <
> >
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> > >
> > > <
> > >
> >
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> > > >
> > > > <
> > > >
> > >
> >
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> > > > >
> > > > >
> > > > > Back to the "too many queries" idea, I found that
> > > > > - adding group401 resulted in 61,144 queries
> > > > > - adding group402 restulted in 61,278 queries
> > > >
> > > >
> > > > I'm very surprised by this numbers. We must work on the cache to not
> > > reload
> > > > all the cache content each time.
> > > > Actually the cache is reloaded every 4hours except for
> userPermissions
> > > and
> > > > userAssignments that are reloaded every 10 minutes.
> > >
> > >
> > > Aside from these caches configured in Redback, JPOX also has it's own
> > Level
> > > 1 caching (which cannot be turned off) and that also contributes to the
> > > queries. This caching can be switched to Level 2 caching though and
> JPOX
> > > has
> > > support for Ehcache in that level. Since Redback already uses Ehcache,
> > I'm
> > > trying to figure out if it's possible (and how) to configure JPOX to
> use
> > > the
> > > ehcache configured in Redback so that caching would only happen once.
> >
> >
> > It is possible to implement our own level2 cache for JPOX (
> > http://www.jpox.org/docs/1_2/extensions/level2_cache.html ) and use the
> > cache manager defined in redback, but I'm not sure it is a good idea. If
> we
> > want to use a Levle2 cache, I think it would be better to use the
> standard
> > level2 ehcache plugin for all jpox request and keep our own ehcache in
> > redback to keep in memory pre-compute data. I don't consider both caches
> at
> > the same level.
> >
> >
> > >
> > >
> > >
> > > >
> > > >
> > > > The cache must not be totally reloaded without an expiration, if a
> data
> > > > must
> > > > be reloaded, only this one must be removed/readded in the cache.
> > > >
> > > > For the groupSummary page, Continuum do some request to get the
> > content:
> > > > - 1 request to get the project group list
> > > > - 1 request by project group to get the summary
> > > > - 1 request by project group to get the local repository informations
> > > >
> > > > So for 400 project groups, Continuum run 1 + 400 + 400 = 801
> requests.
> > I
> > > > think it would be good to run run less requests, maybe we can use
> > ehcache
> > > > here to run 0 requests.
> > > >
> > > > For each web request, Redback do a select to see if an authorization
> > key
> > > > (seesion id) exist and if not (it never exist) it insert a new entry
> in
> > > the
> > > > table. I don't think it is good.
> > >
> > >
> > > +1
> > >
> > >
> > > > Emmanuel
> > > >
> > >
> > > Thanks,
> > > Deng
> > >
> >
>
Re: Adding project groups takes longer and longer
Posted by Deng Ching <oc...@apache.org>.
More additional info..
I tried using the JDO user manager implementation instead of the cached user
manager implementation (which is using the ehcache configured in Redback)
and I didn't see much improvement on the queries during login so it's
possible that the jpox caching is the main cause of all the queries. I'll
investigate this further tomorrow.
Thanks,
Deng
On Tue, Jun 16, 2009 at 5:45 PM, Emmanuel Venisse <
emmanuel.venisse@gmail.com> wrote:
> On Tue, Jun 16, 2009 at 11:26 AM, Deng Ching <oc...@apache.org> wrote:
>
> > On Tue, Jun 16, 2009 at 4:50 PM, Emmanuel Venisse <
> > emmanuel.venisse@gmail.com> wrote:
> >
> > > On Mon, Jun 15, 2009 at 10:56 PM, Wendy Smoak <ws...@gmail.com>
> wrote:
> > >
> > > > On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com>
> wrote:
> > > >
> > > > > To try to reproduce that, I added 400 groups to a fresh Continuum
> > > > > 1.3.3 instance. I notice that it takes longer and longer to add
> each
> > > > > group. Here's a graph:
> > > > >
> > > >
> > >
> >
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
> <
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> >
> > <
> >
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> > >
> > > <
> > >
> >
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> > > >
> > > >
> > > > Back to the "too many queries" idea, I found that
> > > > - adding group401 resulted in 61,144 queries
> > > > - adding group402 restulted in 61,278 queries
> > >
> > >
> > > I'm very surprised by this numbers. We must work on the cache to not
> > reload
> > > all the cache content each time.
> > > Actually the cache is reloaded every 4hours except for userPermissions
> > and
> > > userAssignments that are reloaded every 10 minutes.
> >
> >
> > Aside from these caches configured in Redback, JPOX also has it's own
> Level
> > 1 caching (which cannot be turned off) and that also contributes to the
> > queries. This caching can be switched to Level 2 caching though and JPOX
> > has
> > support for Ehcache in that level. Since Redback already uses Ehcache,
> I'm
> > trying to figure out if it's possible (and how) to configure JPOX to use
> > the
> > ehcache configured in Redback so that caching would only happen once.
>
>
> It is possible to implement our own level2 cache for JPOX (
> http://www.jpox.org/docs/1_2/extensions/level2_cache.html ) and use the
> cache manager defined in redback, but I'm not sure it is a good idea. If we
> want to use a Levle2 cache, I think it would be better to use the standard
> level2 ehcache plugin for all jpox request and keep our own ehcache in
> redback to keep in memory pre-compute data. I don't consider both caches at
> the same level.
>
>
> >
> >
> >
> > >
> > >
> > > The cache must not be totally reloaded without an expiration, if a data
> > > must
> > > be reloaded, only this one must be removed/readded in the cache.
> > >
> > > For the groupSummary page, Continuum do some request to get the
> content:
> > > - 1 request to get the project group list
> > > - 1 request by project group to get the summary
> > > - 1 request by project group to get the local repository informations
> > >
> > > So for 400 project groups, Continuum run 1 + 400 + 400 = 801 requests.
> I
> > > think it would be good to run run less requests, maybe we can use
> ehcache
> > > here to run 0 requests.
> > >
> > > For each web request, Redback do a select to see if an authorization
> key
> > > (seesion id) exist and if not (it never exist) it insert a new entry in
> > the
> > > table. I don't think it is good.
> >
> >
> > +1
> >
> >
> > > Emmanuel
> > >
> >
> > Thanks,
> > Deng
> >
>
Re: Adding project groups takes longer and longer
Posted by Emmanuel Venisse <em...@gmail.com>.
On Tue, Jun 16, 2009 at 11:26 AM, Deng Ching <oc...@apache.org> wrote:
> On Tue, Jun 16, 2009 at 4:50 PM, Emmanuel Venisse <
> emmanuel.venisse@gmail.com> wrote:
>
> > On Mon, Jun 15, 2009 at 10:56 PM, Wendy Smoak <ws...@gmail.com> wrote:
> >
> > > On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com> wrote:
> > >
> > > > To try to reproduce that, I added 400 groups to a fresh Continuum
> > > > 1.3.3 instance. I notice that it takes longer and longer to add each
> > > > group. Here's a graph:
> > > >
> > >
> >
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
> <
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> >
> > <
> >
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> > >
> > >
> > > Back to the "too many queries" idea, I found that
> > > - adding group401 resulted in 61,144 queries
> > > - adding group402 restulted in 61,278 queries
> >
> >
> > I'm very surprised by this numbers. We must work on the cache to not
> reload
> > all the cache content each time.
> > Actually the cache is reloaded every 4hours except for userPermissions
> and
> > userAssignments that are reloaded every 10 minutes.
>
>
> Aside from these caches configured in Redback, JPOX also has it's own Level
> 1 caching (which cannot be turned off) and that also contributes to the
> queries. This caching can be switched to Level 2 caching though and JPOX
> has
> support for Ehcache in that level. Since Redback already uses Ehcache, I'm
> trying to figure out if it's possible (and how) to configure JPOX to use
> the
> ehcache configured in Redback so that caching would only happen once.
It is possible to implement our own level2 cache for JPOX (
http://www.jpox.org/docs/1_2/extensions/level2_cache.html ) and use the
cache manager defined in redback, but I'm not sure it is a good idea. If we
want to use a Levle2 cache, I think it would be better to use the standard
level2 ehcache plugin for all jpox request and keep our own ehcache in
redback to keep in memory pre-compute data. I don't consider both caches at
the same level.
>
>
>
> >
> >
> > The cache must not be totally reloaded without an expiration, if a data
> > must
> > be reloaded, only this one must be removed/readded in the cache.
> >
> > For the groupSummary page, Continuum do some request to get the content:
> > - 1 request to get the project group list
> > - 1 request by project group to get the summary
> > - 1 request by project group to get the local repository informations
> >
> > So for 400 project groups, Continuum run 1 + 400 + 400 = 801 requests. I
> > think it would be good to run run less requests, maybe we can use ehcache
> > here to run 0 requests.
> >
> > For each web request, Redback do a select to see if an authorization key
> > (seesion id) exist and if not (it never exist) it insert a new entry in
> the
> > table. I don't think it is good.
>
>
> +1
>
>
> > Emmanuel
> >
>
> Thanks,
> Deng
>
Re: Adding project groups takes longer and longer
Posted by Deng Ching <oc...@apache.org>.
On Tue, Jun 16, 2009 at 4:50 PM, Emmanuel Venisse <
emmanuel.venisse@gmail.com> wrote:
> On Mon, Jun 15, 2009 at 10:56 PM, Wendy Smoak <ws...@gmail.com> wrote:
>
> > On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com> wrote:
> >
> > > To try to reproduce that, I added 400 groups to a fresh Continuum
> > > 1.3.3 instance. I notice that it takes longer and longer to add each
> > > group. Here's a graph:
> > >
> >
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
> <
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> >
> >
> > Back to the "too many queries" idea, I found that
> > - adding group401 resulted in 61,144 queries
> > - adding group402 restulted in 61,278 queries
>
>
> I'm very surprised by this numbers. We must work on the cache to not reload
> all the cache content each time.
> Actually the cache is reloaded every 4hours except for userPermissions and
> userAssignments that are reloaded every 10 minutes.
Aside from these caches configured in Redback, JPOX also has it's own Level
1 caching (which cannot be turned off) and that also contributes to the
queries. This caching can be switched to Level 2 caching though and JPOX has
support for Ehcache in that level. Since Redback already uses Ehcache, I'm
trying to figure out if it's possible (and how) to configure JPOX to use the
ehcache configured in Redback so that caching would only happen once.
>
>
> The cache must not be totally reloaded without an expiration, if a data
> must
> be reloaded, only this one must be removed/readded in the cache.
>
> For the groupSummary page, Continuum do some request to get the content:
> - 1 request to get the project group list
> - 1 request by project group to get the summary
> - 1 request by project group to get the local repository informations
>
> So for 400 project groups, Continuum run 1 + 400 + 400 = 801 requests. I
> think it would be good to run run less requests, maybe we can use ehcache
> here to run 0 requests.
>
> For each web request, Redback do a select to see if an authorization key
> (seesion id) exist and if not (it never exist) it insert a new entry in the
> table. I don't think it is good.
+1
> Emmanuel
>
Thanks,
Deng
Re: Adding project groups takes longer and longer
Posted by Emmanuel Venisse <em...@gmail.com>.
On Mon, Jun 15, 2009 at 10:56 PM, Wendy Smoak <ws...@gmail.com> wrote:
> On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com> wrote:
>
> > To try to reproduce that, I added 400 groups to a fresh Continuum
> > 1.3.3 instance. I notice that it takes longer and longer to add each
> > group. Here's a graph:
> >
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
>
> Back to the "too many queries" idea, I found that
> - adding group401 resulted in 61,144 queries
> - adding group402 restulted in 61,278 queries
I'm very surprised by this numbers. We must work on the cache to not reload
all the cache content each time.
Actually the cache is reloaded every 4hours except for userPermissions and
userAssignments that are reloaded every 10 minutes.
The cache must not be totally reloaded without an expiration, if a data must
be reloaded, only this one must be removed/readded in the cache.
For the groupSummary page, Continuum do some request to get the content:
- 1 request to get the project group list
- 1 request by project group to get the summary
- 1 request by project group to get the local repository informations
So for 400 project groups, Continuum run 1 + 400 + 400 = 801 requests. I
think it would be good to run run less requests, maybe we can use ehcache
here to run 0 requests.
For each web request, Redback do a select to see if an authorization key
(seesion id) exist and if not (it never exist) it insert a new entry in the
table. I don't think it is good.
Emmanuel
>
>
> --
> Wendy
>
Re: Adding project groups takes longer and longer
Posted by Deng Ching <oc...@apache.org>.
I also noticed the cache is reset everytime a new "resource" (e.g. project)
is created. This means the cache is cleared then all the roles/permissions
are queried again from the database and added to the cache. The reason
behind this is probably for the redback custom tags used in the jsps, I
think it uses the permissions in the cache to check whether the user should
be able to access specific functionalities..
Thanks,
Deng
2009/6/16 José Morales Martínez <jm...@gmv.com>
> When we create a projectgroup create a set of roles with their permissions.
>
> In my case I have created 56 groups and 1186 security_permissions with 1348
> security_role_permission_map and each time we create a projectGrup create
> 21 entries in security_permissions and 24 in
> security_role_permission_map per projectgroup again.
>
> This problem occurs when creating the new permissions / roles, but the main
> problem occurs when you first run the method 'isAuthorized
> (projectGroup.getName ())' to list the
> results projectgroups in GroupSummaryAction.
> ________________________________________
> De: Marica Tan [marica.tan@gmail.com]
> Enviado el: martes, 16 de junio de 2009 1:40
> Para: dev@continuum.apache.org
> Asunto: Re: Adding project groups takes longer and longer
>
> Here's what happens in GroupSummaryAction:
>
> 1. Get all project group --> query
> 2. Loop through each group
> - Check if user is authorized to view the project group --> query
> - If authorized, then get project group summary --> query
>
>
> --
> Marica
>
> On Tue, Jun 16, 2009 at 7:25 AM, Brett Porter <br...@apache.org> wrote:
>
> > That's insane.
> >
> > Is this all in the process of adding, or is a large portion coming from
> the
> > group summary pages again?
> >
> > - Brett
> >
> >
> > On 16/06/2009, at 6:56 AM, Wendy Smoak wrote:
> >
> > On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com> wrote:
> >>
> >> To try to reproduce that, I added 400 groups to a fresh Continuum
> >>> 1.3.3 instance. I notice that it takes longer and longer to add each
> >>> group. Here's a graph:
> >>>
> >>>
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
> <
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> >
> >>>
> >>
> >> Back to the "too many queries" idea, I found that
> >> - adding group401 resulted in 61,144 queries
> >> - adding group402 restulted in 61,278 queries
> >>
> >> --
> >> Wendy
> >>
> >
> >
>
> ______________________
> Este mensaje, y en su caso, cualquier fichero anexo al mismo,
> puede contener informacion clasificada por su emisor como confidencial
> en el marco de su Sistema de Gestion de Seguridad de la
> Informacion siendo para uso exclusivo del destinatario, quedando
> prohibida su divulgacion copia o distribucion a terceros sin la
> autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
> erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
> Gracias por su colaboracion.
> ______________________
> This message including any attachments may contain confidential
> information, according to our Information Security Management System,
> and intended solely for a specific individual to whom they are addressed.
> Any unauthorised copy, disclosure or distribution of this message
> is strictly forbidden. If you have received this transmission in error,
> please notify the sender immediately and delete it.
> ______________________
>
RE: Adding project groups takes longer and longer
Posted by José Morales Martínez <jm...@gmv.com>.
When we create a projectgroup create a set of roles with their permissions.
In my case I have created 56 groups and 1186 security_permissions with 1348 security_role_permission_map and each time we create a projectGrup create 21 entries in security_permissions and 24 in
security_role_permission_map per projectgroup again.
This problem occurs when creating the new permissions / roles, but the main problem occurs when you first run the method 'isAuthorized (projectGroup.getName ())' to list the
results projectgroups in GroupSummaryAction.
________________________________________
De: Marica Tan [marica.tan@gmail.com]
Enviado el: martes, 16 de junio de 2009 1:40
Para: dev@continuum.apache.org
Asunto: Re: Adding project groups takes longer and longer
Here's what happens in GroupSummaryAction:
1. Get all project group --> query
2. Loop through each group
- Check if user is authorized to view the project group --> query
- If authorized, then get project group summary --> query
--
Marica
On Tue, Jun 16, 2009 at 7:25 AM, Brett Porter <br...@apache.org> wrote:
> That's insane.
>
> Is this all in the process of adding, or is a large portion coming from the
> group summary pages again?
>
> - Brett
>
>
> On 16/06/2009, at 6:56 AM, Wendy Smoak wrote:
>
> On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com> wrote:
>>
>> To try to reproduce that, I added 400 groups to a fresh Continuum
>>> 1.3.3 instance. I notice that it takes longer and longer to add each
>>> group. Here's a graph:
>>>
>>> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
>>>
>>
>> Back to the "too many queries" idea, I found that
>> - adding group401 resulted in 61,144 queries
>> - adding group402 restulted in 61,278 queries
>>
>> --
>> Wendy
>>
>
>
______________________
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
puede contener informacion clasificada por su emisor como confidencial
en el marco de su Sistema de Gestion de Seguridad de la
Informacion siendo para uso exclusivo del destinatario, quedando
prohibida su divulgacion copia o distribucion a terceros sin la
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboracion.
______________________
This message including any attachments may contain confidential
information, according to our Information Security Management System,
and intended solely for a specific individual to whom they are addressed.
Any unauthorised copy, disclosure or distribution of this message
is strictly forbidden. If you have received this transmission in error,
please notify the sender immediately and delete it.
______________________
Re: Adding project groups takes longer and longer
Posted by Marica Tan <ma...@gmail.com>.
Here's what happens in GroupSummaryAction:
1. Get all project group --> query
2. Loop through each group
- Check if user is authorized to view the project group --> query
- If authorized, then get project group summary --> query
--
Marica
On Tue, Jun 16, 2009 at 7:25 AM, Brett Porter <br...@apache.org> wrote:
> That's insane.
>
> Is this all in the process of adding, or is a large portion coming from the
> group summary pages again?
>
> - Brett
>
>
> On 16/06/2009, at 6:56 AM, Wendy Smoak wrote:
>
> On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com> wrote:
>>
>> To try to reproduce that, I added 400 groups to a fresh Continuum
>>> 1.3.3 instance. I notice that it takes longer and longer to add each
>>> group. Here's a graph:
>>>
>>> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
>>>
>>
>> Back to the "too many queries" idea, I found that
>> - adding group401 resulted in 61,144 queries
>> - adding group402 restulted in 61,278 queries
>>
>> --
>> Wendy
>>
>
>
Re: Adding project groups takes longer and longer
Posted by Marica Tan <ma...@gmail.com>.
It's CONTINUUM-1712 and the last fix that I made was included in 1.3.3
r775956 of 1.3.x branch
r775961 of trunk
--
Marica
On Tue, Jun 16, 2009 at 7:41 AM, Wendy Smoak <ws...@gmail.com> wrote:
> It's going to include the group summary page because that's what
> Continuum displays after you log in.
>
> I need to find that 'improve performance of the group summary page'
> issue and see when that was fixed -- maybe it was after the 1.3.3
> release?
>
> --
> Wendy
>
> On Mon, Jun 15, 2009 at 4:25 PM, Brett Porter<br...@apache.org> wrote:
> > That's insane.
> >
> > Is this all in the process of adding, or is a large portion coming from
> the
> > group summary pages again?
>
Re: Adding project groups takes longer and longer
Posted by Wendy Smoak <ws...@gmail.com>.
It's going to include the group summary page because that's what
Continuum displays after you log in.
I need to find that 'improve performance of the group summary page'
issue and see when that was fixed -- maybe it was after the 1.3.3
release?
--
Wendy
On Mon, Jun 15, 2009 at 4:25 PM, Brett Porter<br...@apache.org> wrote:
> That's insane.
>
> Is this all in the process of adding, or is a large portion coming from the
> group summary pages again?
Re: Adding project groups takes longer and longer
Posted by Brett Porter <br...@apache.org>.
That's insane.
Is this all in the process of adding, or is a large portion coming
from the group summary pages again?
- Brett
On 16/06/2009, at 6:56 AM, Wendy Smoak wrote:
> On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com> wrote:
>
>> To try to reproduce that, I added 400 groups to a fresh Continuum
>> 1.3.3 instance. I notice that it takes longer and longer to add each
>> group. Here's a graph:
>> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png
>
> Back to the "too many queries" idea, I found that
> - adding group401 resulted in 61,144 queries
> - adding group402 restulted in 61,278 queries
>
> --
> Wendy
Re: Adding project groups takes longer and longer
Posted by Wendy Smoak <ws...@gmail.com>.
On Mon, Jun 15, 2009 at 9:39 AM, Wendy Smoak<ws...@gmail.com> wrote:
> To try to reproduce that, I added 400 groups to a fresh Continuum
> 1.3.3 instance. I notice that it takes longer and longer to add each
> group. Here's a graph:
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png
Back to the "too many queries" idea, I found that
- adding group401 resulted in 61,144 queries
- adding group402 restulted in 61,278 queries
--
Wendy
Re: Adding project groups takes longer and longer
Posted by Deng Ching <oc...@apache.org>.
On Tue, Jun 16, 2009 at 4:51 AM, Wendy Smoak <ws...@gmail.com> wrote:
> The actual system with the performance problem is using MySQL, however
> these results and the graph were from a fresh 1.3.3 instance using the
> embedded Derby database.
>
> Another use case that is slow is simply logging in. I've personally
> timed it at 3 minutes from clicking the button to log in, before I see
> the next page rendered.
>
> Brett suggested turning on the JPOX sql query logging, and here's what
> I see while logging in as admin:
>
> Continuum 1.3.3 with 20 project groups - 3,192 SELECT queries
> Continuum 1.3.3 with 400 project groups - 60,184 SELECT queries
>
> It's not especially slow to log in as admin (5-6 seconds) with 400
> project groups, but this is with an embedded Derby db, so the queries
> aren't going out on the network.
>
> In any case, why does it need to do *that* many queries simply to
> process a login?
One of these many queries I saw yesterday from the logs was due to the cache
being reset during each login. The cache is cleared first then all the
roles/permissions are queried and added to the cache. Since we're using
resource-based roles, it takes longer to process the login if there are a
lot of resources (e.g. projects)..
- Deng
>
>
> --
> Wendy
>
> On Mon, Jun 15, 2009 at 11:58 AM, Emmanuel
> Venisse<em...@gmail.com> wrote:
> > It's very bad.
> >
> > Do you use an embedded derby DB or an external? I don't think it is good
> to
> > use an embedded DB for a "big" DB.
> >
> > Emmanuel
> >
> > On Mon, Jun 15, 2009 at 6:39 PM, Wendy Smoak <ws...@gmail.com> wrote:
> >
> >> I've noticed Continuum getting slower and slower... we're trying to
> >> track down exactly why, but one theory relates to there being lots of
> >> user roles that have to be checked, which would mean there are lots of
> >> project groups.
> >>
> >> To try to reproduce that, I added 400 groups to a fresh Continuum
> >> 1.3.3 instance. I notice that it takes longer and longer to add each
> >> group. Here's a graph:
> >>
> >>
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
> <
> http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png
> >
> >>
> >> On trunk it's similar. There in the audit log I can see there are 3
> >> seconds between adding the second and third groups, and 19 seconds
> >> between groups 399 and 400. All in all it takes over an hour to add
> >> 400 groups to an instance.
> >>
> >> The test code is in the sandbox:
> >>
> >>
> http://svn.apache.org/repos/asf/continuum/sandbox/continuum-webapp-test-many-roles/
> >>
> >> Any ideas? Are we missing an index on some field?
> >>
> >> --
> >> Wendy
> >>
> >
>
Re: Adding project groups takes longer and longer
Posted by Wendy Smoak <ws...@gmail.com>.
The actual system with the performance problem is using MySQL, however
these results and the graph were from a fresh 1.3.3 instance using the
embedded Derby database.
Another use case that is slow is simply logging in. I've personally
timed it at 3 minutes from clicking the button to log in, before I see
the next page rendered.
Brett suggested turning on the JPOX sql query logging, and here's what
I see while logging in as admin:
Continuum 1.3.3 with 20 project groups - 3,192 SELECT queries
Continuum 1.3.3 with 400 project groups - 60,184 SELECT queries
It's not especially slow to log in as admin (5-6 seconds) with 400
project groups, but this is with an embedded Derby db, so the queries
aren't going out on the network.
In any case, why does it need to do *that* many queries simply to
process a login?
--
Wendy
On Mon, Jun 15, 2009 at 11:58 AM, Emmanuel
Venisse<em...@gmail.com> wrote:
> It's very bad.
>
> Do you use an embedded derby DB or an external? I don't think it is good to
> use an embedded DB for a "big" DB.
>
> Emmanuel
>
> On Mon, Jun 15, 2009 at 6:39 PM, Wendy Smoak <ws...@gmail.com> wrote:
>
>> I've noticed Continuum getting slower and slower... we're trying to
>> track down exactly why, but one theory relates to there being lots of
>> user roles that have to be checked, which would mean there are lots of
>> project groups.
>>
>> To try to reproduce that, I added 400 groups to a fresh Continuum
>> 1.3.3 instance. I notice that it takes longer and longer to add each
>> group. Here's a graph:
>>
>> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
>>
>> On trunk it's similar. There in the audit log I can see there are 3
>> seconds between adding the second and third groups, and 19 seconds
>> between groups 399 and 400. All in all it takes over an hour to add
>> 400 groups to an instance.
>>
>> The test code is in the sandbox:
>>
>> http://svn.apache.org/repos/asf/continuum/sandbox/continuum-webapp-test-many-roles/
>>
>> Any ideas? Are we missing an index on some field?
>>
>> --
>> Wendy
>>
>
Re: Adding project groups takes longer and longer
Posted by Emmanuel Venisse <em...@gmail.com>.
It's very bad.
Do you use an embedded derby DB or an external? I don't think it is good to
use an embedded DB for a "big" DB.
Emmanuel
On Mon, Jun 15, 2009 at 6:39 PM, Wendy Smoak <ws...@gmail.com> wrote:
> I've noticed Continuum getting slower and slower... we're trying to
> track down exactly why, but one theory relates to there being lots of
> user roles that have to be checked, which would mean there are lots of
> project groups.
>
> To try to reproduce that, I added 400 groups to a fresh Continuum
> 1.3.3 instance. I notice that it takes longer and longer to add each
> group. Here's a graph:
>
> http://people.apache.org/~wsmoak/continuum/continuum-1.3.3-add-400-groups.png<http://people.apache.org/%7Ewsmoak/continuum/continuum-1.3.3-add-400-groups.png>
>
> On trunk it's similar. There in the audit log I can see there are 3
> seconds between adding the second and third groups, and 19 seconds
> between groups 399 and 400. All in all it takes over an hour to add
> 400 groups to an instance.
>
> The test code is in the sandbox:
>
> http://svn.apache.org/repos/asf/continuum/sandbox/continuum-webapp-test-many-roles/
>
> Any ideas? Are we missing an index on some field?
>
> --
> Wendy
>