Bugzilla – Attachment 127329 Details for
Bug 28413
background job worker is running with all the modules in RAM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28413: Reduce background job worker memory footprint
Bug-28413-Reduce-background-job-worker-memory-foot.patch (text/plain), 1.40 KB, created by
Victor Grousset/tuxayo
on 2021-11-05 03:11:14 UTC
(
hide
)
Description:
Bug 28413: Reduce background job worker memory footprint
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2021-11-05 03:11:14 UTC
Size:
1.40 KB
patch
obsolete
>From 048dd76a49ed77ff4559b4e3868ae74a23cbc86f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 May 2021 11:57:20 +0200 >Subject: [PATCH] Bug 28413: Reduce background job worker memory footprint > >It's loading the modules in RAM then forks. >Then do not need it to have them loaded in the parent process (the worker/daemon). > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > Koha/BackgroundJob.pm | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > >diff --git a/Koha/BackgroundJob.pm b/Koha/BackgroundJob.pm >index c5cfd90899..cb8a71fb04 100644 >--- a/Koha/BackgroundJob.pm >+++ b/Koha/BackgroundJob.pm >@@ -25,13 +25,6 @@ use Try::Tiny qw( catch try ); > use C4::Context; > use Koha::DateUtils qw( dt_from_string ); > use Koha::Exceptions; >-use Koha::BackgroundJob::BatchUpdateBiblio; >-use Koha::BackgroundJob::BatchUpdateAuthority; >-use Koha::BackgroundJob::BatchUpdateItem; >-use Koha::BackgroundJob::BatchDeleteBiblio; >-use Koha::BackgroundJob::BatchDeleteAuthority; >-use Koha::BackgroundJob::BatchDeleteItem; >-use Koha::BackgroundJob::BatchCancelHold; > > use base qw( Koha::Object ); > >@@ -246,6 +239,7 @@ sub _derived_class { > Koha::Exceptions::Exception->throw($job_type . ' is not a valid job_type') > unless $class; > >+ eval "require $class"; > return $class->new; > } > >-- >2.33.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28413
:
121274
|
125392
|
125941
|
127081
| 127329 |
127598