cancel
Showing results for 
Search instead for 
Did you mean: 

Why the queue is locked in SMQ2?

Former Member
0 Kudos

Sometimes,I find the queue would be locked in SMQ2 ,so i have to release the locked queue so that it can keep on working normally.

I'd like to know what reason can cause the queue locked ?Once the queue is locked,how to get the notificaion?

thanks in advance.

Regards,

brand

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

queues are locked when the load to the processor is hight..and the second task is in queue while first one is processing at that time..secodn process will be locked after some time..extent

1) clear the queues in SMQ2,first try to activate them,if that doesn't work them delete them

2)You may need to re-register your queues.

Follow SXMB_ADM -> Manage Queues -> Deregister Queues

Afterwards, re-register the queues and activate from the same screen

3)Only use SMQ1 (outbound queues) and SMQ2 (inbound queues) if re-registering doesn't fix it. You will need to give the queues sometime to get activated so be patient.

4)From SXMB_MONI go to Queue ID of the message, a click here shall take you to qRFC monitor.

if the messages are stuck, you should see an entry indicating number of messages stuck in the queue.

a double click on the entry shall take you to detailed list.

if the messages are stuck because of any error (other than queue not registered etc for e.g. a message failure) then the first message shall show you that.

if indeed you find a message stuck in the queue then the way is to delete the stuck message (DONT DO THIS IN PRODUCTION SERVER without being sure of what does this mean for that particular process !!) and unlock the queue from previous screen.

5)Go to smq2 and execute F8. Then it should come as Nothing was Selected.

If any queues are present then open a queue.if the status is SYS ERROR check the entries,right click on the status text and give save LUW.This brings queue to READY. .

GoTo-> Qin Scheduler: check for the scheduler status to be inactive->Edit-> Activate Scheduler: status frm inactive to starting to wait.Now the queue will be RUNNING.U can see the entries in the queue moving.

Now go to SMQ3, right click on the queue and give Restore LUW.

6)this basically means tht message is waiting in the queue.

in sxmb_moni go to queue Id column and double click on the entry .It will take u to SMQ2.Check the status of the queue

If its SYSFAIL or STOP then double click on it and try to correct the error.After correcting the error send the message again.Also check whether the Queeu is Registred in transaction SMQR.

7)Select your queue form the sxmb_moni, you will reacht he QRFC monitor.

Here you will see some lock figures on the , Select on the 'Unlock Queues'. Activate your queues once again.

This is if your data is correct and queue is stuck. You should only delete the queue if it has errored out due to incorrect data and you need to urgenetly process the rest of the data in the queue.

If you drill down one step more than selct the error message and on the menu select edit-->Save LUW.

Former Member
0 Kudos

Hi,

Thank you guys .I think i have resolved this problem,

thank you krishnachitanya.it's very useful.

Best Regards,

Brand

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

Due to connection failure or some other system failure the queue will stop...

If once any failure in the queue then after posting msg also stop...

so that we need to run the 3 reports in Xi system..

it will automate the queue process if any error accure ...

If periodicaly u ill run this reports then the reports will Automate your failure messages ..

Trfc- RSQIWKEX

Qrfc – RSARFCEX

OtherErrors- RSXMB_RESTART_MESSAGES...

Regards,

Prakasu

Former Member
0 Kudos

sorry, it was not the good post... oups

Edited by: Mickael Huchet on Apr 15, 2008 8:05 AM

Former Member
0 Kudos

Hi,

This Queue Lock will happen if the Target system is down or some wrong configuration settings.

Check this

/people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically

Regards

Seshagiri