› Clovertech Forums › Cloverleaf › thread / process slow to start
What would cause slowness in the thread / process starting?
One thing – but not the only thing – is a Recovery DB which has a lot of Active messages in it.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
A couple of things could be the database files have grown large or there are a lot of queued messages on the thread.
You can use the db init command (hcidbinit) to re-initialize the database files – BE VERY CAREFUL WITH THIS COMMAND – it will wipe out all queued messages in the recovery and error databases for that site. When I need to issue this command, I do the following steps:
Paul Bishop
Carle Foundation Hospital
Urbana, IL
The process had 830k messages in the recovery DB. This is a test system so I exported and cleared them out. There are no messages in the recovery or error DB’s. However, I’m still seeing slowness in the process coming up.
By clearing them out, do you mean you just deleted them or did you do the database initialization? If you didn’t do the initialization, the database file is still at the same size it was with the 830K messages and will take a while to load up even if it is empty.
Paul Bishop
Carle Foundation Hospital
Urbana, IL
Deleted. I did the dbinit and the processes are starting up as expected now. Thank you for the help. Since the DB’s size won’t change when the messages are deleted, is it recommended to reinitialize the DB’s when they grow this large?
Is there anyway to limit the size of the DB or to prevent this from happening?
Limit the size of the DB? No. If we did that then data could potentially be lost.
If you are really worried about space and speed, you can turn off recovery DB in your test environment if you don’t need to worry about persisting the messages when you stop and start things. This is a setting on each thread’s properties.
Note that the database file size will reach a “high water mark”, that is if messages are deleted from the database, the space will be re-used as new messages are added.
Another thing you can do to shrink the size of the database non-destructively is run the following commands (lock manager, all processes need to be shut down first)
hcidbinit -i -C -f
dbdefrag rlog
Rob Abbott
Cloverleaf Emeritus
Is this a Test environment or the Production Environment?
Are the Test and Prod Environment on different servers?
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
Future PROD environment. Our current LIVE / PROD (6.1) cloverleaf resides on the same server. I am working on moving over to this new server (19.1.1). I’ve moved a few things over and am using it for non-critical interfaces and some testing until 19.1.2 has came out at which time, LIVE and PROD will then be on 2 separate servers.
If I understand correctly there are 2 Cloverleaf versions on the same server.
Could it be the server is not properly sized for the workload? Don’t forget about I/O.
I think you have some detective work to do.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
Only 1 version on each server.
server1: current prod/test [6.1] (future test)
server2: future prod [19.1.1]
This is occurring on server2 and have seen it on server1 as well.
Consider over committed processes or sites if platform is properly sized. But make sure the platform is properly sized for the workload.
It is also possible Tcl code used at thread startup is less than efficient.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.