RFC calls are taking too many work process -- system knock out

Hi,
I have an interface remote function, which is going to be called by a java program.
Data is going to be sent to the system, processed and sent back syncronous to the caller.
The calls are working on SAP tables, so I needed to lock and unlock the tables. The java program
is opening many parallell threads and starts them the same time.
That means, that the sap system is getting attacked by many rfc calls on the same function, with the
same user at the same time.
The system has in development 15 dialog work processes set up. If I run that with up to 15 parallell rfc calls, all is working ok!
Let me now explain the problem:
I have programmed the table lock, that it´s trying to lock the table at the beginning of the function.
If it´s not possible it tries it again. At first I have just inserted a one second wait and let that run maximum 3 times. If the table is still locked, it breaks down with an error.
But because the calls come nearly to exactly the same time to the system, the first call locks all others out, and the rest ran out of the 3 seconds and ended up with an error.
So I tried to build an endless loop, which is just ending, when the table could be locked again, or when the runtime of 5 seconds has reached. That means, it´s not waiting for a second, if the table is locked, but it´s trying again and again up to 5 seconds.
That is all ok, because sometime the table is free again and all calls are then processed alright.
BUT if I now run that with MORE than 15 rfc calls from the java program (15 dialog processes are set up), the system got knocked out! It is using all free work processes for the RFC calls and get stucked. I think, the first call is locking the table, and the got stopped by the system. And then all the others are running in the endless loop....
So, shouldn´t be there a limit for dialog processes taken by RFC calls? For example here for this user? In this case it should f.e. be set to 10 free processes with 5, which are reserved for other users...
Any advices?
The second is, how can I change the lock mechanism, that I don´t use an endless loop? Waiting for one second and doing that 3 times, is not good enough... Because all the rfc calls wait then for one second, up to 3 times, and end with an error....
Is it possible to wait for half seconds, or defined milli seconds?
Thank you for all advices!

Hi,
What I have understood is you are trying to lock the table in a loop and just checking the duration by explicitly putting wait statement.
Hope you are NOT locking the entire table rather a particular record in each lock.
No need to use explicit wait statement rather its better to let SAP thinks when to lock the table T1 when its already locked by another work process. So just set the wait parameter for the Enqueue function module as 'X' and check how it behaves. Until the table is not unlocked the process will wait.
If you see the wait parameter for the Enqueue function module is not available then create your own lock object for the table and use that. Make sure its getting dequeued else you can understand better
Cheers
Somnath

