Random delays with tpacall

Dear friends,
we do have an issue that sometimes result in a random delay. We haven't thoroughly invesitigaded this, so there might be some bad conclusions made in the scenario described below
We're using Tuxedo 11.1.1.2.0 and DB2 9.7
When we're doin' two sequential tpacall's (with TPSIGRSTRT only) to 2 services (A and B) (implemented in the same server) doin' some SQL-operations to a DB2-database. It usually works well, but once in a while it seems like the there's a delay for about 1 second before the service(s) is/are processed. When we digged a little deeper into this, the delay seemed to occur when the call to service B ended up in the server before the call to service A
In this case, the services just read some data so, as a quick and dirty workaround, we called the services with TPSIGRSTRT | TPNOTRAN and the "random" delay disappeared. This "workaround" is not desirable (in a SOA-architecture) and may not even be applicable all the time
As I wrote above, we haven't really digged in to this problem, so DB2 might be the one to blame as well, the answer may lay in how the two products work togehter (perhaps releaded to xa_reg vs ax_reg ?)
Have anyone experienced something like this ? Does anyone have an explanation ? Can it be a defect (in implementation or design) in one of the products ?
Best regards,
Kristian

Hi Kristian,
When you say 2 services implemented in the same server, you mean the same server executable, or the same server instance, i.e., how many copies of the server are running? If there are multiple copies of the server running, are they in the same group? Also, are the servers in a transactional group, i.e., one with an OPENINFO string and build against an DB2 as an RM? The reason I ask this second question is that when in a transactional group, Tuxedo maintains and manages the connection to the RM. In non-transactional groups, it is up to the application to manage the connections.
You say the services just read some data, so there should be no dependencies in the database between the two such as readying cursors or the like?
If all you changed was to add TPNOTRAN, then I suspect it may be a DB2 issue. One way to check is to enable XA tracing and see if DB2 is calling back with an ax_reg() call in the execution of either service. If DB2 is calling Tuxedo with ax_reg(), then DB2 thinks you are modifying the state of the database and is trying to join a global transaction. This still doesn't explain the delay, although the timestamps on the traces may help. TSAM Plus would also be able to potentially help identify the cause of this problem, or at least the culprit responsible for the delay.
One other possibility is that if you are doing this a lot, say thousands of times a second, then you may be hitting the global transaction table lock hard enough to cause some serious contention issues. But again, I'm not sure why a 1 second delay.
Do you know if the delay only occurs when service B gets processed before service A?
Regards,
Todd Little
Oracle Tuxedo Chief Architect

