thread / process slow to start

Homepage Clovertech Forums Cloverleaf thread / process slow to start

  • Creator
    Topic
  • #116480
    Stewart
    Participant

    What would cause slowness in the thread / process starting?

Viewing 12 reply threads
  • Author
    Replies
    • #116481
      Jim Kosloskey
      Participant

      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 29+ years Cloverleaf, 59 years IT - old fart.

    • #116482
      Paul Bishop
      Participant

      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:

      1. do a setsite command if you are doing this from a text session
      2. shut down all incoming threads in the site
      3. wait for all the messages to clear out.  The alternative to this is to use the hcidbdump command to offload all the messages, but this is cumbersome if there are a lot of messages and/or threads since they need to be offloaded by each destination and state.
      4. once all messages have cleared out, shut down all other threads and processes for that site.
      5. Stop the Lock Manager and Monitor Daemon for that site
      6. Issue the db init command (hcidbinit).  I use the “-ACf” flags with it – look in help for explanations.
      7. Start the Lock Manager and Monitor Daemons up
      8. Start up your processes and threads.

       

      Paul Bishop
      Carle Foundation Hospital
      Urbana, IL

    • #116490
      Stewart
      Participant

      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.

    • #116492
      Paul Bishop
      Participant

      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

    • #116493
      Stewart
      Participant

      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?

    • #116494
      Stewart
      Participant

      Is there anyway to limit the size of the DB or to prevent this from happening?

    • #116506
      Rob Abbott
      Keymaster

      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

    • #116517
      Jim Kosloskey
      Participant

      Is this a Test environment or the Production Environment?

      Are the Test and Prod Environment on different servers?

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #116519
      Stewart
      Participant

      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.

    • #116520
      Jim Kosloskey
      Participant

      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 29+ years Cloverleaf, 59 years IT - old fart.

    • #116521
      Stewart
      Participant

      Only 1 version on each server.

      server1: current prod/test [6.1] (future test)

      server2: future prod [19.1.1]

    • #116522
      Stewart
      Participant

      This is occurring on server2 and have seen it on server1 as well.

    • #116523
      Jim Kosloskey
      Participant

      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 29+ years Cloverleaf, 59 years IT - old fart.

Viewing 12 reply threads
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,448
Topic Tags
288
Empty Topic Tags
10