Parallel processing and time-out

Hi all,
I've got a prob with doing a great number of postings.
While the time elapsed for these postings is too long, I tried to do it with an function module and "IN BACKGROUND TASK". Well, there is also a alternative "STARTING NEW TASK".
But I figured out, that these both variants are starting dialog work processes. I think there is a time out for dialog WP's of 300 seconds in standard.
Will this timeout kill the processes or not??
And witch alternative is the best to do some parallel processing??
thanx in advanced
regards
Olli

Hi Oliver,
Some solutions here:
1. You could increase the value of the dialog time-out (allthough this can only go to a maximum of 600 seconds). This parameter is in the SAP profiles (parameter name = rdisp/max_wprun_time).
2. As suggested by Christian, decrease the amount of work within one LUW. You can do this by inserting (from time to time) a COMMIT WORK. This COMMIT WORK also resets the timeslice counter of the running dialog process (thus giving again an extra timeslice to work). The downside is, that if you have many related objects to modify, your ROLLBACK options become limited.
3. Split the proces in several tasks and put the to work in the background (by scheduling jobs for them).
4. Program your own parallel handler (see sample code). With this you could process document by document (as if each is done separately). The number of dialog processes (minus 2) is the limit you could use.
Sample code:
* Declarations
CONSTANTS:
  opcode_arfc_noreq TYPE x VALUE 10.
DATA:
   server       TYPE msname,
   reason       TYPE i,
   trace        TYPE i VALUE 0,
   dia_max      TYPE i,
   dia_free     TYPE i,
   taskid       TYPE i VALUE 0,
   taskname(20) TYPE c,
   servergroup  TYPE rzlli_apcl.
* Parallel processes free check
CALL 'ThSysInfo' ID 'OPCODE' FIELD opcode_arfc_noreq
                 ID 'SERVER' FIELD server
                 ID 'NOREQ'  FIELD dia_free
                 ID 'MAXREQ' FIELD dia_max
                 ID 'REASON' FIELD reason
                 ID 'TRACE'  FIELD trace.
IF dia_free GT 1.
  SUBTRACT 2 FROM dia_free.
  SUBTRACT 2 FROM dia_max.
ENDIF.
* You must leave some dialogs free (otherwise no one can logon)
IF dia_free LE 1.
  MESSAGE e000(38)
     WITH 'Not enough processes free'.
ENDIF.
* Prepare your run
ADD 1 TO taskid.
WRITE taskid DECIMALS 0 TO taskname LEFT-JUSTIFIED.
CONDENSE taskname.
* Run your pay load
CALL FUNCTION 'ZZ_YOUR_FUNCTION'
  STARTING NEW TASK taskname
  DESTINATION IN GROUP servergroup
  EXPORTING
*   Your exporting parameters come here
  EXCEPTIONS
    communication_failure  = 1
    system_failure         = 2
    RESOURCE_FAILURE       = 3
    OTHERS                 = 4.
Of course you would put this within a loop and let your "payload" function fire off for each document.
You MUST check the number of free processes just before you run the payload.
And as last reminder: Do NOT use the ABAP statement WAIT (this will disrupt the counting of free processes).
Hope this will help you,
Regards,
Rob.

