Installation

"Loading Please Wait..." issues with Library Browser et al (2.18)

"Loading Please Wait..." issues with Library Browser et al (2.18)

by Andrew Leahy -
Number of replies: 5

I just did a fresh install of WW 2.18 using the Ubuntu 22.04 ova image.  I'm running this image as a virtual system (3 CPU, 6GB RAM) and accessing the WebWork server publicly through an apache reverse proxy on the Fedora host system.   After some tinkering with site.conf and with the Apache server, I have a functioning WebWork application.  Right now it's just me using it, but the current hang-up is that problem rendering (most noticeably in the Library Browser) is REALLY sluggish---typically a couple of problems will be rendered almost immediately, then a lengthy pause, and then a burst with a few more problems, a pause, etc.   This happens with both mathjax and images.  There's nothing written concurrently in the ssl_error_log file on apache even with 'LogLevel debug' and the same with webwork2.log on the server.  There is nothing obvious in the javascript console (though I'm sure what to look for) and  ssl_access_log from a typical burst looks like:

172.16.1.1 - - [06/Sep/2023:13:36:16 -0500] "GET /pg_files/js/Knowls/knowl.876813f4.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:16 -0500] "GET /pg_files/js/Essay/essay.1b4fee36.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:31 -0500] "POST /webwork2/render_rpc HTTP/1.1" 200 8298

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/jquery-ui-dist/jquery-ui.min.css?version=%5E1.13.2 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/themes/math4/bootstrap.9efba867.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/@fortawesome/fontawesome-free/css/all.min.css?version=%5E6.2.1 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/themes/math4/math4.0860e381.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/themes/math4/math4-overrides.e3b0c442.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/Problem/problem.d73e6b85.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/Knowls/knowl.778c6dfe.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/ImageView/imageview.867ecd5a.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/node_modules/mathquill/dist/mathquill.css?version=github:openwebwork/mathquill@WeBWorK-2.18 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/MathQuill/mqeditor.0ea84c29.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/jquery/dist/jquery.min.js?version=%5E3.6.3 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/iframe-resizer/js/iframeResizer.contentWindow.min.js?version=%5E4.3.2 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/jquery-ui-dist/jquery-ui.min.js?version=%5E1.13.2 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/js/MathJaxConfig/mathjax-config.d097a5f4.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/mathjax/es5/tex-svg.js?version=%5E3.2.2 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js?version=~5.2.3 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/js/Problem/problem.c9e3e018.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/themes/math4/math4-overrides.e3b0c442.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/themes/math4/math4.518a56fc.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/Base64/Base64.40f8ebee.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/InputColor/color.0f2f96d1.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/iframe-resizer/js/iframeResizer.contentWindow.map HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/Knowls/knowl.876813f4.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/ImageView/imageview.b0b2f87f.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/Essay/essay.1b4fee36.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/node_modules/mathquill/dist/mathquill.js?version=github:openwebwork/mathquill@WeBWorK-2.18 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /pg_files/js/MathQuill/mqeditor.219476ec.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/mathjax/es5/input/tex/extensions/noerrors.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/mathjax/es5/input/asciimath.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "GET /webwork2_files/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:32 -0500] "POST /webwork2/render_rpc HTTP/1.1" 200 8796

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/themes/math4/math4-overrides.e3b0c442.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/node_modules/jquery-ui-dist/jquery-ui.min.css?version=%5E1.13.2 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/Problem/problem.d73e6b85.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/node_modules/@fortawesome/fontawesome-free/css/all.min.css?version=%5E6.2.1 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/themes/math4/bootstrap.9efba867.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/themes/math4/math4.0860e381.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/Knowls/knowl.778c6dfe.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/ImageView/imageview.867ecd5a.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/MathQuill/mqeditor.0ea84c29.min.css HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/node_modules/jquery/dist/jquery.min.js?version=%5E3.6.3 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/node_modules/jquery-ui-dist/jquery-ui.min.js?version=%5E1.13.2 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/node_modules/iframe-resizer/js/iframeResizer.contentWindow.min.js?version=%5E4.3.2 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/js/MathJaxConfig/mathjax-config.d097a5f4.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/node_modules/mathjax/es5/tex-svg.js?version=%5E3.2.2 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js?version=~5.2.3 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/js/Problem/problem.c9e3e018.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/themes/math4/math4.518a56fc.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /webwork2_files/themes/math4/math4-overrides.e3b0c442.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/InputColor/color.0f2f96d1.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/Base64/Base64.40f8ebee.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/Knowls/knowl.876813f4.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/ImageView/imageview.b0b2f87f.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/Essay/essay.1b4fee36.min.js HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/node_modules/mathquill/dist/mathquill.js?version=github:openwebwork/mathquill@WeBWorK-2.18 HTTP/1.1" 304 -

172.16.1.1 - - [06/Sep/2023:13:36:33 -0500] "GET /pg_files/js/MathQuill/mqeditor.219476ec.min.js HTTP/1.1" 304 -


I've read the "Serving via Proxy by Apache2" section.  I've set 'Timeout 1200' in httpd.conf and played with MaxConnectionsPerChild and MaxRequestWorkers.  The current mpm_event.conf is below but I see issues with both configurations:


<IfModule mpm_event_module>

StartServers             3

    MinSpareThreads          75

    MaxSpareThreads          250

    ThreadLimit              64

    ThreadsPerChild          25

    MaxRequestWorkers        400

    MaxConnectionsPerChild   0

#    MaxRequestWorkers       50

#    MaxConnectionsPerChild   50

</IfModule>


Somewhat strange:  I slept on it last night, and when I went back to look at it this morning it was much peppier--I wouldn't have noticed a problem.  Things got worse when I tinkered some more. 

Any ideas?  Thanks!

In reply to Andrew Leahy

Re: "Loading Please Wait..." issues with Library Browser et al (2.18)

by Danny Glin -

Note that as of 2.18 WeBWorK logs application errors to logs/webwork2.log rather than to the apache logs, so there may be more meaningful entries there.

You may need to tweak the settings in conf/webwork2.mojolicious.yml to handle more concurrent requests.  You need to leave "clients" set to 1, but you can try upping the values of "workers" and "spare".

In reply to Danny Glin

Re: "Loading Please Wait..." issues with Library Browser et al (2.18)

by Andrew Leahy -

Quintupling the workers makes it much more responsive.  Thanks.

In reply to Andrew Leahy

Re: "Loading Please Wait..." issues with Library Browser et al (2.18)

by Michael Schroeder -
I am also getting some serious lag on the rendering in the library browser. I'm rendering about one problem every 2 minutes. However, If I click "Try it", the problem pops up instantly, though.

I tried tinkering with the settings in the above-mentioned file, but no success in improving the rendering times in the Homework Set Editor or the Library Browser.

Would you have any other recommendations to consider?

Thanks!

Mike Schroeder
In reply to Michael Schroeder

Re: "Loading Please Wait..." issues with Library Browser et al (2.18)

by Arnold Pizer -

Usually issues with the Library Browser have to do with the $server_root_url not being set correctly.  Look at 

https://webwork.maa.org/wiki/WeBWorK_2.18_Ubuntu_Server_22.04_LTS_Virtual_Machine_Image#Edit_the_site.conf_file

Also check to see what error/warning messages come up in your browser (e.g. with Chrome look at the console under developer tools). 


In reply to Arnold Pizer

Re: "Loading Please Wait..." issues with Library Browser et al (2.18)

by Michael Schroeder -

That's exactly what it was -- I feel pretty silly now.

Thanks!