Similar Messages

  • Random delay between WHILE loop during acquisition from DAQ

    I am working with the NI DAQ USB 6259.
    My purpose is to acquire data from an analog voltage input. My problem is showed in the attached image and consists in a RANDOM time delay between the execution of two consecutive while loop that contains the acquisition and the writing operations.
    If you observe the image attached, you can notice that samples are taken at regular interval (which I can specify) only within one loop, then between the instant of the last sample of one  cycle and the one of the first sample of the next cycle, a random delay occurrs.
    I attach also my block diagram which is very simple.
    I am forced to use the option "N samples" in the daq assistant because if I use continuous acquisition an error is returned, I guess because my acquisition can last minutes.
    It's like I were blind for a random duration between consecutive iterations of the while!
    Do you know an alternative solution to avoid this problem or its solution?
    Best regard,
    Roberto Rodio
    Attachments:
    while loop delay.jpg ‏52 KB
    block diagram.jpg ‏42 KB

    Have you tried to execute this without the writing to the TDM file?  I suspect that is where your delay is happening... So I propose you delete that from your block diagram... and execute your loop... if that works, you will need to move your file write to somewhere else in the process... possibly a parrallel loop... If not, consider stripping down the express VI you use for your data acquisition... The delay could be in that express... setting up, starting, acquiring and stopping the daq task... In which case, you can right click on it, say open diagram... or open vi or something similiar... LabVIEW will tell you that it must convert the VI, so OK (you can alway undo)... I am not sure what else you have going on... so you may already be doing that... but that is the first two places I would look.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • Exchange 2013 SP1 users randomly prompted with "The Microsoft Exchange Administrator has made a change that requires you quit and restart Outlook"

    I got a call to check an issue with a Exchange Server 2013 SP1 environment recently. All server was upgraded from Exchange server 2013 CU2 to Exchange Server 2013 SP1. It was done successfully but many users were being randomly prompted with a popup in their outlook
    client with the following message:-
    “The Microsoft Exchange Administrator has made a change that requires you quit and restart Outlook”
    Although there wasn’t any changes of late in the environment there were random popups like these for multiple users. As the behaviour was not consistent and effecting the entire upgration population
    Please suggest us how to resolve the issue.
    Regards, Md Ehteshamuddin Khan All the opinions expressed here is mine. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Hi,
    Does the issue happen to all Outlook 2013 users? Please create a new Outlook profile to have a try.
    If it fails, please check the msExchHomePublicMDB value in ADSI Edit:
    1. In Adsiedit, expand Configuration-->CN=Services -> CN=Microsoft Exchange -> CN=domain -> CN=Administrative Groups -> CN=Exchange Administrative Group -> CN=Databases.
    2. Right-click the listed database > Properties.
    3. Check whether the msExchHomePublicMDB value is set to an available value. Please change the value to <not set>.
    4. Click OK.
    Then check whether the issue persists.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • I've just rented Monsters vs Aliens on my Apple TV 3 and once we switched to default language - Russian we have experienced major lag in sound, apx. 1 sec delay with the picture. English soundtrack works fine, once we put Russian back - the delay is back.

    I've just rented Monsters vs Aliens on my Apple TV 3 and once we switched to default language - Russian we have experienced major lag in sound, apx. 1 sec delay with the picture. English soundtrack works fine, once we put Russian back - the delay is back. How can this be fixed? Please advise. Thank you in advance.
    PS. Just bought the Monster's Inc. and Russian soundtrack works fine.

    Agreed! This bug with the ringtone delay (№4.1) is really annoying

  • TS3274 My iPad mini retina is still having random reboots with blue screen after updating to iOS 8.0.2.i also did reset my iPad.But the problem still persis

    My iPad mini retina is still having random reboots with blue screen after updating to iOS 8.0.2.i also did reset my iPad.But the problem still persists

    Could you add your problem here: https://discussions.apple.com/thread/6569052? This makes sure the discussion and in one place and we can attract more attention from Apple. 

  • Catalog partially and randomly synced with disc. Have to find and sync A LOT.  Help!  :(

    I am just getting started with LR4.  After installation, the catalog is only partially and randomly synced with my hard drive. (Windows 7)  It seems I have to find and sync way too many files.  There are some files which don't appear in the catalog at all.  So I uninstalled and reinstalled the program and the problem is the same.  Did I miss something or do I have a corrupt program?  Can I find and sync my entire pictures file at once?

    Well, that's a clear indication that the files in question indeed are alreaday somewhere in your catalog; Lightroom is usually right about that. They might not be in the place you expect them to be though.
    You might want to look carefully through the folder structure in Lightroom and see if there are any strange folders you don't remember creating.
    One thing that might have happened during one of the imports is that instead of choosing 'add' in the import window, you had 'copy' selected. When doing that, files end up in the place defined in the right hand column of the import window. Depending on what was selected (or what was there as default), LR has created a folder e.g. with the date of the pictures as name, inside an other folder, etc.
    I encountered this kind of problem myself. An example of what happened:I have my files in folders named by date, in hierarchical year-month-day structure. Using the 'Import' function, I wanted to 'add' the '2011-05-12' to my '2011-05' folder, but erroneously selected 'copy'. Due to the selection I made last time I 'copied' files on import, the folder ended up in the folder '2011-04' - which I didn't notice at first. After the import, I couldn't find the 2011-05-12 folder, and when trying to import the whole 2011 folder with all of its subfolders, it told me that there are no pictures to import as all were already in the catalog. Like in your case, only unchecking 'don't include suspected duplicates' let me see the missing files.
    So try to see if you can find folders where they shouldn't be or folders with unusual names. If that's the case, remove them from the catalog, and your problems will disappear.

  • N8 / Belle / Car BT Audio - random problem with au...

    I updated my N8 to Belle when it was first released.  Ever since, I've been experiencing random problems with audio volume and how it is being output from the phone.
    I have paired my N8 with my car (2012 Subaru Legacy) which allows me to make phone calls via the car and stream music to the car via BT from the N8.  Everything works fine most of the time, but there are some anomalies.
    For example:  In the morning on way to work, I used Music Player to listen to songs in the car.  Later on during lunch break, I made two phone calls from the car.
    After work, I turned on Music Player and started listening to songs, but realized that the audio is being played from N8's loudspeaker, and not the car speakers, even though the phone was paired with car BT.  
    I restarted the application but nothing changed. I then turned-off BT on phone, turned it on again, and this time the audio was still output via the loudspeaker, but I could now see the song details on the car stereo display and skip to next song using car controls.
    Another example:  I've also noticed that sometimes after using BT Audio in car, when I later play songs, the volume coming from N8's loudspeaker is maybe at 20% of what it should be and the volume buttons have to control over it.   It seems almost as if the phone still thinks it is connected to car and is letting the car stereo do the amplification. 
    I tried different settings, but I can't pinpoint any specific cause of this behavior.
    Has anyone experienced the same?  Solutions? 

    For the song details to appear on the screen of car stereo you have to make sure your .MP3s have the ID3 info stored in them.  You can do that with programs like Winamp/MediaMonkey/others.  But I found that only works in my car when it wants to; it is never consistent, and most of the time it doesn't work.  I blame the phone software for that.
    As far as sound quality with my BT Audio I couldn't ask for better.  It is very clear.  I have most of my MP3s encoded at 192Kbps; I found the lower rates not to be very clear.  I have not tested FM Transmitter in the Subaru (because BT works so good), but in my previous car it did not work well at all.  It would only work in one spot (under dash in the foot area) and even then it wasn't very clear.

  • Random music with a playlist?

    Hi everyone,
    Just a simple question... I have been running with my Ipod and Nike+ thing for 2 weeks now, and Inwanted to know if it was possible to have random songs with a playlist I use for my jogging.
    I don't want random of all my songs, just from one playlist, and I don't know how to do.
    So far, it always begin with the first in alphabetical order.
    And is it possible to have statistics in an other way? instead of 5min/km, to know my km/hour average... Well, just to know, I don't care much, I can make the calcul myself, but still.
    Thx!

    Create a new Smart playlist.
    Match Rule;
    Playcount is 0 (or Last played is not in the last 2 months).
    My rating is not 1 star. (Rate songs 1 star that you don't want on the iPod)
    Limit it to 7200MB at random.
    Select teh iPod in iTunes. Click the Music tab.
    Select Sync music and Selected playliusts.
    Select this new playlist.
    When you want to change the music on the iPod, select this playlist, click a song, select all (ctrl A) then press delete.
    It will immediatley fill up again based on the criteria.
    Plug in the iPod to sync it.

  • Random numbers with leading zeros

    Hi,
    I want to generate random numbers with leading zeros.
    My code so far:
    import java.util.Random;
      Random r = new Random();
      int randInt = r.nextInt(100);My aimed output is something like:
    0012 or 0123 ...
    Thanks
    Jonny

    Hi,
    sorry for not getting it with NumberFormat. I used DecmailFormat instead:
    DecimalFormat df = new DecimalFormat("0000");
    df.setMinimumIntegerDigits(4);
    df.format(r.nextInt(40)));This gave me the right output, like 0013 or 0123 ...
    Thanks
    Jonny

  • Click Firefox shortcut - 4 secs delay WITH white screen, then firefox loads, also every new tab flashes a white blank page fOR half a sec.

    Firefox 31, Windows 8.1, AVG, Spybot, dusabked addins ni change, used several suggestions on internet, nothing works. changed proxy settings to manual 127.0.0.1 and port as suggested - no change, could I have an NSA reroute of firefox?

    Before doing anything I started Tor Browser Bundle, then exited. Started up Firefox – no 4 secs delay, very minor delay but no white page at all it seemed. Then clicked on the Open New Tab (x) and saw a white flash then the new tab – again a .5 sec delay or less before the new tab appeared.
    Shutdown computer. Restarted and clicked on Fireforx shortcut. No blank white page anymore and no delay except for a very minor one.
    But still had the white page flash when loading a new tab from the small x on the current page tab. Saw a white flash, then the new tab loaded. Shut down computer, restarted same problem with the new tab click on the small x - .5 sec or less white flash then tab loads.
    Went into Firefox Add-Ons and disabled a number of items. Surprise no white flash on loading new tab. Decided to enable AVG PrivacyFix 5.0.11 – miracle, no white flash at all on clicking the small x on the current tab. loaded veryfast no delay there.
    Will alert AVG of this issue. But still very surprised that the original main issue of having a 4 secs delay with a completly whtie screen with nothing on it except white disappeared after launching Tor Web Browser throws me for a loop.
    Have not tried BlueHell yet and wonder why I should now in addition to the fact that AVG is certainly far superior to it. But if Bluehell does a better job than AdBlocker, willing to try it.
    Problem appears solved – Why did Tor fix main issue?

  • Random crashes with new 120gb classic

    Is anyone experiencing random crashes with the new iPod classic 120gb units?
    Every so often my unit just locks up and shows the Apple screen, only the screen is drawn in what looks like 4 colour mode, and badly drawn at that, requiring a hard reboot of the iPod to resume use (which sadly resets my smart playlists/playcounts by the looks of it).
    This sounds like the problems that plaged the earlier 160gb models, so I changed my settings to not include album art which I've read circumvents the problem, and this seemed fine for a few days but I just had another lock up so maybe not.
    Mark

    My new 120gb classic survived a 7 hour bus ride on Saturday without crashing once, however I was watching videos for most of the trip.
    Over the weekend away I was using my small sound dock and again, no crashes what so ever.
    After picking up my car from the workshop (the reason for the trip away) I plugged the classic into my Alpine IDA-X100 stereo (first time using the USB cable on the X100, as opposed to the older style connector) and no crashes at all during a 6 hour drive home.
    And yet - after an hour of using the classic in the office with just headphones I've just had a crash.
    This confuses me further - if it was firmware I'd have thought I'd have had crashes when using the sound dock, or car as well.
    Have any of you who are also having crashes/skips seen this behaviour?

  • Lion Random crash with 2009 iMac 27

    Hi
    Am I the only one to have some randoms crashs with Lion on an iMac 27 late 2009 (i7 + ATI Radeon HD 4850 512 MB, 16 GB Ram) ?
    I noticed that some iMac 2011 were affected but haven't found anything about the iMacs late 2009.
    I can crash very easily my iMac while playing with Starcraft II, just to give an example. This iMac used to be very very stable with Snow Leopard, the only reboots were to apply the security fixes or power outages.
    Any idea ?
    I hope this is going to be fixed with 10.7.2 !!
    Thanks
    Johan

    Can't offer help, but I've daily BSODs with the same model - same GPU, only difference that I've only 8 Gigs of RAM.
    Mainly happens with anything video or picture related, so mostly while using safari or other browser. All the time before "up"-grading to Lion I never had one single crash...

  • Been using LR since 2004. My raws are all of sudden jumping around in Develop module. Image does not stay, it goes forward and backwards randomly, even with magic mouse off. Can't edit. Using MacPro, currently everything. Canon 5dmk3 raws

    Been using LR since 2004. My raws are all of sudden jumping around in Develop module. Image does not stay, it goes forward and backwards randomly, even with magic mouse off. Can't edit. Using MacPro, currently everything. Canon 5dmk3 raws

    This sounds like a hardware issue. I haven't seen this particular problem reported before.

  • Iphone 5 randomly vibrates with no notifications in iOS 7.1

    My iPhone 5 randomly vibrates with no notifications and no sound ever since the 7.1 update. Has this happened to anyone else?

    This happens to me too. Normally when it is off, a few minutes after it turns off it randomly vibrates. I have an iPhone 5 32GB Black. 

  • Random Crashing with from SLI gtx980

    I have had random issues with My two 980 randomly crashing with 3 ROG swift monitors . Either i get a black screen across 1-3 screens then a nvidea driver error that it has crashed and recovered or a same black screens then i reboot.
    I've tried complete driver uninstall then reinstall but no dice.

    Quote from: purge98 on 12-December-14, 09:53:35
    What GPU temperature are you getting? I successfully run my GTX980 at 1500Mhz and 75c with no problems.
    I'm getting around 50-70c.
    So I've streesed test second card with no problem except they benchmarked two different amounts. First card benchmarked 1800 and second at 1200. Also notice sometimes one fan randomly stops turning. Keep testing it see if any crash but does look like the probvlem is once use them in sli.

Maybe you are looking for

  • User getting error when creating a new Document Library

    The user is getting the following error when trying to create a new Document Library in SharePoint 2010: Error Cannot complete this action. Please try again. Correlation ID: 37ecd5eb-6129-4fa3-84bd-c6f0ad8115d5 Has anyone come across this error and k

  • IPOD CASES WITH MAGNETS

    i have often heard (i still don't know if it's true...) that magnets are very dangerous near your computer or hard drives. i want to purchase an ipod case with a flip cover that contains magnets in it. has anyone had a problem with a case like this o

  • Top utilising Query in SQL server

    Hi,    Is there any query to get the top utilization query of the day?

  • Misconfigured installer for Adobe Acrobat?

    I'm trying to download a free trial of Adobe Acrobat. The program downloads, but after I click run, I get an error saying "This application cannot be installed because this installer has been mis-configured." My laptop is a Dell Inspiron 1420 running

  • Making the flv component accessible?

    I am using the flv player component and am having trouble adding the players buttons to the tab order. I opened the FLA for the skin I am attaching to the component, and individually selected the play, close caption and full screen button and assigne