[LON-CAPA-admin] LonCapa Slow
Abdel Messeh, Maged
mmesseh at illinois.edu
Tue Jul 14 15:24:39 EDT 2015
Hi Stuart,
Thank you for your quick response.
Devel::NYTProf is what came to our mind here also; so I will have a go and might contact Damien if I need help.
Yes please, can we get those scripts. Is there a chance you can put them on an http site so we can overcome the mail server problem?
Many thanks,
Maged
-----Original Message-----
From: lon-capa-admin-bounces at mail.lon-capa.org [mailto:lon-capa-admin-bounces at mail.lon-capa.org] On Behalf Of Stuart Raeburn
Sent: Tuesday, July 14, 2015 2:15 PM
To: lon-capa-admin at mail.lon-capa.org
Subject: Re: [LON-CAPA-admin] LonCapa Slow
Hi Maged,
> We have seen some slowness when loading the following pages:
>
> /adm/roles ---- User Roles Screen
> /adm/navmaps --- Subroutines to handle and render the navigation
> /adm/flip ---- Page flip handler
>
Damien Guillaume, here at MSU has had success profiling Apache on a
development LON-CAPA server using the Devel::NYTProf module from CPAN.
One of the pages profiled recently was the Course Contents screen
(/adm/navmaps), and Damien recently committed a speed optimization to
CVS HEAD, as a result of that work:
http://mail.lon-capa.org/pipermail/lon-capa-cvs/Week-of-Mon-20150615/026791.html
When using the profiler, the maximum number of Apache clients is set
to 1, so it is not practical to use this on a production server in
active use. One thing you might want to consider is mirroring your
production library server/VM to a development VM, and profiling with
Devel::NYTProf on that development VM.
One question is whether the slowness you report is for a user session
hosted on one of your access servers or on your LON-CAPA library server.
In the past I have created stress testing scripts, derived from the
monitoring script found in CVS modules/raeburn/monitor.pl. I have
previously attempted to share those with Lee Bynum at Illinois, but it
seems the attachment to my e-mail may have been quarantined by spam
detection software. I can try sending those scripts again, offlist,
to both you and Lee.
Stuart Raeburn
LON-CAPA Academic Consortium
Quoting "Abdel Messeh, Maged" <mmesseh at illinois.edu>:
> Hi Stuart,
>
> We have seen some slowness when loading the following pages:
>
> /adm/roles ---- User Roles Screen
> /adm/navmaps --- Subroutines to handle and render the navigation
> /adm/flip ---- Page flip handler
>
> Sometimes this was almost 20sec. during a lab with about 20
> students; I have tried it myself and seen about 5 sec. delay in
> loading those pages.
>
> All servers seemed happy about resources: CPU, memory .. etc.
> I would like to diagnose this problem and was wondering if you have
> any direction as to where to start? I thought about profiling the
> perl calls to see where the slowness come from but as you know this
> is hard to do.
>
> Thanks so much for your help,
>
> Maged
>
> --------------------------
> Maged Messeh
> ATLAS Infrastructure
>
>
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
More information about the LON-CAPA-admin
mailing list