npiaget
(Nicolas Piaget)
March 17, 2021, 9:30am
1
Module: OpenHMIS Cashier Module
Module Version: 4.0.0
System Version: 2.3.0
Reference Application Module: 2.10.0
Issue or Question:
When the server is started with the cashier module. It will stay at the Initializing EhCache CacheManager
stage for more than 40 minutes. Without the module this stage takes less than 10 minutes.
I’m willing to try debugging this, but I’m clueless on where to start. Thanks for your help!
dkayiwa
(Daniel Kayiwa)
March 17, 2021, 7:53pm
2
Try the latest snapshot version of the module.
npiaget
(Nicolas Piaget)
March 19, 2021, 9:51pm
3
Thanks for reaching out.
Sadly it is still the same with the latest snapshot version:
Here is my openmrs-distro.properties
openmrs-distro.properties
#Fri Mar 19 20:59:10 GMT 2021
db.h2.supported=false
db.sql=classpath\://openmrs-distro.sql
name=Reference Application
omod.addresshierarchy=2.11.0
omod.adminui=1.3.0
omod.allergyui=1.8.2
omod.appframework=2.14.0
omod.appointmentscheduling=1.12.0
omod.appointmentschedulingui=1.9.0
omod.appui=1.12.0
omod.atlas=2.2
omod.atlas.type=omod
omod.attachments=2.2.0
omod.calculation=1.2
omod.coreapps=1.28.0
omod.dataexchange=1.3.4
omod.emrapi=1.28.0
omod.event=2.7.0
omod.event.groupId=org.openmrs
omod.fhir=1.20.0
omod.formentryapp=1.4.2
omod.htmlformentry=3.10.0
omod.htmlformentryui=1.10.0
omod.htmlwidgets=1.10.0
omod.idgen=4.5.0
omod.legacyui=1.6.0
omod.metadatadeploy=1.11.0
omod.metadatamapping=1.3.4
omod.metadatasharing=1.6.0
omod.openhmis.backboneforms=3.0.0
omod.openhmis.cashier=4.1.0-SNAPSHOT
omod.openhmis.commons=4.0.0
omod.openhmis.inventory=3.1.0-SNAPSHOT
omod.owa=1.10.0
omod.patientqueueing=1.1.0
omod.providermanagement=2.10.0
omod.referenceapplication=2.10.0
omod.referencedemodata=1.4.5
omod.referencemetadata=2.10.2
omod.registrationapp=1.16.0
omod.registrationcore=1.9.0
omod.reporting=1.20.0
omod.reportingcompatibility=2.0.6
omod.reportingrest=1.11.0
omod.reportingui=1.6.0
omod.serialization.xstream=0.2.14
omod.serialization.xstream.type=omod
omod.uicommons=2.12.0
omod.uiframework=3.17.0
omod.uilibrary=2.0.6
omod.webservices.rest=2.28.0
owa.openmrs-owa-sysadmin=1.2
version=2.10.0
war.openmrs=2.3.0
dkayiwa
(Daniel Kayiwa)
March 20, 2021, 6:07pm
4
Just for troubleshooting purposes, are you able to reproduce it with the latest release of the reference application?
npiaget
(Nicolas Piaget)
March 20, 2021, 10:15pm
5
Yes, I’m able to reproduce it with the latest release:
version=2.12.0-SNAPSHOT
war.openmrs=2.4.0
dkayiwa
(Daniel Kayiwa)
March 21, 2021, 8:08pm
6
openhmis.cashier-4.1.0-SNAPSHOT.csv (376.8 KB)
Try the attached module. Remember to rename the file extension from csv
to omod
1 Like
dkayiwa
(Daniel Kayiwa)
March 23, 2021, 9:51am
8
cashier.csv (77.9 KB)
Attached is the patch file. Remember to rename the file extension from csv
to patch
npiaget
(Nicolas Piaget)
March 24, 2021, 3:24pm
9
Thanks for the patch!
Are you planning to send the changes upstream? Would you like me to do it? I could open the bug issue and make PR for this, with your changes.
npiaget
(Nicolas Piaget)
April 14, 2021, 11:45am
11
I have forked the module and implemented your changes.
@dkayiwa Would it be alright to ask for a PR ?
@insiderish Daniel helped me to fix the very slow Initializing of EhCache on the module. Would you be interested in a PR?
insiderish
(Andrew Moko)
April 14, 2021, 1:09pm
12
Great! Go ahead and do it.
Thanks!
npiaget
(Nicolas Piaget)
April 16, 2021, 11:31am
13
OK thanks, here is the pull request:
OpenHMIS:develop
← npiaget:EhCache
opened 11:31AM - 16 Apr 21 UTC