[Koha-bugs] [Bug 20582] Turn Koha into a Mojolicious application
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Nov 5 20:12:37 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20582
--- Comment #29 from Jerome Charaoui <jcharaoui at cmaisonneuve.qc.ca> ---
I'd like to share some results of our first Koha/Mojolicious lab that happened
earlier today. Functionality-wise everything was up to par. One thing I noticed
is that the 10 hypnotoad workers quickly grew memory hungry. Here is the
smemstat output:
PID Swap USS PSS RSS User Command
8719 28.3 M 501.0 M 502.7 M 525.6 M root
/usr/share/koha/bin/koha
8718 71.6 M 484.9 M 486.6 M 509.4 M root
/usr/share/koha/bin/koha
8726 28.3 M 483.7 M 485.4 M 508.3 M root
/usr/share/koha/bin/koha
8724 28.3 M 479.7 M 481.4 M 504.4 M root
/usr/share/koha/bin/koha
8721 28.3 M 454.2 M 456.0 M 478.9 M root
/usr/share/koha/bin/koha
8720 28.6 M 452.0 M 453.7 M 476.6 M root
/usr/share/koha/bin/koha
8723 28.3 M 427.4 M 429.1 M 451.9 M root
/usr/share/koha/bin/koha
14932 28.3 M 306.5 M 308.2 M 330.9 M root
/usr/share/koha/bin/koha
23653 28.4 M 247.6 M 249.4 M 272.3 M root
/usr/share/koha/bin/koha
23103 28.3 M 240.3 M 242.1 M 264.9 M root
/usr/share/koha/bin/koha
We can see all the workers using up between 240 to 500M of unshared memory.
When hypnotoad starts fresh, each worker uses up about 125M.
This is the current hypnotoad config:
{
basepath => '/usr/share/koha',
hypnotoad => {
listen => ['http://127.0.0.1:3000'],
workers => 10,
pid_file => '/run/koha/koha-app.pid'
}
};
In order to deal with this I modified the config by adding "accepts => 200" so
that workers get recycled more quickly. If you have any other ideas as to how
we could deal with memory usage, please let us know!
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list