[Koha] Koha performance on Debian

Michael Kuhn mik at adminkuhn.ch
Wed Feb 5 12:15:13 NZDT 2025


Hi Paul

Today you wrote:

 > I thought I had set up Plack but when I checked there was no variable
 > 'PlackEnabled' in systempreferences when I ran this query.
 >
 > SELECT *
 > FROM systempreferences
 > WHERE variable = 'PlackEnabled';

There is no such system preference in Koha.

 > I ran this in the cli
 > sudo koha-plack --enable library
 > Plack not enabled for library OPAC
 > Plack not enabled for library Intranet
 > but when I run sudo koha-plack --start it says Plack already running
 > for library
 >
 > Any ideas?

There seems to be something wrong... When Plack is already running the 
output should look as follows (as on my Koha demo installation with 
instance "koha" and Plack running):

$ sudo koha-plack --enable koha
Plack already enabled for koha OPAC
Plack already enabled for koha Intranet
$ sudo koha-plack --start koha
Error: Plack already running for koha: failed!
$ sudo koha-plack --status koha
Plack running for koha:.

The following shows the instances with Plack enabled and the instances 
with Plack disabled:

$ sudo koha-list --plack
koha
$ sudo koha-list --noplack

After enabling and starting Plack try restarting the Apache HTTP Server, 
according to some mailinglist threads it seems to have helped some in 
the past. Thus:

$ sudo koha-plack --enable koha
$ sudo koha-plack --start koha
$ sudo systemctl restart apache2

And again: Have you checked the log files in directory 
"/var/log/koha/instancename"? There should be various logfile names 
starting with plack...

Best wishes: Michael
-- 
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch



 > On Tue, Jan 28, 2025 at 4:32 PM Michael Kuhn <mik at adminkuhn.ch
> <mailto:mik at adminkuhn.ch>> wrote:
> 
>     Hi Paul
> 
>     You wrote:
> 
>       > I am running an instance of Koha 23.11.10 on Debian 12.8 on a HyperV
>       > VM. I have allocated 16gb of RAM and 16 virtual processors. I have
>       > not yet loaded all the data from another system we are exporting
>     from
>       > and just have a few patrons entered. It takes about 12 seconds
>     before
>       > it displays the list of patrons. Any suggestions on what to check?
>       > When I look at the top command it shows app.pl <http://app.pl>
>     is taking 100% of the
>       > CPU when searching. Other parts of Koha are running slow as
>     well. Any
>       > suggestions would be appreciated.
> 
>     Have you checked the log files in directory "/var/log/koha"?
> 
>     Have you set up Plack as described here?
> 
>     https://wiki.koha-community.org/wiki/Koha_on_Debian#Set_up_plack
>     <https://wiki.koha-community.org/wiki/Koha_on_Debian#Set_up_plack>
> 
>     Hope this helps.
> 
>     Best wishes: Michael
>     -- 
>     Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
>     Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
>     T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch
>     <mailto:mik at adminkuhn.ch> · W www.adminkuhn.ch <http://www.adminkuhn.ch>
>     _______________________________________________
> 
>     Koha mailing list http://koha-community.org <http://koha-community.org>
>     Koha at lists.katipo.co.nz <mailto:Koha at lists.katipo.co.nz>
>     Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>     <https://lists.katipo.co.nz/mailman/listinfo/koha>
> 





More information about the Koha mailing list