Similar Messages

  • Process chains time outs and hangs with no error msg - in SP13

    Hi all,
    We are having all kind of weird problems after we patched our system with SP13. Our process chain time outs and hangs, but surprisingly we never get any error msg. And scarier part is, the problem seems to be intermittent. PC runs fine on some days and hangs on some.
    Further analysis into the dump – as below
    Termination occurred in the ABAP program "SAPLRSSM" -
    in "RSSM_SLEEP_DEBUG".
    The main program was "SAPMSSY1 ".
    In the source code the termination point is in (Include) program "LRSSMU39".
    This refers to an issue that appears to have been addressed by OSS Note
    934648(meant for SP8). This notes also indicates to populate RSADMIN table to
    exclude "RSSM_SLEEP_DEBUG". Not sure if this note is valid for SP13? However we went ahead and populated the RSADMIN table.
    So now we have no clue what’s going on and where to fix the issue.
    As per SAP suggestion we applied the following notes:
    0000653996  Analyzing lock situations
    0000893563  Correction: Deadlock on completion of a remote chain
    0000994007  Corrections: Deadlock with external status query
    0001005481  Correction: Process successful, but there is no instance
    0001047174  Correction: Incorrect scope when locking in process chains
    0001051957  Correction: TIME_OUT during dialog confirmation of processes
    0001083660  Report for error stack analysis
    Nothing seems to help us. And SAP suggested a few options, which we implemented to no rescue.
    I’m sure that many of the customers have applied SP13, and want some feedback from them, if this is happening in their systems too?
    If so, how did you fix this issue?
    Or this situation is unique to us?Please note that no settings were changed as of SP13 to that of what they were in SP12(unless it is a side effect of the patch itself). Everything worked fine with SP12 and is still working on the BIP system. All the problems are in BIQ patched to SP13.
    Any pointers or insight would be appreciated. We have a customer msg open with SAP, and going back and forth, but nothing seemed to work as of today.
    Thanks,
    Voodi

    Not sure which OSS helped us get past the issue, as SAP asked us to apply a ton of notes. But along which the notes, SAP has some suggestions for us, which we think did the magic. After the implementation of the suggestin we never faced the same issue again. The suggestion by SAP:
    move the process chain callback in a batch job by executing
    program RSSM_TRACE_SWITCH and selecting the flag "verifcation
    of asynchronous processes - execute in batch".
    Lemme know if this doesnt fix the issue, I can give all the notes that SAP asked us to apply.
    Message was edited by:
            voodi

  • Parallel processing and throttle

    Hi experts,
                  where this parallel processing and throttle used exactly in XI.

    You can develop scenarios in BPM for parallel processing. Simple use cases involve like splitting incomming file into multiple files and sending them out in parallel. A block with par for each would be needed in this case.
    Search in help for more information.
    VJ

  • My firefox will allow me to open a page then it gets stuck on the second page and times out--how do I fix this. I have checked the sites on Explorer -it works

    It started with the second page not being able to be displayed
    example it would go to yahoo and I would sign in but the next page would just spin and time out
    Now it won't even go to the first page.
    Firefox will not let me go into the options to change cache.
    I am trying explorer and it works.
    Help

    This is a page within the Yahoo site? When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In that dialog, you can individually remove your yahoo.com cookies.
    Then try reloading the page. Does that help?

  • SAP SNC Portal DCM screen performance is very slow and times out

    Friends,
    SAP SNC Portal DCM screen performance is very slow and times out when user trying to pull data using customer location
    What are the cleanup activites we can do to improve the overall SNC performance ?
    We did open OSS message but so far no reply from SAP , Is there any one faced performance issue ?
    User/vendor is complaining about slowness , query is standard SAP and its taking more time  .(table - /LIME/NTREE) , It looks like number of data are huge causing this problem related to LIME/NTREE table. What are the options to improve the performance ?
    Thanks in Advance
    Hanuman Choudhary

    hi Team,
    Pls . note the advise from SAP below, IS there any have experiance of archiveing /LIME records ?
    Please advise how to start & what the steps in archiving ?
    Thanks in advance
    I had a look at the DCM query performance in PH1 system and figured out
    that most of the time is spent at the LIME layer of database. The
    following LIME tables are having far too many entries and is causing
    the bottleneck during the query execution.
    /LIME/NLOG_QUAN - 38,165,467
    /LIME/PN_ITEM - 19,116,518
    /LIME/PN_ITEM_TB - 19,154,124
    These tables are storing the historical information about LIME(stock)
    updates. Since these table grow with each change/update of stock
    information, it will slow down the performance of the system over a
    period of time. And to avoid the slow responses, the tables should
    ideally be archived on a periodic basis to keep the data volume as
    minimal as possible. You may have to discuss with the Business to
    determine the number of days of LIME record you would want to retain
    in the system. I would strongly recommend you to consider the LIME
    archival retaining the minimum days (<=60 days) of historical
    information. You can find more information about the Lime Archival
    in the Sap Help link:
    http://help.sap.com/saphelp_scm2007/helpdata/en/44/2a83121dde23d1e10000000a1553f7/frameset.htm.
    Kindly get in touch with your BASIS consultant for the LIME archival.
    The application performance should definitely improve after the LIME
    archival. Please do not hesitate to get in touch with me in case you
    require any further clarification in this regards.
    Best Regards

  • Can't access Web Site, super slowly and time out!

    Hi all,
    I am using Server 2012 R2 with Hyper-V, HP DL360 G6 Server
    The Master OS have a NIC1 to VLAN1 Switch (Also in the Cisco SG300 Switch)
    Plus other NIC2 connect to Cisco SG300 28 Switch (Running in L3 Mode), this Cisco then connect  to a SonicWALL NSA 2400.
    I build some VLAN31 on SonicWALL NSA 2400, and add this to the Cisco SG300 as Truck Port connect Both...
    Other Port on the SG300 are untouch, so mean default running mode is Truck mode, and one of it port connect to the NIC2 to the Server ...
    Ok, if Hyper-V VM, not enable VLAN in the Hyper-V Management in 2012 R2, it can take the DHCP from the SonicWALL NSA 2400 no problems, can see other LAN (VLAN1) machine well both direction, and go to Internet too.
    But, if I setting the VLAN31 on Hyper Manager to some VM, it can take the DHCP and take the IP from SonicWALL for this VALN31, include DNS, GW etc...
    But ... it just can ping internet, for example, ping www.yahoo.com it ok, but open IE, enter www.yahoo.com will super super slowly and time out, if running CentOS 6.5 Linux, enter yum update, it total not work, time out, 0.2kb/s etc. But it can ping to www.yahoo.com
    no problems...
    And If Windows run routert www.yahoo.com, over 10s to see next hub ...
    I am double checked SonicWALL NSA2400 Firewall Policy is allow all VLAN and LAN to WAN, and VLAN TO VLAN too..
    What is wrong on the Hyper-V VLAN? Do I am setting wrong of my switch port mode (Access/Trunking)?
    I am now out of direction what is go on to troubleshooting this.
    Thank you.

    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.
    C:\Users\Administrator>ipconfig /all
    Windows IP Configuration
       Host Name . . . . . . . . . . . . : JimmyChan-G6-01
       Primary Dns Suffix  . . . . . . . :
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
    Ethernet adapter Ethernet 5:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Intel(R) PRO/1000 PT Dual Port Network Co
    nnection #2
       Physical Address. . . . . . . . . : 00-1B-78-5A-B2-81
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
    Ethernet adapter Ethernet 4:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : HP NC382T PCIe DP Multifunction Gigabit S
    erver Adapter #52
       Physical Address. . . . . . . . . : 00-26-55-23-1F-E2
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
    Ethernet adapter Ethernet 3:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : HP NC382i DP Multifunction Gigabit Server
     Adapter #49
       Physical Address. . . . . . . . . : 00-26-55-1A-26-F8
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       Link-local IPv6 Address . . . . . : fe80::1de6:509d:b011:775a%14(Preferred)
       IPv4 Address. . . . . . . . . . . : 192.168.218.157(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 192.168.218.1
       DHCPv6 IAID . . . . . . . . . . . : 436217429
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-D3-8A-8D-00-26-55-23-1F-E0
       DNS Servers . . . . . . . . . . . : 8.8.8.8
       NetBIOS over Tcpip. . . . . . . . : Enabled
    Ethernet adapter Ethernet 2:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Intel(R) PRO/1000 PT Dual Port Network Co
    nnection
       Physical Address. . . . . . . . . : 00-1B-78-5A-B2-80
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       Link-local IPv6 Address . . . . . : fe80::acb8:319f:2c75:f829%13(Preferred)
       IPv4 Address. . . . . . . . . . . : 192.168.101.11(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . :
       DHCPv6 IAID . . . . . . . . . . . : 218110840
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-D3-8A-8D-00-26-55-23-1F-E0
       DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                           fec0:0:0:ffff::2%1
                                           fec0:0:0:ffff::3%1
       NetBIOS over Tcpip. . . . . . . . : Enabled
    Ethernet adapter Ethernet:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : HP NC382T PCIe DP Multifunction Gigabit S
    erver Adapter #51
       Physical Address. . . . . . . . . : 00-26-55-23-1F-E0
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter isatap.{A9915F4B-84C6-4168-8E25-909FD2105BD9}:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Microsoft ISATAP Adapter
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter isatap.{E893BCF0-EA57-4E6D-8406-1B6ECF27A1C1}:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    C:\Users\Administrator>
    Above  is the Server 2012 R2 Master Host (Mother)
    But ... actually still have one Ethernet 6 NIC Card there, it also NC382i, buildin HP DL360 G6 NIC... This card is connect to the Cisco SG300 28 Switch and the Server, and make this card as for Hyper-V Switch (Extenal) ...
    I don't why run ipconfig /all not see this card above ..
    If you need Screen Capture, let me know ...
    THX

  • When I try to open certain slide shows, my computer gets the spinning wheel and times out. Other slide shows open fine. What am I doing wrong?

    When I try to open certain slide shows, my computer gets the spinning wheel and times out. Other slide shows open fine. What am I doing wrong?

    Hard to say but most likely you are not doing anything wrong but have some library corruption
    What version of iPhoto? Of the OS?
    backup your iphoto library, depress the command and option keys, launch iPhoto and rebuild your database
    LN

  • Software update stalls and times out

    Recently when running Apple Software Update on my laptop (running Vista), I've noticed that when trying to download either of the pieces of software available in the update system (VoiceOver 1.3 or MobileMe Control Panel), that it stalls with 1.1 MB remaining and times out after several minutes. I've tested this on Windows 7 with the same result and have attempted to fix by removing/reinstalling, as well as repairing the software, but to no avail.
    Is there a workaround for this issue? I know for sure that VoiceOver is asking to be downloaded via Apple Software Update, and I hope the 404 error on the MobileMe Control Panel has righted itself.

    Hmmm.
    In the meantime, are you able to get the MobileMe control panel via the Download page at the Apple Website?
    http://support.apple.com/kb/DL769
    If you get any sort of error message on the install when you download via your browser, let us know what they say.

  • Data Transfer Process (DTP) - Messages Never Received and Times Out

    Hello,
    I'm having an Issue with DTPs at the moment. First I'll give you a little background on the system
    Formerly BW 3.1, upgraded recently to BI 7.0 (Support Pack 15). Most of our Data Flows are still under 3.x style, but many are being migrated or recreated under BI 7.0 standards.
    I am able to successfully load data using DTPs however on many, and seemingly random, occasions the message for individual data packages under "Processing -> Updating InfoProvider" never arrive, and thus the DTP never completes and eventually times out.
    Under BW 3.x it was a simple matter of changing the QM status to Red and then "Update Manually" on the data package that did not receive the message. This would reprocess and complete the data package, allowing you to then turn the QM status Green and move on.
    Under BI 7.0 I do not seem to have any options for the Data Packages regardless of QM status. I have not found a way to resolve this situation and in every instance had to delete the request from the InfoProvider and try again. It seems like a rather large design flaw, so I'm hoping I'm missing something.
    Any suggestions would be greatly appreciated.
    Thanks,
    Matt

    Three things to be noted:
    1. Dont use the std. settings of 50000 records. Change it to 10000 records in DTP.
    2. Since you are not getting till Updating tab, I foresee something wrong with routine..start/end/transformation. Check there how much time it is taking.
    3. I dont think we have any option as you mentioned for QM. We need to delete the req and start the DTP again.
    Thanks..
    Shambhu

  • Over Time Approval process and Time Balance Reconciliation at Termination P

    Hi Friends,
    I would like to know generic Overtime approval process in Time management & also the process for Time balance Reconciliation at termination.
    These both process are in my project scope.I have to draw a flowchart two both of the above process to my client.
    Can any one of you help me out,with process flow charts are you give me a scenarion,wher i can draw a flowchart also appreciated.
    Thanks,
    Lasya

    Hi,
    For overtime approval process... either u can use IT 2005. or You can use IT 2007 for overtime quota and 2002 for Approval process. Its also mentioned in one of the SAP HR Book HR311. You can refer that book, Its in detail and really going to help you..
    Regards
    Pradeep

  • Parallel Processing and Capacity Utilization

    Dear Guru's,
    We have following requirement.
    Workcenter A Capacity is 1000.   (Operations are similar)
    Workcenter B Capacity is 1500.   (Operations are similar)
    Workcenter C Capacity is 2000.   (Operations are similar)
    1) For Product A: Production Order Qty is 4500. Can we use all workcenter as a parallel processing through Routing.
    2) For Product B: Production Order Qty is 2500. Can we use only W/C A and B as a parallel processing through Routing.
    If yes, plz explain how?
    Regards,
    Rashid Masood

    May be you can create a virtual WC VWCA=ABC (connected with a hierarchy with transaction CR22) and another VWCB=A+B and route your products to each VWC

  • New apps won't install, just bouce in the dock and time out

    Was wondering if anyone could help me out with this. I'm in Japan and apple support in English seems to be manned by one guy whose only solution to any problem is to backup everything and reinstall. Getting kind of frustrated.
    Lately, I am unable to install new software I download from the web. It downloads the package, loads the disc image and if I click on install.app , the icon bounces in the dock for about minute then times out and I have to force quit it. If I install an app that just requires dragging the app into the app folder, when I try to open it, the same thing happens. I can't pinpoint when this started or what might have caused it but the last app I was able to successfully download and install was a trial version of Bento. I've tried about 10 different apps and its the same problem with each.
    Any ideas what might be causing this? Help is very much appreciated!!

    Thanks Daniel!
    Onyx worked. Though I'm not sure what part of it worked. I had to try several different cleanings and whatnot. Seems like the problem might have been Desktoptopia. I remember now, when I installed that software, these problems came up. Now, everytime I reboot, I get a "are you sure you want to open this file downloaded from the internet" box for desktoptopia even though I can find no trace of the app on my computer anymore. Very strange.
    Anyway, at least apps are installing again. Thanks!

  • Safari hangs and times out on pages with CGI scripts

    I don't know if this is a Safari problem or a system wide problem. I running OS 10.4.9 with Safari 2.0.4. When I try to load a page that begins with "http://cgi." it begins to load but hangs and eventually times out. Has anyone else run into this problem? I did a search of the forum but came back with no results.
    PowerBook G4   Mac OS X (10.4.9)  

    I don't know if this is a Safari problem or a system wide problem. I running OS 10.4.9 with Safari 2.0.4. When I try to load a page that begins with "http://cgi." it begins to load but hangs and eventually times out. Has anyone else run into this problem? I did a search of the forum but came back with no results.
    PowerBook G4   Mac OS X (10.4.9)  

  • I have Problem uploading photos to craigslist. It says it has a problem communicating with the server and times out. It works in explorer but not Firefox and I just recently downloaded the new version of firefox. Can you be of any help?

    Photos will not upload and the server times out.

    Well, two thoughts.
    The battery has completely discharged and will take overnight to recharge, so don't expect much in an hour.
    The battery has deep discharged and is now dead. It will never recharge and should be replaced.
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task. Start with Google to search for these.
    The flat fee for a battery exchange is, I believe, $99.00 USD.

  • SMTP very slow/errors and times out in mail.app

    I have a series of account set up that are working great except for my work mail (exchange IMAP). The server it's on is pretty slow, and this is complicated in mail app as I get constant SMTP send errors "the server rejected the address...." it's very intermittent - I can have an hour where everything sends just fine, and others where it just doesn't work. Connection doctor takes at least 10 seconds to successfully connect.
    Is there a way to adjust the time out value on mail.app so that it doesn't immediately fail to send?

    Let us separate between the intermittent SMTP errors and the slowing down for the time being. What happens (and how long it takes) when you open a shell and connect to the SMTP server ? For example, try something like this:
    ]# telnet smtp.google.com 25 (if your smtp server is imap google)
    try to send a simple message and see how long it takes, e.g.
    helo smtp.google.com
    --

Maybe you are looking for

  • Problem of Chart in Web template

    hi friends, I  have created a chart in a web template,  however the chart is displaying the material number along with the calendar week, is it possible to have it only display the calendar week?  I also wanted to know if it is possible to insert a t

  • 5800 does not turn on with SD card

    Hi, I have recently used Nokia PC Suite to delete some SMS from my Nokia 5800. After that, the phone has stopped turning on when the SD card is in. If I remove the SD card, the phone will switch on normally. How can I fix this? Thanks, Marco Message

  • Configuring Automatic Updates using Powershell for Server 2012: wsuaserv service invalid

    This server is configured as a core server (no gui). In the following article, to enable automatic updates, one method is to configure the wsuaserv service: http://technet.microsoft.com/en-us/library/jj574100.aspx Doing the first step, I get the foll

  • How do i add selection when closing firefox to save and quit, the tabs?

    how do i save and quit when closing firefox?

  • Jave 32 Bit or 64 bit version

    Please be patient with my posting as I am going to ask questions that may sound stupid but since I don't know much about Java technology, it would help me understand some things. 1) Does Java has a 32 bit and 64 bit versions or Java can be installed