From mscottreynolds at gmail.com Tue Aug 23 15:34:13 2022 From: mscottreynolds at gmail.com (M. Scott Reynolds) Date: Tue, 23 Aug 2022 13:34:13 -0600 Subject: [moin-devel] Moin2 Performance Problems Message-ID: I tried importing a 1.9 Moin wiki into a fresh development install of Moin2, and while it appears to have successfully imported most of the pages, the performance is horrible! There are nearly 400 pages that were imported, and selecting any of them can take 5 seconds or more before rendering. The 1.9 setup is just fine. And the Moin2 setup is fine, when it is empty. Nothing unusual is displayed on the log either. Any ideas on what might be going on, or what I should start looking at? Thanks, Scott. From UlrichB at posteo.de Tue Aug 23 17:04:35 2022 From: UlrichB at posteo.de (Ulrich B.) Date: Tue, 23 Aug 2022 21:04:35 +0000 Subject: [moin-devel] Moin2 Performance Problems In-Reply-To: References: Message-ID: Did you try to load the help pages? You can run moin load-help -n en moin load-help -n common Opening following pages should last less than 1 second http://localhost:8080/help-en/Home http://localhost:8080/+index/help-en Are you using a lot of macros in your wiki? Is there a difference between simple pages without macros and complex wiki pages? With regards, Ulrich From mscottreynolds at gmail.com Tue Aug 23 17:51:16 2022 From: mscottreynolds at gmail.com (M. Scott Reynolds) Date: Tue, 23 Aug 2022 15:51:16 -0600 Subject: [moin-devel] Moin2 Performance Problems In-Reply-To: References: Message-ID: I loaded the help pages. With the server running in debug mode, part of the log output is this when I click on those two links: 2022-08-23 *15:42:33*,524 INFO moin.signalling.log:19 item MyMoinMoin:help-en/Home displayed 2022-08-23 *15:42:42*,744 INFO werkzeug:113 127.0.0.1 "?[37mGET /help-en/Home HTTP/1.1?[0m" 200 - 2022-08-23 15:42:43,312 INFO werkzeug:113 127.0.0.1 "?[37mGET /+get/+f9f0caf384f048aead91c7d4bf69dc96/help-common/logo.png HTTP/1.1?[0m" 200 - 2022-08-23 *15:42:53*,297 INFO werkzeug:113 127.0.0.1 "?[37mGET /+index/help-en HTTP/1.1?[0m" 200 - 2022-08-23 15:42:53,476 INFO werkzeug:113 127.0.0.1 "?[37mGET /static/img/mime-type/moin-text.png HTTP/1.1?[0m" 200 - It took nearly 9 seconds between the time when I clicked on the first link and when it actually rendered. You can see the difference between the two first lines. The first log entry with the "moin.signaling.log:19" is when I clicked on it (15:42:33). The next log entry is when it actually rendered (15:42:42). The second link was not quite as long, but still took quite some time. I don't remember using any complex macros on the old site. I did check the plugins directory and there was one for calendar and another one for newaccounts. Even so, they shouldn't have made a difference when clicking on the help pages, right? I have also tried using sqlite as a backend, and it didn't make a difference. Scott. On 8/23/2022 15:04, Ulrich B. wrote: > Did you try to load the help pages? You can run > > moin load-help -n en > moin load-help -n common > > Opening following pages should last less than 1 second > > http://localhost:8080/help-en/Home > http://localhost:8080/+index/help-en > > Are you using a lot of macros in your wiki? Is there a difference > between simple pages without macros and complex wiki pages? > > With regards, > Ulrich > _______________________________________________ > moin-devel mailing list > moin-devel at python.org > https://mail.python.org/mailman/listinfo/moin-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From mscottreynolds at gmail.com Wed Aug 24 00:59:08 2022 From: mscottreynolds at gmail.com (M. Scott Reynolds) Date: Tue, 23 Aug 2022 22:59:08 -0600 Subject: [moin-devel] Moin2 Performance Problems In-Reply-To: References: Message-ID: I ran at the command prompt, "moin index-optimize" and that fixed it! On 8/23/2022 15:51, M. Scott Reynolds wrote: > > I loaded the help pages. With the server running in debug mode, part > of the log output is this when I click on those two links: > > 2022-08-23 *15:42:33*,524 INFO moin.signalling.log:19 item > MyMoinMoin:help-en/Home displayed > 2022-08-23 *15:42:42*,744 INFO werkzeug:113 127.0.0.1 "?[37mGET > /help-en/Home HTTP/1.1?[0m" 200 - > 2022-08-23 15:42:43,312 INFO werkzeug:113 127.0.0.1 "?[37mGET > /+get/+f9f0caf384f048aead91c7d4bf69dc96/help-common/logo.png > HTTP/1.1?[0m" 200 - > 2022-08-23 *15:42:53*,297 INFO werkzeug:113 127.0.0.1 "?[37mGET > /+index/help-en HTTP/1.1?[0m" 200 - > > 2022-08-23 15:42:53,476 INFO werkzeug:113 127.0.0.1 "?[37mGET > /static/img/mime-type/moin-text.png HTTP/1.1?[0m" 200 - > > It took nearly 9 seconds between the time when I clicked on the first > link and when it actually rendered. You can see the difference between > the two first lines. The first log entry with the > "moin.signaling.log:19" is when I clicked on it (15:42:33). The next > log entry is when it actually rendered (15:42:42). The second link was > not quite as long, but still took quite some time. > > I don't remember using any complex macros on the old site. I did check > the plugins directory and there was one for calendar and another one > for newaccounts. Even so, they shouldn't have made a difference when > clicking on the help pages, right? > > I have also tried using sqlite as a backend, and it didn't make a > difference. > > Scott. > > > > On 8/23/2022 15:04, Ulrich B. wrote: >> Did you try to load the help pages? You can run >> >> moin load-help -n en >> moin load-help -n common >> >> Opening following pages should last less than 1 second >> >> http://localhost:8080/help-en/Home >> http://localhost:8080/+index/help-en >> >> Are you using a lot of macros in your wiki? Is there a difference >> between simple pages without macros and complex wiki pages? >> >> With regards, >> Ulrich >> _______________________________________________ >> moin-devel mailing list >> moin-devel at python.org >> https://mail.python.org/mailman/listinfo/moin-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Wed Aug 24 11:02:25 2022 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Wed, 24 Aug 2022 15:02:25 +0000 (UTC) Subject: [moin-devel] Moin2 Performance Problems In-Reply-To: References: Message-ID: <1495080751.818269.1661353345294@mail.yahoo.com> Added an issue:??Slow response after import19 ? Issue #1310 ? moinwiki/moin (github.com) On Tuesday, August 23, 2022 at 09:59:16 PM MST, M. Scott Reynolds wrote: I ran at the command prompt, "moin index-optimize" and that fixed it! On 8/23/2022 15:51, M. Scott Reynolds wrote: I loaded the help pages. With the server running in debug mode, part of the log output is this when I click on those two links: 2022-08-23 15:42:33,524 INFO moin.signalling.log:19 item MyMoinMoin:help-en/Home displayed 2022-08-23 15:42:42,744 INFO werkzeug:113 127.0.0.1 "?[37mGET /help-en/Home HTTP/1.1?[0m" 200 - 2022-08-23 15:42:43,312 INFO werkzeug:113 127.0.0.1 "?[37mGET /+get/+f9f0caf384f048aead91c7d4bf69dc96/help-common/logo.png HTTP/1.1?[0m" 200 - 2022-08-23 15:42:53,297 INFO werkzeug:113 127.0.0.1 "?[37mGET /+index/help-en HTTP/1.1?[0m" 200 - 2022-08-23 15:42:53,476 INFO werkzeug:113 127.0.0.1 "?[37mGET /static/img/mime-type/moin-text.png HTTP/1.1?[0m" 200 - It took nearly 9 seconds between the time when I clicked on the first link and when it actually rendered. You can see the difference between the two first lines. The first log entry with the "moin.signaling.log:19" is when I clicked on it (15:42:33). The next log entry is when it actually rendered (15:42:42). The second link was not quite as long, but still took quite some time. I don't remember using any complex macros on the old site. I did check the plugins directory and there was one for calendar and another one for newaccounts. Even so, they shouldn't have made a difference when clicking on the help pages, right? I have also tried using sqlite as a backend, and it didn't make a difference. Scott. On 8/23/2022 15:04, Ulrich B. wrote: Did you try to load the help pages? You can run moin load-help -n en moin load-help -n common Opening following pages should last less than 1 second http://localhost:8080/help-en/Home http://localhost:8080/+index/help-en Are you using a lot of macros in your wiki? Is there a difference between simple pages without macros and complex wiki pages? With regards, Ulrich _______________________________________________ moin-devel mailing list moin-devel at python.org https://mail.python.org/mailman/listinfo/moin-devel _______________________________________________ moin-devel mailing list moin-devel at python.org https://mail.python.org/mailman/listinfo/moin-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From mscottreynolds at gmail.com Wed Aug 24 21:26:29 2022 From: mscottreynolds at gmail.com (M. Scott Reynolds) Date: Wed, 24 Aug 2022 19:26:29 -0600 Subject: [moin-devel] quickinstall.py creating moin.exe from fresh install on Windows OS Message-ID: <9634d13a-2059-8dc8-d5bb-f82c358041ce@gmail.com> I've been playing around with doing fresh installs on both Windows and under my Debian WSL to get myself familiar with how it all works; I've been running quickinstall.py under VSCode from both environments and watching the debug output. I've noticed that under Windows, a moin.exe program is created under -venv-\scripts\ whereas under Linux it is a shell script with python code used to start Moin2. Where does the moin.exe come from? Is it compiled somewhere in the quickinstall process when run on Windows? I hope you don't mind my asking questions like this as I am trying to get a feel for how everything works so I can start working on fixing bugs and stuff. :-) On a side note, I first ran into issues with Windows installs when the python.exe was installed in a path that had spaces in it. I eventually got it to work, but I want to make sure I didn't break anything else. Scott. From crosseyedpenguin at yahoo.com Thu Aug 25 10:46:50 2022 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Thu, 25 Aug 2022 14:46:50 +0000 (UTC) Subject: [moin-devel] quickinstall.py creating moin.exe from fresh install on Windows OS In-Reply-To: <9634d13a-2059-8dc8-d5bb-f82c358041ce@gmail.com> References: <9634d13a-2059-8dc8-d5bb-f82c358041ce@gmail.com> Message-ID: <1055224441.1359343.1661438810173@mail.yahoo.com> afaik it is a pip (or venv) feature. There is no code in Moin2 to create the moin.exe file nor create the Include, Lib, and Scripts directories within moin-venv-python. I have Locust installed on Windows 10 and it has a \Scripts\locust.exe file. See moin\contrib\loadtesting\locust or install Locust per?https://docs.locust.io/en/stable/index.html CLI parameters with embedded spaces must be enclosed in quotes. On Wednesday, August 24, 2022 at 06:26:36 PM MST, M. Scott Reynolds wrote: I've been playing around with doing fresh installs on both Windows and under my Debian WSL to get myself familiar with how it all works; I've been running quickinstall.py under VSCode from both environments and watching the debug output. I've noticed that under Windows, a moin.exe program is created under -venv-\scripts\ whereas under Linux it is a shell script with python code used to start Moin2. Where does the moin.exe come from? Is it compiled somewhere in the quickinstall process when run on Windows? I hope you don't mind my asking questions like this as I am trying to get a feel for how everything works so I can start working on fixing bugs and stuff. :-) On a side note, I first ran into issues with Windows installs when the python.exe was installed in a path that had spaces in it. I eventually got it to work, but I want to make sure I didn't break anything else. Scott. _______________________________________________ moin-devel mailing list moin-devel at python.org https://mail.python.org/mailman/listinfo/moin-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: