Parallel (same) background jobs:  Memory and locking issues

<b>Scenerio:</b>  Multiple concurrent inbound asynchronous XI messages need to be processed in SAP.  We have the XI proxy initiating an RFC. This RFC exports internal tables (essentially the XI payload) to a unique shared memory ID (for each XI message). RFC then submits an abap (submit..and return)  in a background job. This abap reads (via IMPORT) the shared memory ID to get the data then process it.
<b>Problem:</b>  : When multiple concurrent jobs/abap are running, often, but not always, one of the submitted abaps either gets a non-zero return code from the IMPORT, or the IMPORT from shared memory seems to work fine, but the table contents contains data from the other (parallel) run, even though the memory ID used is correct and unique.
I have attempted to resolve this by using various methods (memory IDs, SPA/GPA parameter, ENQUEUE) of locking in the RFC (unlocking at end of abap), so that only one background job is executed at a time.  However, the best I can do is having two or three running in parallel.
So I'm wondering how to solve this memory issue and/or how to make the abap processing synchronous?  Any help appreciated. Thanks.

There is a limitation on Amt of data you can store in ABAP Memory and SAP Memory .. check those limitation ..per user ..
also check for Number of external session granted by urr basis ppl...
it may be possible that only 3-4 session are allowed coz each background process create and external session ..