Similar Messages

  • How many work processes are recommended by SAP for 16 GB RAM

    How many work processes are recommended by SAP for 16 GB RAM ?

    This is the calculation for determining the number of work process according to the available memory  for the system.
    - Number of dialog work processes = RAM/256 (min 2, max 18)
    - Number of update work processes = RAM/768 (min 1, max 6)
    - Number of update2 work processes = RAM/1024 (min 1, max 3)
    - Number of batch work processes = RAM/1024 (min 2, max 3)
    - Number of enqueue work processes = 1
    - Number of spool work processes = 1
    You can also refer the following link regarding memory management in SAP .
    http://help.sap.com/saphelp_nw70/helpdata/EN/02/962817538111d1891b0000e8322f96/frameset.htm
    It explains the calculation based on number of processors for the server.
    Regards,
    Jazz

  • Taking too many subscription payments

    My company has 4 Creative Cloud Subscriptions but Adobe are taking 5 subscription payments form the company credit card. I have transaction ID for payments but am getting nowhere trying to speak to someone to sort this out. Please help as a matter of urgency. I expect a full repayment of the money you are taking without authorisation. We only recive 4 invoices.

    Hi Beverley I am getting nowhere! I am close to cancelling all subscriptions!!
    Below is transcript of online Chat. Can you please call me on the telephone number below to resolve this??
    You are now chatting with Dhananjay.
    Dhananjay: Hello! Welcome to Adobe Customer Service.
    Neil: Hello
    Dhananjay: Hi Neil
    Neil: My company has 4 Creative Cloud Subscriptions but Adobe are taking 5 subscription payments form the company credit cards. I have transaction ID for payments but am getting nowhere trying to speak to someone to sort this out. Please help as a matter of urgency. I expect a full repayment of the money you are taking without authorisation. We only recive 4 invoices.
    Dhananjay: May I please have your email address registered with Adobe?
    Neil: My own one is [removed], but we also have subscriptions on [removed IDs]
    Dhananjay: Thank you for the confirming.
    Dhananjay: I will be glad to check and help you with this issue.
    Neil: Thanks
    Dhananjay: Thank you for waiting. One moment please.
    Dhananjay: I checked to see you have Creative Cloud membership (one-year)
    Neil: yes
    Dhananjay: For [removed]
    Dhananjay: Order Date: Jul. 15, 2013
    Neil: yes that one is correct
    Dhananjay: Sorry for the wait. Please do stay online.
    Neil: ok
    Neil: ok
    Dhananjay: May i know why you want to cancel this order?
    Neil: I do NOT want to cancel this order.
    Neil: A payment of £38.11 was taken from credit card on 27 October with reference of DSSY012698981DT, please tell me what subscription that is for.
    Dhananjay: Okay.
    Dhananjay: Please stay online for 2 to 3 minutes while I check this information for you.
    Neil: ok
    Dhananjay: I'll be right with you.
    Neil: thanks
    Dhananjay: I checked and see your order is for ID [removed]
    Dhananjay: Order number AD001185187UK
    Dhananjay: Dated 26-Oct-2013
    Neil: but a payment of £22.23 is being taken on 16th October for this subscription. Reference is DSSY013475821DT
    Dhananjay: The above order you want to retain?
    Dhananjay: AD001185187UK?
    Neil: yes, but why is there a payment of £22.23 being taken on 16th October with reference DSSY013475821DT??
    Dhananjay: I checked and see Re: Taking too many subscription payments is for  DSSY013475821DT Order date 15-Jul-2013 Id [removed]
    [removed] are both the same person so I only need one subscription. please cancel AD001185187UK.
    Dhananjay: Please stay online, while I cancel the subscription for you.
    Neil: ok
    Dhananjay: Thank you for waiting. One moment please.
    Neil: ok
    Dhananjay: This is the one which is charged £38.11
    Neil: correct
    Dhananjay: As one year contract is expired and you have been moved to standard price.
    Neil: ok
    Dhananjay: I'll be right with you.
    Dhananjay: Sorry for the wait. Please do stay online.
    Neil: ok
    Dhananjay: Please be informed a (Cancelation fee will apply if customer cancels 30 days +/- of their annual commitment date).
    Dhananjay: cancelation fee is calculated as 50% amount of the remaining month’s charges (excluding the current month).
    Neil: Cancel whichever subscription will cost the least to cancel, either AD001185187UK or AD001610869UK
    Dhananjay: I will check.
    Neil: is it cheaper to cancel AD001610869UK as its renewal is is July?
    Dhananjay: As you have been paying £22.23
    Dhananjay: For this order dont cancel that.
    Dhananjay: As  Account Activated: 15-Jul-2013
    Dhananjay: You will have to pay the same amount for one year better cancel the other order.
    Neil: As a cancellation fee only applies if customer cancels 30 days +/- of their annual commitment date, and £22.23 account renewal is July, there will be no cancellation fee for this one.
    Dhananjay: Weren't you informed about the renewal?
    Neil: No!
    Dhananjay: As Account Activated: 15-Jul-2013 already 3 months are up Neil
    Thanks
    Neil
    http://www.designworksdigital.co.uk/DW_Email_Signature/Logo.gif<http://www.designwork.co.uk/>
    Neil Rapson / Director
    40 Trafalgar Lane
    Edinburgh EH6 4DJ
    Adobe Authorised Print Service Provider / ISO9001:2008 Accredited Company
    Designworks Design & Artworking Ltd is a limited company registered in Scotland / Registered no. SC192515.
    Message was edited by: Beverley Gray

  • Too many java processes.

    Hi,
    I have installed Forms & Reports Services Standalone 10.1.2.0.2 on RHEL 5 and applied the 10.1.2.3 patch to it. After the patch, the java processes continue to grow so fast that sometimes when I open a new session and try to switch to oracle user, I get a "too many processes" error.
    Apparently these java processes are from the Reports Server, however I haven't even yet configured the Reports server and am not doing anything with the reports server at the moment. Right now, I'm only configuring the Forms server.
    So, I am wondering what is going on here - why are there so many java processes and what to do about it?
    Thanks.

    Hi,
    Based on dependency better you can go for 3 parellel process at a time as what we are doing in our project. 
    check schedule time for each your process chain which fetchs data from source system (Info Package) and re schedule them which should not execute at a time (make it max 3) and try again
    Regards
    BVR

  • Too  many parallel processes

    Hi
    I will have to build process chain to cube 0SD_C03 and the datasources are
    2LIS_12_VCITM
    2LIS_12_VCHDR
    2LIS_12_V_ITM
    2LIS_12_VDHDR
    2LIS_12_VAITM
    2LIS_12_VDITM
    2LIS_12_VADHDR
    Now the question is after providing the links between " Delete index" process and individual  loading process (Infopackages),the message I am getting in the checking view is " Too many parallel processes for chosen server " and furthe,r the suggested procedure by system is " Reduce the number of parallel processes in the chain or include sub-chains :
    How can I reduce the processes? Is there any alterante method of building this flow to avoid warning messages..
    Though these are warning messages ,what is the correct flow of building process chain for this without getting any warning messages.

    Hi,
    Based on dependency better you can go for 3 parellel process at a time as what we are doing in our project. 
    check schedule time for each your process chain which fetchs data from source system (Info Package) and re schedule them which should not execute at a time (make it max 3) and try again
    Regards
    BVR

  • I want ro remove all of the default Firefox bookmarks. There are way too many and none of which are usefull to me. I would like to make my old IE Favorites folder the default. How can I do this?

    I need to remove the default Firefox bookmarks.
    There are way too many and none of which are usefull to me.
    Also, I am vision impaired and reading through such a long list is very eye-fatigueing to me.
    I would like to make my old IE Favorites folder the default. How can I do this?

    Did you import an iPhoto Library from the old Hard Drive? Do you still have that old Library?
    The way to clear out a Library is to Export the photos - Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.
    For the annoying start-up message:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.

  • I have an Ipad 2 Model MC775LL, IOS 6.0.1 (10A523) and I am trying to update to IOS 6.1, but the download is taking too many hours. Is it normal?

    I have an Ipad 2 Model MC775LL, IOS 6.0.1 (10A523) and I am trying to update to IOS 6.1, but the download is taking too many hours. Is it normal?

    You have to connect the iPad to your computer to update.
    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
     Cheers, Tom

  • HT201436 call gets dropped too many times ,network is alright

    call gets dropped too many times ,network is alright

    It is also relatively easily to dial 911 during the palm reset process as well.  Maybe a confirmation screen would be nice.

  • How do you sync contacts with gmail, not other place on computer? I don't know where the contacts came from on that are now on my new phone. There are way too many and it is not my list of contacts I have on gmail. Where else is this from?

    I don't know where the contacts came from on that are now on my new phone. There are way too many and it is not my list of contacts I have on gmail. Where else is this from? I spent a LONG time on gmail going through my list of contacts. There were about 400 and I got it down to about 90. When I went to sync my new phone, ALL 400 synced.
    Thank you for any help!

    Sorry for the repeat...new here. OBVIOUSLY.

  • Playing Video files taking too much CPU processing(50 % )

    Hello everyone,
    My macbook taking too much CPU processing power for playing Video file.Below shared the statistics..Is it a issue..? can you please help me here..I can't play simultaneously 2-3 MKV videos..distorted picture Quality.
    Macbook:
    mkv
         Qucik Time PLayer (using perian plugin):50%
         vlc:40%
          mplayer:60%
    normal(example Mp4)
         Qucik Time PLayer (using perian plugin):30%
         vlc:25%
    where a normal Linux system takes
      mkv file with VLC : 20-25%
    Thanks in advance...

    Simple thing to try would be to disable composite and see how you fare then
    Check the logs first, though

  • Working with 30 Camera angles in multicam sequence, best workflow, too many cams for system to play all at once

    Working with 30 Camera angles in multicam sequence, best workflow, too many cams for system to play all at once

    Get a halfway decent system, something like:

  • There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    Sharon-
    Good idea.
    Back up first.
    I would probably wait for the merge function of the latest version before merging. Be sure to verify every merge.
    Merge Libraries, then from within Aperture move images to referenced on external hard drives.
    HTH
    -Allen

  • How many work processes should be configured in ERP?

    Hey guys I'm installing ERP 6.0 on a system landscape on AIX 6.1 and Oracle 10.2.0.4.
    I wish I had an idea of what is best practice to determine how many work processes can be configured in an instance ?
    I give the example of the Quality server:
    Only a Central Intance
    Number of Users to Log On: 120
    Physical Memory: 12 GB
    Swap Space: 38 GB
    Thanks for your help
    Desiré

    Hello,
    Refer to SAP Note 9942 for maximum number of work process.
    Regarding what would be optimal setting in your system, there is no clear cut solution. You have set it first based on your guess for amount of dialog activity, batch jobs etc.
    Typically, you should have dialog process double than background processes. Simillary, background process should be double than update, update should be double than update2 and total should not cross more than what mentioned in above Note for your Operating system and SAP release.
    Then you keep checking the system any bottleneck for a week or two and accordingly adjust the work processes if required.
    regards,
    rakesh

  • Why are there so many apps and wearable tech out there that specifically focuses on losing weight?

    I'm under weight and would really like to see some apps for people like me who want to gain about 30 lbs!

    Why are there so many apps and wearable tech out there that specifically focuses on losing weight?
    Because there's a 35x bigger market for it.
    Percent of adults   age 20 years and over who are overweight, including  obesity: 69.2% (2009-2010) - http://www.cdc.gov/nchs/fastats/overwt.htm
    ...an estimated 1.7% of U.S. adults aged 20 and over are underweight - http://www.cdc.gov/nchs/data/hestat/underweight_adult_07_10/underweight_adult_07 _10.htm
    I suggest you type
    weight gain app osx
    into a search engine.  I did and one came up on the top line (no idea if it is any good, you have to determine that yourself).

  • Program making a RFC call to Function Module not working in background

    Hi All,
    I have an ABAP Program which is used to do a reconciliation check between the R/3 and BI system for Invoice Data. Please find below the details of the program flow:
    1.     Program counts the number of records in the DSO table and aggregates the Net_Value based on the date range (passed as parameters)
    2.     Program calls a Function Module (RFC Call) which counts the number of records in the R/3 table and aggregates the Net_Value for the same date range
    3.     Function Module Passes back the count values and aggregated Net_Value to the program
    4.     Program compares the count and aggregated Net_Value from EDWH and MSP systems and sends an email mentioning whether the counts match or not
    However we are facing an issue.
    Whenever, we execute the program in dialog mode, it works fine and fetches results within 5-6 minutes. However if we schedule the program to run in background (parameters through a variant), it gives no results even after running for over 3-4 hours. We tried figuring it out yesterday but could not come to any conclusion. Since there is a RFC call being to the function module, we were wondering if we need to specify some other parameter as well.
    Thanks & Regards
    Dharmendra

    RFC Call is a procedure for executing remote enables function modules. It is done via the 'Remote Enabled' radio button on the function module's attribute screen.

