cancel
Showing results for 
Search instead for 
Did you mean: 

5.5.0.4 on QNX dbstop high CPU for a long time

Breck_Carter
Participant
0 Kudos
1,408

Can anyone think of a reason dbstop may take a long time to run, with high CPU?

Is it likely to be the final CHECKPOINT, and if so, why?

All the properties and options look normal, but (alas) I don't have realtime access to the servers.

VolkerBarth
Contributor
0 Kudos

Wow, where is that "ancient" tag? 🙂

Vlad
Product and Topic Expert
Product and Topic Expert
0 Kudos

is it possible to stop DB with SQL? (I don't know)

Breck_Carter
Participant
0 Kudos

STOP ENGINE engine-name UNCONDITIONALLY; ...which does exist in V5.5.

I will suggest it, thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

johnsmirnios
Participant

Shutting down also disconnects & rolls back all transactions. If you have a very large uncommitted transaction, it can take a long time to roll it back.

I would normally expect checkpoints to be IO intensive rather than CPU intensive. If you still suspect the checkpoint, are they using an SSD and an enormous cache? These seem unlikely since they are using 5.x software... In any case, IO to SSD is fast enough that you would probably see lots of CPU and you'd need an enormous (and very dirty) cache to make the checkpoint take a long time. You could try to do a manual checkpoint before shutting down and seeing if you observe the same high-cpu behaviour.

I think the rollback is more likely.

Breck_Carter
Participant

> large uncommitted transaction

Yes, of course, excellent!

I am guessing that a large SELECT PROPERTY ( 'RollbackLogPages' ) would predict a slow dbstop, correct?

(yes, normally that's a DB_PROPERTY thing, but not in 5.5 🙂

VolkerBarth
Contributor

Inevitable suggestion: I'd recommend to test with the latest 5.5.05 EBF, 5.5.04 is so old:)