Bug 28415 - z3950_responder.pl is running with all the modules in RAM
Summary: z3950_responder.pl is running with all the modules in RAM
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 28410
  Show dependency treegraph
 
Reported: 2021-05-21 12:01 UTC by Jonathan Druart
Modified: 2021-05-24 01:06 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2021-05-21 12:01:27 UTC
It's using C4::Biblio and C4::Koha (and so all the modules stack) but it only needs GetMarcFromKohaField and GetAuthorisedValues. We should replace those 2 calls and see if it reduces the memory footprint of the daemon.
Comment 1 Jonathan Druart 2021-05-21 12:20:11 UTC
30M can be saved is we remove C4::Biblio and C4::Koha

Then we should replace the 2 use in the SearchEngine conditional with require statements (ie. don't need to load Koha::Z3950Responder::ZebraSession if we are using elastic).

And it's down to ~45M (vs 160Mo), before the a request is made.
Comment 2 Jonathan Druart 2021-05-21 12:30:35 UTC
Is it worth it?
Comment 3 David Cook 2021-05-24 01:06:10 UTC
(In reply to Jonathan Druart from comment #2)
> Is it worth it?

I think that it would be worth it.