Dequeue timeout NOT timing out

Hi, we have an application that uses the pure JDBC drivers and the AQ api to dequeue messages off an 8.1.7.2 queue with object payloads. We user navigation next message and the queue properties are:
owner : QUEUEMGR
name : FXD_QUEUE
queue table : FXD_MSG_QUEUE
[AQQueueProperty]
type : NORMAL
max_retries : 0
retry_interval : 0.0
retention_time : 0.0
dep_tracking : false
comment : null
auto_commit : true
Payload type : OBJECT
Users enqueue messages through a stored procedure, which after calling enqueue it goes into a loop checking the queue table for the existence of that message every few ms. If the message does not leave the queue within 5 seconds, an error is thrown to the user. We are experiencing a problem with the queue in that sometimes the dequeue call would block for a very long time (1, 2 even 4 minutes) as if there were no messages, while on the same time users where getting errors thrown as they were enqueueing messages that were not received within 5 seconds. We tried to work around that by setting the dequeue timeout to 2 seconds, hoping that unblocking and calling dequeue again would work, and we added very verbose logging to know exactly where the time is spent.
While normally our log file looks like:
[Wed Sep 11 15:07:17 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
[Wed Sep 11 15:07:17 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
[Wed Sep 11 15:07:19 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
[Wed Sep 11 15:07:19 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
[Wed Sep 11 15:07:21 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
[Wed Sep 11 15:07:21 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
[Wed Sep 11 15:07:23 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
[Wed Sep 11 15:07:23 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
[Wed Sep 11 15:07:25 GMT+03:00 2002],Informative,Blocking dequeue returned message
[Wed Sep 11 15:07:25 GMT+03:00 2002],Informative,OracleAQRetriever: processing msg from dequeue call
At random intervals we get :
[Wed Sep 11 15:07:43 GMT+03:00 2002],Informative,OracleAQRetriever: Dequeue timeout due to inactivity.
[Wed Sep 11 15:07:43 GMT+03:00 2002],Informative,Calling blocking dequeue on AQ Api
[Wed Sep 11 15:08:56 GMT+03:00 2002],Informative,Blocking dequeue returned message
[Wed Sep 11 15:08:56 GMT+03:00 2002],Informative,OracleAQRetriever: processing msg from dequeue call
which means that now we called dequeue at 15:07:43, there was a meesage so there was no reason to timeout. The method returned over a minute
later with a message.
Is there anything that could be causing it not to timeout every 2 seconds?
Is there anything that could be causing it not to dequeue the message immediately but with a huge delay?
Kind regards,
alex

Hi,
While de-queing the dequeue session does not refresh after every dequeue.The message list is read only once i.e during the first dequeue call of the session.If the first dequeue call sees only 3 messages it would dequeue only 3 messages even if more messages are added(through enqueue) after the first dequeue.
To overcome this you can set dbms_aq.dequeue_options_t 's navigation property to DBMS_AQ.FIRST_MESSAGE(the default is dbms_aq.next_message) before every call to dequeue is made.
loop
set the property to first message
dequeue
end loop
Thanks
Gautham C
[email protected]

Similar Messages

  • OSB Business Service is not timing out on Connection/Read timeout

    I have a weird problem with my business service in OSB. I have set the read timeout value as 1 sec and Connection timeout value as 1 sec. The response from backend is taking more than 2 seconds or even 3 seconds but still my business service is not timing out..! My service is still listening to the response from backend even if it comes after 3 seconds. I expect it to timeout after 2 seconds. Any ideas?
    Business Service Configurations:
    Service Type: Any type
    Protocol: http
    Retry count : 0
    Retry Application Errors: No
    Read Timeout: 0
    Connection Timeout: 0
    HTTP Request Method: POST
    Result Caching: No
    Let me know if you need any more information. Thanks in Advance.
    Regards
    Kaleem

    AbhishekJ wrote:
    Maximum possible successful response time of the service will be less than Read TO + Connection TO.
    Alas, this is not true.
    Maximum possible response time is infinity.
    There are two reasons for that.
    1. Read timeout is not counted as time from the successful connection establishing to the current moment. It is measured as time from the last received byte to now. Imagine a backend service that sends a single byte in a data packet every 500ms. Despite you have read timeout set to 1, the receiving of 3K message will take 25 minutes, and yet your Biz service will not timeout.
    2. In HTTPS, handshake is handled by a separate library which has its own quirks. Specifically, if the key exchange is broken at particular point of handshake, the library re-establishes the connection and does it few times; in my experiements, the largest I could delay the eventual fault was about 3 minutes.
    Having said that, in the OP message the configuration is Read=0, Connect=0, so I wonder why the timeout is expected.

  • Lighthouse Approvals not timing out

    I'm running into a problem where my lighthouse approvals are not timing out. I've declared the timeout value and I'm only transitioning onto the success path if the return from the approvals.approved variable is set to true. My problem is that the approval never times out, nor does it escalate if an escalator is declared.
    Has anyone run into this before? Is there something in the Lighthouse Approvals that I need to change for this to work? Any help would be greatly appreciated
    <Activity id='8' name='Director Approval'>
    <Action id='0' process='Lighthouse Approvals'>
    <Variable name='allApprovals' value='false'/>
    <Variable name='approvalTemplate' value='UserForm-DirApproval'/>
    <Variable name='approvalForm' value='UserForm-RoleApproval'/>
    <Variable name='user' value='$(userView)'/>
    <Variable name='authorized' value='true'/>
    <Variable name='subject' value='Configurator'/>
    <Variable name='approvals'>
    <rule name='RuleLibrary:Get Approval Role'/>
    </Variable>
    <Variable name='additionalApproversList'>
    <list>
    <ref>director</ref>
    </list>
    </Variable>
    <Variable name='timeout' value='3'/>
    <Return from='approvals.approved' to='DirApproval'/>
    </Action>
    </Activity>

    I found that if I make the timeout variable external rather than input in the Multi Approval subprocess that it works. It looks like the Lighthouse Approval calls the multi approval subprocess, but wasn't passing the timeout value to it correctly.

  • Request threads not timing-out

    I am connecting to the crystal report server(11.5) using RAS APIs from my web application hosted on Websphere 6.
    It seems the threads are not timing out, below are the threads:
    com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded$SenderThread                                                               
    com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded$ReceiverThread      
    com.crystaldecisions.thirdparty.com.ooc.OB.GIOPServerStarterThreaded$StarterThread                                                             
    com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded$SenderThread                                                               
    com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded$ReceiverThread     
    I tried putting clientSDKOptions.xml in my web application but it doesn't seem to be working.
    Any inputs to this will be helpful.

    I'd give more details concerning the clientSDKOptions.xml.
    Sincerely,
    Ted Ueda

  • Session not timing out...

    Hi all, for some reason, my session is not timing out. If I
    leave my browser and come back the next day, I can still continue
    working. Can someone tell me why?
    My code
    <cfapplication name="myApp" sessionmanagement="yes"
    sessiontimeout="#CreateTimeSpan(0,0,30,0)#">
    Thank you so much,
    C

    Hi Ian, how can I make it so that after 30 minutes if a user
    tries to
    hit any page in my site, they would go back to login page to
    relogin?
    Thanks so much,
    C
    Check that the session data still exists. This will very
    depending on
    how exactly you are handling your login state. But since you
    mention
    session, I will presume you are rolling your own rather then
    using the
    <cflogin...> some other functionality.
    I would do something like this in my code.
    <cfif NOT StructKeyExists(session, "LoginName")>
    <cflocation url="LoginForm.cfm">
    </cfif>
    Obviously you would set session.LoginName to some value on a
    successful
    login. Also note that if this check occurs before the
    LoginForm.cfm
    page you will create an endless loop. There are much more
    sophisticated
    solutions, but this gives you a bare bones option.

  • JRUN Apache connector not timing out despite setting recvTimeout

    Hi,
           I have set a recvTimeout for the JRUN apache connector using the
        [Thu Dec 15 15:29:48 2011] [notice] jrApache[3068: 20480]     ap_escape_uri(TimeoutTest.cfm) = TimeoutTest.cfm
    [Thu Dec 15 15:29:48 2011] [notice] jrApache[3068: 20480]  jrun_trans: sub-request so DECLINED
    [Thu Dec 15 15:29:48 2011] [notice] jrApache[3068: 20480]     getRealPath(TimeoutTest.cfm) = TimeoutTest.cfm
    [Thu Dec 15 15:29:48 2011] [notice] jrApache[3068: 20480]  sent/avail/result 79/79/79
    [Thu Dec 15 15:29:53 2011] [notice] jrApache[3068: 20480]  read/len/total 4/4/4
    [Thu Dec 15 15:29:53 2011] [notice] jrApache[3068: 20480]  PROXY_GET_HEADER <- [11]
    [Thu Dec 15 15:29:53 2011] [notice] jrApache[3068: 20480]  read/len/total 4/4/4
    [Thu Dec 15 15:29:53 2011] [notice] jrApache[3068: 20480]  read/len/total 21/21/21
    [Thu Dec 15 15:29:53 2011] [notice] jrApache[3068: 20480]     HTTP_X_REQUESTED_WITH: <null>
    [Thu Dec 15 15:29:53 2011] [notice] jrApache[3068: 20480]  sent/avail/result 4/4/4
    [Thu Dec 15 15:34:53 2011] [notice] jrApache[3068: 20480]  67.206.10.197:51050 jrConnect [9]
    [Thu Dec 15 15:34:53 2011] [notice] jrApache[3068: 20480]  sent/avail/result 4/4/4
    [Thu Dec 15 15:34:53 2011] [notice] jrApache[3068: 20480]  67.206.10.197:51050 is reachable
    [Thu Dec 15 15:34:53 2011] [notice] jrApache[3068: 20480]  sent/avail/result 4/4/4
    [Thu Dec 15 15:34:53 2011] [notice] jrApache[3068: 20480]  67.206.10.197:51050 is reachable
    [Thu Dec 15 15:34:53 2011] [notice] jrApache[3068: 20480]  67.206.10.197:51050 returned socket [9] to pool
    [Thu Dec 15 15:34:53 2011] [notice] jrApache[3068: 20480]  jrRecv [11] timeout but server reachable so recv again
    [Thu Dec 15 15:36:33 2011] [notice] jrApache[3068: 20480]  read/len/total 4/4/4
    [Thu Dec 15 15:36:33 2011] [notice] jrApache[3068: 20480]  PROXY_GET_REALPATH <- [11]
    [Thu Dec 15 15:36:33 2011] [notice] jrApache[3068: 20480]  read/len/total 4/4/4
    What does this error mean: jrRecv [11] timeout but server reachable so recv again
    Is the jrun apache connector retrying or waiting some more for the page response ? I dont want it to retry / wait beyond the recvTimeout that I have set. What can I do in the config or elsewhere so that the recvTimeout returns as a timeout to apache and cleint without recv again attempt that it appears to be doing?
    Thanks in advance for any help on this.
    JRunConfig RecvTimeout 300
            I want this setting so long running pages will time out and return after 300 s with a timeout error and return the error back to the client.
    However, I see that the timeout is not working and long running cfm pages continue to cycle without returning. Upon enabling the verbose option I see the following error logged for the long running page after the timeout occurs, but the page does not return anything and continues to wait on the client side.

    sunilr1 wrote:
    Hi,
           I have set a recvTimeout for the JRUN apache connector using the
    JRunConfig RecvTimeout 300
            I want this setting so long running pages will time out and return after 300 s with a timeout error and return the error back to the client.
    That is not the setting to time out long-running pages and then return a message. Why would you want to control request timeouts from JRun anyway? I don't think it's a good idea.
    RecvTimeout determines how long to wait before timing out a socket receive call on a JRun server. The receive call is generally a synchronous call on a socket on a JRun server. It will throw an exception if the time out period is exceeded. In other words,  a long-running page does not necessarily imply a long wait on a socket receive call.

  • Screen not timing out

    Ever since I got the update for my Incredible my screen will not time out regularly.  I have pulled the battery, set and re-set the time out time, but doing so only helps for just a short time (less than a day).  I have my screen time out set for 1 minute.  Has anyone else experienced this problem or knows of a way to fix this?  I had no issues with the screen time out before the update. 

    Is your screen timeout set up correctly? I have provided some steps below to set up your screen timeout. Hope this helps!
    To Access Sound & Display Settings
    From the main screen, touch Menu
    Touch Settings
    Touch Sound & Display
    Select from below options, adjust as needed
    Display Settings
    Screen timeout 
    15 Seconds
    30 Seconds
    1 Minute
    2 Minutes
    10 Minutes
    30 Minutes

  • GPIB vi created with Instrument I/O assistant not timing out

    I am new to Labview and I am trying to write a
    program to control a HiPot tester via GPIB. This HiPot tester is used
    on several other projects, so its GPIB address can vary. I want to use
    Labview to scan for this device on the bus and then configure it.
    I used the Instrument I/O Assistant to create a subVI that can query
    the device for its manufacturer and model information. In this VI I
    created some connectors that allow an outside program to input the bus
    and device number. These numbers are formatted into a string and then
    used to send commands to the GPIB device.
    If I use this vi and specify the correct bus and device IDs for the
    hipot tester, I get back the expected data. However if I send in the
    wrong device ID (or wrong bus), the program hangs.
    The Instrument I/O Assistant creates a timeout value of 2000 msec for
    the operations. The *RST and *IDN? commands are sent first and then the
    VI performs read operations to fill 128 bytes. So I figure that the
    longest this should take to timeout is 2000*130 msec = 4.3 minutes. But
    10 minutes later the VI is still running.
    Why does this operation not timeout if the device and bus IDs on GPIB are not correct?
    Brian Rose

    Hi Brian
    the first problem would appear to be that you send a reset command. But you only give the instrument
    100ms to reset/reboot before your query its identify. If you have the instrument manual check to see actual timing
    of bus etc.
    As a rule of thumb I wait 300ms - If you run  NI spy you will be able to see exactly when processes occur.
    Add a sequence frame between reset command and id command.Place a 
    wait icon in the frame with a control on the input time so that you can
    adjust time from front panel.
    Initially set time to 400msand see what NI spy reveals.
    Go for it
    chow xseadog
    Message Edited by xseadog on 09-10-2005 01:47 AM
    Attachments:
    wait.PNG ‏11 KB

  • Socket not timing out - if network is disabled

    Hi All,
    I am using java.net.Socket to connect to a TCP/IP server. And using timeout in case of non-activity between the server-client.
    This is the code I use to transfer data...
    out = new BufferedWriter(new OutputStreamWriter (
                                            sckt.getOutputStream()));
    in = new BufferedReader(new InputStreamReader(
                                            sck.getInputStream()));
    out.write(msg); //char[]
    out.flush();
    while (! in.ready());Now the server is slow in responding so I have to wait on in.ready() but meanwhile if I disable the network manually... the reader will keep waiting and Socket timeout doesnot take place atall... let me know whats wrong with this idea ....
    thanks a lot,
    Ri

    If you mean pull the wire out of the back of a PC
    running Win2k (and quite possibly other Windows and
    quite possible other OS) then various things seem to
    go wrong at random, including but not limited to some
    but not all threads hanging, the application
    terminating without any message, and so on.It most assuredly does not do that on solaris.
    And I strongly suspect that if the application is code correctly (as the ones that I tested using that on solaris) then it won't happen on windows either. I can't imagine anyway in which a thread will hang when a network cable is pulled, unless of course the thread is blocking indefinitely on a socket. But that happens on any system, since that is the defined behavior of a socket.

  • Weblogic Server 10.3.6, Forms 11.1.2, Sessions not timing out

    On Weblogic Server 10.3.6, Forms 11.1.2, a Forms application contains a query that occasionally takes a long time to complete. Users of the application may close their browser before the query completes; however, their original session remains open consuming WebLogic process threads.
    What information do I need to continue to debug?
    How can I configure weblogic to recognize and kill the zombie threads generated by the conditions described above?

    Hii,
               No resources currently available in pool ePayBatchDS to allocate to applications.
    This exception cleaarly shows the connection are not available to allocate to ePayBatchDS  datasource.
    As you said there are altogether 7 data source out which six are working and one is not.
    In general if you are creating a datasource and providing a connection pool size we should consider the number of connection available or allowed at the database side as well.
    Please cross check at the DB side the number of connection available and based on that try to tune the connection pool size in your data sources.
    Regards,
    Abdul

  • I cant download the latest software update I get 652.7 or 652.8 of file then I get an err=-3259 it says I have timed out and I have not!

    Does anyone have an issue downloading the latest iPhone update.  I get 652.7 of 652.8 of the file and then an err=-3259 and it says i have timed out.  I know I have not timed out though any help?

    Temporarily disable ALL of your antivirus/antispyware software (that includes the included MicroSoft software and any other installed software such as Kaspersky, McAfee, etc.) and try again.

  • DB Adapter - JCA Timeout not working?

    Hi ,
    Tried to set jca property for querytimeout as below,(in db adapter jca file)
    <property name="QueryTimeout" value="5"/>
    Call is to a DB stored procedure,when procedure execution takes more than 5 secs,jca timeout excpetion is not getting thrown?
    Can anyone assist on this?Kindly suggest any alternative way too if any?
    Thanks,
    Anitha

    What is the interface of the Stored procedure, if it has any output paramaters, the interface would be synchronous....
    I think in your case, as the stored procedure is not timing out, it is using the value for syncMaxWaitTime property....this is the maximum time a BPEL can wait for a synchronous response...
    See if this helps you...
    BPEL, timeout for DB adapter
    Thanks,
    N

  • Folio packaged on PC and moved to OSX:  Folio Builder timing out.

    Please help!
    I have an Indesign file that we have created on a windows 8 PC running Indesign CC.  We are now getting to the part that requires an apple computer to complete the final publishing steps so I packaged the file/resources on the PC and transferred the packed folder to a brand new IMac.
    Again using Indesign CC, I have the file open on the mac and all the links etc look fine.  When I run the folio builder however, it is BRUTALLY slow.  On the pc which is a much slower computer it takes maybe 5-10 mins to run but on the new mac it will take an hour+ and when it finally drops the loading screen it seems to just time itself out and does not show that a folio has been uploaded.  Its not timing out on the actual internet upload part, I'm familiar with that error but thats no problem, its timing out on the processing of the folio pngs I guess.
    Notes:  The file is very heavy on the dps effects, lots of slideshows, tons of object states, few videos, etc.  Its using linked PS files for every object state so the actual packaged folder is a little over 3 GB.  Obviously the compiled app itself is nowhere near that, but it IS a lot of data.  Still, it works perfectly on the PC so something is wrong here.  Brand new imac so its not a power issue.  I have tested another mac as well so its not a bad computer.  It WILL run the folio builder if I drop all but a few object states although it still takes far far longer to run than it does on the PC.  I have tried changing the default image type to pdf instead of png and got the same issue.
    Looking for any clues here.
    Thank you.

    If you’re creating a single edition app through CC, you’ll need to open InDesign and sign into Folio Builder with the same ID.
    Choose the folio and then create app. The app is created from the folio in the cloud, not the InDesign files you installed.
    If you have a pro or enterprise account, then yes, just open the app builder on the Mac and go to it.

  • I can not dowload the new updated software for my Ipod touch 4G. When i do I get an error message that says Network connection has timed out. I have done the trouble shooting steps. Downloaded the latest version of Itunes, and checked network connection

    I can not dowload the new updated software for my Ipod touch 4G. When i do I get an error message that says Network connection has timed out. I have done the trouble shooting steps. Downloaded the latest version of Itunes, and checked network connection

    Disabling the computer's antivirus and firewall during the download and update usually resolves the timeout error.

  • How to up the timeout setting to solve password reset portal error "Authentication gate timed out waiting for a challenge response"?

    Hi Everyone,
    We have the password portal up and running on one box and another server with FIM R2 and SharePoint 2010.  All is good with the exception that our end users typically get distracted during the password registration and/or reset process and receive:
    "An error has occurred. Please try again, and if the problem persists, contact your help desk or system administrator. (Error 3000) ".  The timeout kicks in after 5 minutes of inactivity in the browser.
    The FIM Service log shows the following:
    "Authentication gate timed out waiting for a challenge response".
    I have confirmed that the default password portal web.config setting is <add key="SessionTimeoutInMinutes" value="20" />.  
    We have also updated Microsoft.ResourceManagement.Service.exe.config per this
    article to the following but with no luck:
    <resourceManagementClient resourceManagementServiceBaseAddress="myAddress" timeoutInMilliseconds="600000" />
      <resourceManagementService externalHostName="myHost" dataReadTimeoutInSeconds="600" dataWriteTimeoutInSeconds="600"/> 
    We did not update the Windows SharePoint Servicesweb.config setting per the article about since we are on SharePoint 2010.  
    There is no NLB or firewall in front on this server.
    If anyone has any solution to how to solve this on FIM R2/SharePoint 2010 please let me know.
    Cheers!

    FIM_Admin,
    You could try changing the receiveTimeoutInSeconds parameter of the resourceManagementService node in your Microsoft.ResourceManagement.Service.exe.config file. However, you are warned not to do this unless instructed to by MS customer support. 
    http://msdn.microsoft.com/en-us/library/windows/desktop/ee652424(v=vs.100).aspx
    http://technet.microsoft.com/en-us/library/ff800821(v=ws.10).aspx

Maybe you are looking for

  • I cannot install or remove old itunes, install is looking for an msi

    When I try to upgrade to lates Itunes or Quicktime, I get error message saying it cannot find an msi on a network drive. Same error message if I try to uninstall the existing itunes.

  • Process order accounting entry for goods

    Hi, what accounting entry should get generated for goods issued to process order ( raw materia) and goods received from process order ( fg). CHEERS

  • Problem with Mac OS X Tiger.. maybe

    I just bought my macbook pro a week ago, installed microsoft office 2k4 and everything needed for day to day programming, including successful bootcamp installation. However, as of today, i can no longer open Microsoft word, my trashcan, a program ca

  • Remote Registy & Logical Port Exhaustion with multiple JVMs

    Hi With reference to below links: http://forums.sun.com/thread.jspa?threadID=5448277&messageID=11042211#11042211 http://forums.sun.com/thread.jspa?threadID=5450445&messageID=11050066#11050066 Will I have a solution with CORBA? (What is the correct Fo

  • MSI Source path

    Hi! What Im trying to do is that i want a variable rather then the real UNC path to my MSI-package. Atm i have point out \\server\vol1\app\app.msi to all my msi-zenapps. What i want is \\%APP_SOURCE%\app.app.msi. What i have tried to do is this: 1. I