Maybe you are looking for

  • Invoice number and document number not printed in payment advice

    Hello Gurus,        I am executing reprint check through transaction fch7, In that Invoice number and document number not printed in payment advice. I have created zscript for that and also assinged regup-belnr and regup-xblnr and used standard progr

  • Is it possible to use External HD as main boot drive? (Help!)

    Hi all I am about to buy a Seagate FreeAgent Pro (link: http://www.bhphotovideo.com/c/product/478636-REG/SeagateST305004FPA1E3_RK_FreeAgent_Pro_500GB_eSATA.html) with 500Gb and FW400/USB2.0/eSATA. I have a Mac Mini, and its internal HD is too small f

  • Transfer of tax indicator to purchase order for service items in shopping cart

    Hi all. I have a problem with the tax indicator in the shopping carts and in the backend purchase orders for service items. If I create a shopping cart with service items with different tax indicators, the backend purchase order have a unique item in

  • Dynamic coulmn in select query

    Hello, This is the table I have Country, ITEM,COST INDIA A 100 THAILANDB 250 INDIA B 200 now in my select I would need as if item is A then cost column should be displayed as COST_test1 if item is B then cost should be cost_test 2... something like t

  • Which one external hard drive is better for my G5's FW800 port?

    Hi, I use a late G5 under 10.4.11. Last two weeks I used two different Western Digital disks, My Book Studio & My Book Studio Edition II but both of them don't operate well with the FW 800. They conflict with my audio interfaces (FW 400 devices). Onl