Similar Messages

  • InfoPack processing (PSA and data targets in parallel) data and lock issues

    Good morning,
    We are on BW 3.5 and contemplating changing our InfoPackages from option 1 (PSA then data targets) to option 2 (PSA and data targets in parallel) for performance reasons (test have shown a gain of 50% in load time compared to using option 1).
    Issues have been raised that using option 2 may lead to data consistency and lock issues especially for SD infosources where we are dealing with multiple daily status changes for same document that need to be read in a specific order.
    From what I have read, such issues were possible in BW 2.x e.g. OSS Note 384023 and 364577. However, I am under the impression that the issues may have been resolved in BW 3.x and that it is "safe" to use option 2 (PSA and data targets in parallel).
    Would really appreciate if you could please share your experience when using processing option 2 (PSA // DT) especially in a BW 3.xx system.
    Thank you in advance,
    Catherine

    Hi Amit,
    The help text (vers. 3.5) for this method of loading says simply -
    "A process is started to write the data from this data packet into the PSA for each data package. If the data is successfully updated in the PSA, a second parallel process is started. In this process, the transfer rules are used for the package data records, data is adopted by the communication structure, and it is finally written to the data targets. Posting of the data occurs in parallel by packet.
    This method is used to update data into the PSA and the data targets with a high level of performance. The BW system receives the data from the source system, writes it to the PSA, and starts the update immediately and in parallel into the corresponding data target"
    Not sure where you got your description from, but is not explained well and confusing.
    Regards,
    Ken

  • How to get Current Background Job name and Job Count programmically?

    Hi all,
            I have a requirement wherein I need to get the Current Background Job name and Job Count in the program and store it in a custom table. In other words, whenever I schedule a particular program ( This is a Std program) in background, I need to update this table with the Job Name and Job Count. This will be used by another program later to read the Job Information from table TBTCO. TBTCO has key fields Job Name and Job ID. The sheduled program will be a SAP standard program and I'll be writing the logic to get the info in an Implicit Enhancement Spot.
    Is there anyway I can do this? Any FM to get this information?
    Thanks,
    Mahesh.

    Hey Adrian,
                             Thanks a lot. This is what exactly i was looking for. Appreciate it.
    Mahesh.

  • Background job schedule and mail triggering

    Hi Experts,
    I schedule a background job to run a custom program for project closure.The job is running successfully. But,the mail I am getting from this job run is same all the time (means it's showing same project closure again and again though I am running job for different projects). Is it some bug in our custom program or any parameters required to be check in job schedule?
    Kindly suggest.
    Thanks & Regards
    Saurabh

    Yes. That is the point I am missing. Just one 'date' is checked and project is taken into account for the custom program and after its successful run the mail is sent to users.
    And when the same program I am assigning in SM36,it is actually running the program accurately for project/s but sending the same mail which it send for very first project earlier.
    Can you please guide me on the way to create these variants? 
    You will need to Save different variants for different projects and then assign the variants with your job.
    Will it be required to create variant again and again and assign different projects individually? As, we are not sure that which project is gonna be created in future. So, need guideline how these variants can help me to sort out the e-mail issue.
    Regards
    Saurabh

  • Integrated ITS: multiple sessions and locking issue

    We are upgrading to ECC 6.0 from 4.6C and have Integrated ITS turned on. We have built a custom PZM3 as one entry and exit point for our ESS services. But we have issues with session management when navigating between some services like PZ14 and PZ02. The PZ14 session and the corresponding lock are not released upon going to the PZ02 service directly. But this happens for only some services. If you navigate between PZ02 and PZ12 it works fine. I followed the instructions of note# 959417, but it didn't work. Not only it is causing locking issues, but also memory usage issues as multiple user sessions are being created on the server. I did check some of posts similar to this one, but the issue still persists.
    Our WAS release: 7.00; ABAP support package: SAPKB70009; Patch level: 75.
    I would appreciate if anyone could shed some light on this issue. Thank you for your time and consideration.
    Kshitij

    Our Basis admin found out that using a parameter ~DISCONNECTONCLOSE = 1 would resolve most of this issues -- and it did. But now we are having issues with some users having popup blockers turned on. We referred to SAP notes 892250/596698-- followed it -- implemented it-- but some users
    still have issues -- like today while working from home via VPN, I am having issues with session management. But working from office yesterday,
    the sessions worked just fine.

  • Background job for auto lock user

    Dear Friends,
    Which background job i have to be schedule for auto locking user after every 30 days if then are not logged for last 30 days.
    Thanks,
    Regards,
    Sachin

    Hi, Sachin.
    Please check this thread.
    Locking users if they did not login for 15 days
    Best Regards.
    Sejoon

  • Background Job step and Variant

    Hi,
       We are undergoing process of renaming user IDs(Eg from ABC to XYZ). I would like to know the effect on Background jobs due to renaming. I am sure we need to update the job step(s) with the new user ID. Do we need to do anything with variants too or will they work for new IDs also. Your help is highly appreciated.
    Thanks,
    Venu.

    Hi,
    This is SAP Business one system administration forum. Please find correct forum and repost your discussion to get quick assistance.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Background Job definition and relationship between jobs

    Hi All,
    I have 2 jobs J1 and J2. After finishing J1, J2 should start. While defining through SM36, if we use After Job in Start Condition, first time the runs are ok, but if we wish to run it periodic, the dependency is lost. Can someone help me out??
    RSPC option is not there.
    thanks,
    Partha Maity

    Hi,
    I have tried the option of Job definition through SM36, it works for the first time as i have said, in periodic running dependency is lost. Tried again , same output.
    Defining a single job, we have tried this option, and it is taking unusally longer time, thats why we want to have separate job,. and one single big job fails we have very little option of recovery.
    RSPC option is not there in APO 3.1
    By events, how this can be acheived can some one give detail workout.
    Thanks in anticipation.
    Partha Maity

  • SAP ECC6 memory and paging issues

    Dear Experts
    I have recently upgraded my 4.6C systems to an ECC 6 system (DB2 LUW 9.5 on AIX 5.3 TL9 64 Bit OS)
    I have been running the LPAR with 14 GB of memory and we are around 100-200+ users using the system, I was monitoring using nmon and found that Physical Memory was around 99.8% Used   (14311.8MB and 22.6MB was free) also the paging space was around 37.2% in result causing the system at times to run slow which can have a very negative effect on the users.
    After further investigation I found that after a system restart the Physical Memory would start around 50.9% and increased at a steady pace until it reached 99.8% that is when the system would start using the paging space which would steadily increase, I found that the only solution was a system restart at least once a week to reduce the memory consumption.
    At first glance it looked like a database manger memory leak with the process db2sysc, so I searched the net with the search words u201Cdb2 memory leaku201D and found the following APARs and notes.
    APAR JR30285 - Pervasive memory leak when compiling SQL statements that use SQL/XML functions
    APAR IZ35230 - There is a pervasive unix-specific private memory leak in the security component
    Note 1288341 - Memory leak in APPLHEAPSZ -> SQL0954C 
    Note 1352361 - Memory leak in shared memory area abrfci
    Note 1147821 - DB6: Known Errors and available Fixes in DB2 9.5 LUW
    After reading the notes and APARs I decided to updated DB2 to the latest fix pack (5SAP), but after the fix pack was implemented it did not solve the memory problem
    I started look at different problems with SAP ECC6, db2 and AIX with paging/memory problems and I found the following notes to do with AIX memory and paging but none of them helped as all parameters and settings were set accordingly  
    789477 - Large extended memory on AIX (64-bit) as of Kernel 6.20
    191801 - AIX 64-bit with very large amount of Extended Memory
    973227 - AIX Virtual Memory Management: Tuning Recommendations
    884393 - AIX saposcol consumes large amount of memory.
    856848 u2013 AIX Extended Memory Disclaiming 
    1048686 u2013 Recommended AIX settings for SAP
    1121904 u2013 SAP on AIX: Recommendations for Paging
    1086130 u2013 DB6: DB2 Standard Parameter Settings
    After even more investigation I found the following evidence suggesting AIX Virtual Memory Manager might have a problem

    Shared memories inside of pool 40
    Key:       42  Size:    17792992 (  17.0 MB) DB TTAB buffer              
    Key:       43  Size:    53606392 (  51.1 MB) DB FTAB buffer              
    Key:       44  Size:     8550392 (   8.2 MB) DB IREC buffer              
    Key:       45  Size:     7014392 (   6.7 MB) DB short nametab buffer     
    Key:       46  Size:       20480 (   0.0 MB) DB sync table               
    Key:       47  Size:    10241024 (   9.8 MB) DB CUA buffer               
    Key:       48  Size:      300000 (   0.3 MB) Number range buffer         
    Key:       49  Size:     2769392 (   2.6 MB) Spool admin (SpoolWP+DiaWP) 
    Shared memories outside of pools
    Key:        3  Size:   114048000 ( 108.8 MB) Disp. communication areas   
    Key:        4  Size:      523048 (   0.5 MB) statistic area              
    Key:        6  Size:   692224000 ( 660.2 MB) ABAP program buffer         
    Key:        7  Size:       14838 (   0.0 MB) Update task administration  
    Key:        8  Size:   134217828 ( 128.0 MB) Paging buffer               
    Key:        9  Size:   134217828 ( 128.0 MB) Roll buffer                 
    Key:       18  Size:     1835108 (   1.7 MB) Paging adminitration        
    Key:       19  Size:   119850000 ( 114.3 MB) Table-buffer                
    Key:       41  Size:    25010000 (  23.9 MB) DB statistics buffer        
    Key:       63  Size:      409600 (   0.4 MB) ICMAN shared memory         
    Key:       64  Size:     4202496 (   4.0 MB) Online Text Repository Buf. 
    Key:       65  Size:     4202496 (   4.0 MB) Export/Import Shared Memory 
    Key:     1002  Size:      400000 (   0.4 MB) Performance monitoring V01.0
    Key: 58900114  Size:        4096 (   0.0 MB) SCSA area                   
    Nr of operating system shared memory segments: 16
    Shared memory resource requirements estimated
    ================================================================
    Total Nr of shared segments required.....:         16
    System-imposed number of shared memories.:       1000
    Shared memory segment size required min..:  692224000 ( 660.2 MB)
    System-imposed maximum segment size......: 35184372088832 (33554432.0 MB)
    Swap space requirements estimated
    ================================================
    Shared memory....................: 1654.8 MB
    ..in pool 10  328.6 MB,   58% used
    ..in pool 40  143.3 MB,   30% used
    ..not in pool: 1174.1 MB
    Processes........................:  413.4 MB
    Extended Memory .................: 6144.0 MB
    Total, minimum requirement.......: 8212.2 MB
    Process local heaps, worst case..: 3814.7 MB
    Total, worst case requirement....: 21882.9 MB
    Errors detected..................:    0
    Warnings detected................:    3

  • Memory and CPU issue

    Hi experts,
    My Oracle version is:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    we have 2 node RAC. my client (WAS) connects to the DB using JDBC and establishes connection with the DB.
    Now problems is coming that my RAC memory on both the nodes gets fully consumed and CPU utilisation is also very high.
    We are using proxy login in our application connection. which means that connection to the DB will be created with a schema(User) and after that Proxy session will be established for a particular user. So for a request we have two session. The main session which we had will schema user becomes inactive and proxy session becomes active.
    So this way we have 2 sessions for a request which is not wrong but memory and CPU utilisation are bottlenecked.
    Can anyone tell what is the minimum memery that a connection takes even if its idle or inactive.
    Regards,
    Vikas

    JDBC 'applications' quite often don't use persistent connections, and often do not exit gracefully by calling 'exit' or 'disconnect'.
    This means the session will continue to exist.
    It also means, if you don't establish any form of connection pooling and/or dead connection detection, you can throw whatever amount of memory in the server, and you will continue to report
    'Now problems is coming'. Apart from crippled English, the general lesson any DBA should know is how these 'applications' operate, and, contrary to some, you can never ever fight problems caused by applications,
    by throwing memory and cpu at the problem.
    When I read your text, I also assume the application is not using PrepareStatement calls and not using bindvariables, this is why your 'application' is burning the CPU.
    Find those 'application developers', sue them, or better still : Beat them with a whip, and have them fix their 'crapplication'.
    Paraphrasing William Jefferson Clinton: It's the application, stupid!
    Sybrand Bakker
    Senior Oracle DBA

  • Multiply filter in illustrator with a 2 color job-pdf and print issues?

    Hi,
    Encountering a tricky problem and not sure if its an InDesign fix or an Illustrator fix.
    I am working on a 2 color job—pms color + black on a book cover. The cover needs to seperate into these 2 colors.
    Also, I need to make a high res and lowres pdf that look like the cover to send out to marketing, sales etc.
    WHAT's THE PROBLEM?...
    Well, I am creating a collage with black ink vector graphics on top of the pms background. I created this art in illustrator CS3. it is saved as an .eps file. The illos were done by someone who used a white fill to knock out black areas. There is also a wide 50% grey outline around the illustration.
    I like the idea of the line of the illo being black and the fill being red so that it looks seethrough on the red background. But the 50% grey outline causes a problem...I'd like the 50% outline to blend with the red color, so instead of appearing like there is white in the ink it overprints.
    The only way I could think of (and quickest way) was to apply the multiply filter in illustrator to the vector illo. This seemed to work great.
    I brought the illo into InDesign CS3 where I created my cover layout.
    Looks great, Prints great. Separations appear to be good, although it shows the yellow, cyan, and majenta layer they appear to be blank, so I think it will seperate nicely into 2 plates–PMS + black.
    BUT, when I make a pdf, using "smallest file size" or using "high quality print", the pdf it makes does not show the illustrations in the collage. They are kind of beige and dulled out. The publisher needs pdfs too.
    Does this at all indicate that this job will not print correctly using this multiply filter, or is it all well and good final product wise, but its just an issue making the pdf? I am slightly nervous I am going to send this off to the printer and they will have some issue.
    I am a professional designer of 10 years with lots of print experience, but I have never used multiply in illustrator so I just want to make sure there is no rule against doing this I should know about. Does multiply at all mess with the color separations or is it fine? And how do I get my pdf to come out right? I'm hoping there's some dumb thing I'm forgetting, or a simple fix.
    Thanks for any insight you may have!
    L.

    If you don't feel comfortable using Multiply you might want to communicate with the printer and ask if this is an issue for them to reproduce correctly. Some printers using older rips may have issues with transparency. If you can't speak directly with your printer you could mark up the file or make a PDF to accompany the working file with your comments about what prints at what percentage, and if it should overprint or knockout. Years ago I would get a file with transparency in it and have to make sure the designers intent was clear. This was in some cases due to the designer not understanding blend modes or what he/she wanted overprinting or knocking out in the printed piece. The other way you can confirm the separations are going to rip correctly is to print a PDF out of Indesign and open it in Acrobat pro. Under Advanced>Print Production>Output Preview you can turn on and off separations for the 2 spot colors in question. Because PDF acts as your rip in this case you should be seeing what separations your printer will be printing using your native Indesign file. Some print shops will require you to provide a PDF or a color laser print out for QA of your printed piece when sending files to prepress.
    Hope this is helpful.

  • The iPhone update 8.3 (12F70) is making my home screen wallpapers darker than the picture itself. Even if I set the same picture as home and lock screen wallpaper, the home screen image is noticeably darker. How can I change this?

    Is anyone else noticing the same issue?
    I'm really unhappy with the upgrade, the darker home screen images alters the coloring and detracts from the overall "light" feeling.

    Apparently it's been an issue since 7.1, according to this: http://forums.imore.com/ask-question/282076-black-tint-across-top-my-lock-screen -wallpaper.html
    The iPhone 6 is my first iPhone so I've never used iOS 7 before. Can anybody who has provide more info on this?

  • Background Image Centering and Display issues in Internet Explorer--affecting home page only??

    Hi--my web site is www.vergent.net, and for some reason, the background image will not center in Internet Explorer, but I'm having this issue only on the home page. (And only in IE. I am looking at it on IE 9). I've tried a number of workarounds, and nothing is working. Strangely, the same Master applied to other pages looks fine.
    Please help!
    A few more details:
    The background image is placed into the Master page via the "browser fill" method.  I tried a workaround where I just paste the background image directly onto the page and then placed content over that. However, IE doesn't seem to read the z-index information correctly. The result is that the background image winds up on top of all the content in IE using this method.
    Any help will be most appreciated.
    Thanks,
    Jennifer

    PS, I have temporarily resolved this problem by uncentering the content and just pinning everything flush to the left.

  • Parallel Device Creation -  How to avoid Locking Issue

    Hi All,
    I am using 'ENQUEUE_EIMASE' and  'DEQUEUE_EIMASE' to lock the MASE table inorder fetch the current serial number for a particular Device Category . Then this serial number is increased by one and FM 'READ_MASE' is used to save the new serial number in MASE database table.
    This works when we are creating just one device at a time for a particular device category.
    But if for the same device category am trying to creat devices parallelly through same program or differrent program, then its not working properly.
    For Eg:
    I am trying to 3 create devices for the same device category simultaneously  through different programs, then only for first one which has obtained the lock on MASE table am obtaining the serial number . And for the other 2 locking of table fails.
    Could you guide me to solve this issue?

    This is not an issue, while the record is being locked by program 1, it cannot be locked by program 2 simultaneously. Thats why we use locking mechanisms. You need to intoduce some time based mechanism like waiting for the first program to complete, or event based method, like keep on trying to lock the record in a loop, untill it gets successfully locked (After the lock is released by program one). Also remember to unlock all the records you lock in your program at the last, though they get unlocked automatically.
    Thanks,
    Saravanan Rajan

  • Acer Liquid Z520 System memory and Lock screen apps

    Hi recently i've bought a Z520 duo and am encoutering a few things which i hope are you guys can help me.I am new to android (coming from Windows Phone) and am looking for help how to fix the things below. 1) System Memory I'm getting the message that systemmemory is low alot (expecially when startin games like Clash of clans). This seem to be the RAM. If i look at the apps memory is see almost 800 MB/0.94 GB used, however the apps below summarized don't come close to the 800 MB. Now if i restart my phone already 500 MB RAM is consumed wihtout starting any app (app list showin a few services, no more then 50MB). I've disabled alot of apps already and moved alot to the external SD card. Is there a way to fix this? 2) Lock screenI've added my camera to my Acer Home start screen as a quick app (Phone, WhatsApp, <Apps>, Mail, Camera). Now in my lock screen i see my other apps however the Camera doesn't show (Phone, WhatsApp, <Unlock>, Mail, <empty>) I love the quick launch from lock screen, especially to take quick pictures. How can I fix this 3) Unread badgesI'm very used to unread badges. I see the Acer phone has it on mail and phone and messages. What's the best way to get it on WhatsApp and Games, and also see it in the lock screen? Sincerly hope you guys can help, i'm somewhat disappointed in the lack of the issues above.

    have you checked that you are up to date with all the latest Nokia system app updaets from the Store? also try performing a soft reset (pressing the volume down and power buttons together until the phone vibrates) to see if this rectifies your issue.
    if you do perform a hard reset, do know that your entire purchase history is saved on your Microsoft account, therefore you will not need to re-pay for apps that you have purchased previously, even those premium ones that you own.

Maybe you are looking for