Can a long running batch job causing deadlock bring server performance down
Hi
I have a customer having a long running batch job (approx 6 hrs), recently we experienced performance issue where the job now taking >12 hrs. The database server is crawling. Looking at the alert.log showing some deadlock,
The batch job are in fact many parallel child batch job that running at the same time, that would have explain the deadlock.
Thus, i just wondering any possibility that due to deadlock, can cause the whole server to be crawling, even connect to the database using toad is also getting slow or doing ls -lrt..
Thanks
Rgds
Ung
Kok Aik wrote:
According to documentation, complex deadlock can make the job appeared hang & affect throughput, but it didn't mentioned how it will make the whole server to slow down. My initial thought would be the rolling back and reconstruct of CR copy that would have use up the cpu.
I think your ideas on rolling back, CR construction etc. are good guesses. If you have deadlocks, then you have multiple processes working in the same place in the database at the same time, so there may be other "near-deadlocks" that cause all sorts of interference problems.
Obviously you could have processes queueing for the same resource for some time without getting into a deadlock.
You can have a long running update hit a row which was changed by another user after the update started - which woudl cause the long-running update to rollback and start again (Tom Kyte refers to this as 'write consistency' if you want to search his website for a discussion on the topic).
Once concurrent processes start sliding out of their correct sequences because of a few delays, it's possible for reports that used to run when nothing else was going on suddenly finding themselves running while updates are going on - and doing lots more reads (physical I/O) of the undo tablespace to take blocks a long way back into the past.
And so on...
Anyway, according to the customer, the problem seems to be related to the lgpr_size as the problem disappeared after they revert it back to its orignial default value,0. I couldn't figure out what the lgpr_size is - can you explain.
Thanks
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
"Science is more than a body of knowledge; it is a way of thinking" Carl Sagan
Similar Messages
-
Alert monitor for long running background jobs
Hello,
I have to configure an alert moniter for long running background jobs which are running more than 20000 secs using rule based. I have created a rule based MTE and assigend MTE class CCMS_GET_MTE_BY_CLASS to virtual node but i dont find a node to specify the time.
could any one guide me how can i do this.
Thanks,
KasiHi *,
I think the missing bit is where to set the maximum runtime. The runtime is set in the collection method and not the MTE class.
process: rz20 --> SAP CCMS Technical Expert Monitors --> All Contexts on local application server --> background --> long-running jobs. Click on 'Jobs over Runtime Limits' then properties, click the methods tab then double click 'CCMS_LONGRUNNING_JOB_COLLECT', in the parameters tab you can then set the maximum runtime.
If you need to monitor specific jobs, follow the process (http://help.sap.com/saphelp_nw70/helpdata/en/1d/ab3207b610e3408fff44d6b1de15e6/content.htm) to create the rule based monitor, then follow this process to set the runtime.
Hope this helps.
Regards,
Riyaan.
Edited by: Riyaan Mahri on Oct 22, 2009 5:07 PM
Edited by: Riyaan Mahri on Oct 22, 2009 5:08 PM -
We have two users that have been using Creative Cloud for almost a year. Recently, sometime in the last 4ish weeks, the users can no longer run Creative Cloud apps. (Yes, our subscription is paid.) Error simply says administrator access is required to install. The apps have already been installed. The users cannot run them unless they are in the local admin group.Using "Run as admin" does not work. It gives the same error.
I have opened a case with adobe support and was basically told to suck it up and put the users in the admin group. Actually, what was said was that it is "mandated that the users have administrative rights".
There are a couple of things wrong with this. It was working for both users until recently - a recent required creative cloud update. The users have never been local admins yet the apps were working (poorly, but working).
We are in an enterprise environment and users simply do not have administrative rights on the computers.
I have changed permissions on all adobe folders, granting users or authenticated users modify or full control rights, did the same in whatever Adobe registry HKLM keys I could find. Nothing has allowed the users to run the apps - unless they are put in the local admin group.
Someone has to have a fix for this. Adobe apps have proved to have far too many vunerabilities to even entertain the idea of elevating user rights. I can't imagine that enterprise environments are allowing this.
Any help or suggestions are greatly appreciated.Jeff,
Thank you for your response. The users in question are "standard" domain users. We do not reduce users permissions below the standard level.
The apps do not load with their current standard user permissions.
The thing that makes this odd, is that up until recently they did this issue with cloud apps. The only way I can make it work for them now is to put them in the local administrator group on their pc's - which is not going to happen.
This is what they now see. As I said before, this was not a problem up until recently they would see all their available apps. If I put them in the local admin group the apps are listed without having to install. Everything is there, just not accessible to the user. -
I have an iPhone 3G and I had skype installed before it updated to v.4. Now, during a backup, iTunes tells me i can no longer run Skype on my iPhone because the latest version of Skype is not compatible. Is there any way I can install an older version?
How can I contact Viber support? When I go to their website there's no such thing as 'email us' or 'contact us'.
They may have a do-it-yourself troubleshoot system but that doesnt help my problem at all. -
I can no longer run itunes since the latest update
i can no longer run itunes since the latest update
Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (If this won't uninstall press on)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
C:\Program Files (x86)\Common Files\Apple\Apple Application Support
and paste into:
C:\Program Files (x86)\iTunes
The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error. -
Can no longer run queries with 7.10 GUI after BI upgrade to 7.3
We have some users who can no longer run BEx workbooks. The selection screens no longer pop-up. We upgraded to BI 7.3. Not all users having this problem. they are all using GUI 7.10, Excel 2003, OS XP
SAP NW BI BEx Compatibility of MS Operating Systems and Office Products
Regards,
Sushant -
I was running the newest version of Snow Leopard, and after running Software update, I can no longer run, open, sync or use iTunes in any way. PLEASE what happened?
I really regret that I said "OK" to Software Update message... after Software Update of these updates on 7-26-11:
Migration Assistant Update for Mac
Mac OSX 10.6.8 Supplemental Update
Safari
iTunes
Remote Desktop Client Update
Now I get a message:
iTunes cannot be opened because of a problem
Check with developer to make sure iTunes works with this version of Mac OSX. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OSX.
Process: iTunes [5092]
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Identifier: com.apple.iTunes
Version: ??? (???)
Build Info: iTunes-10315501~1
Code Type: X86 (Native)
Parent Process: launchd [111]
Date/Time: 2011-07-26 12:08:18.568 -0500
OS Version: Mac OS X 10.6.8 (10K540)
Report Version: 6
Interval Since Last Report: 504736 sec
Crashes Since Last Report: 20
Per-App Crashes Since Last Report: 13
Anonymous UUID: B8B5EE28-970A-4E79-949B-EA2DD6E6DAA2
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Library not loaded: @loader_path/libgnsdk_musicid.1.8.2.dylib
Referenced from: /Applications/iTunes.app/Contents/MacOS/iTunes
Reason: image not found
Binary Images:
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <A4F6ADCC-6448-37B4-ED6C-ABB2CD06F448> /usr/lib/dyld
Model: Macmini3,1, BootROM MM31.00AD.B00, 2 processors, Intel Core 2 Duo, 2.26 GHz, 2 GB, SMC 1.35f1
Graphics: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x90), Broadcom BCM43xx 1.0 (5.10.131.42.4)
Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: Hitachi HTS543216L9SA02, 149.05 GB
Serial ATA Device: OPTIARC DVD RW AD-5680H
USB Device: External HDD, 0x1058 (Western Digital Technologies, Inc.), 0x0704, 0x24100000 / 2
USB Device: Hub, 0x0424 (SMSC), 0x2507, 0x26400000 / 2
USB Device: iMic USB audio system, 0x077d, 0x07af, 0x26440000 / 4
USB Device: Hub, 0x0424 (SMSC), 0x2502, 0x26470000 / 3
USB Device: Deskjet D4300 series, 0x03f0 (Hewlett Packard), 0x1f04, 0x26471000 / 5
USB Device: GD-0608-U, 0x056a (WACOM Co., Ltd.), 0x0021, 0x04700000 / 4
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x04500000 / 3
USB Device: Hub in Apple Pro Keyboard, 0x05ac (Apple Inc.), 0x1003, 0x04300000 / 2
USB Device: Apple Optical USB Mouse, 0x05ac (Apple Inc.), 0x0307, 0x04310000 / 6
USB Device: Apple Pro Keyboard, 0x05ac (Apple Inc.), 0x020b, 0x04330000 / 5
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8216, 0x06110000 / 5
FireWire Device: unknown_device, Unknown
FireWire Device: d2 DVDRW FW, LaCie, Up to 400 Mb/secSame thing happened to me and I get the same error message. These are the programs that don't work
mail
keynote
pages
all Office 2011 programs
safari -
I just upgraded Flash Pro CC from 13.0.1.80 to 14.0.0.110. I can no longer run any .swf's The target is Player i13 or older, my computer has 16.
you mean you have a problem with the stand-alone flash player? or you're having a problem with flash pro?
-
Gr process is not completing for since 2006 while running batch job.
Hi,
we r running batch job and its not delivering material .in po history it showing not in Gr place. plz give reason and solution for this.
Thanks,
Sydannahi,
if you have alrady post that doc then pls check in migo- display & check th'r in thaty doc. batch is created or not or check storage location & plant plant also , it th'r is mistake while doing the migo then reverse./ cancle it
next go to in mm01--select that material no - select all the necessary subsereen inculuding plant/ data data store-1 & plant/data stor.1-screen -
click on batch management --& save
after that you do the grn againt of that po
thanks
santosh -
I can no longer run Adobe PhotoShop 8 with Mac Mountain Lion
I can no longer run Adobe PhotoShop 8 with Mac Mountain Lion. I get a recurring error message 150:30. Please help
http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html
-
Can no longer run shared videos in ios7
I have updated to ios7 and can no longer run shared videos?
Is it connected with a cable or wifi through Apple TV?
-
Hi,
We are facing problem with an MM job, this job some time finishes in few minutes or some times it will be running for a long time so that we should kill the job manually.
Can you please tell me what are the reasons can be for this, and also tell me what are the reasons that a job to be fnished in scheduled is running for a long time and how to find the root cause for this.
Yours reply is very much appreciated
Regards
Balaji VedagiriHi,
Please confirm you have enough hardware space.
Please do a consistency check of the BTC Processing System as follows:
1. Run Transaction SM65
2. Select Goto ... Additional tests
3. select these options: Perform TemSe check
Consistency check DB tables
List
Check profile parameters
Check host names
Determine no. of jobs in queue
All job servers
and then click execute.
4. Once you get the results check to see if you have any inconsistencies
in any of your tables.
5. If there are any inconsistencies reported then run the "Background
Procesing Analyses" (SM65 .. Goto ... Additional Tests) again.
This time check the "Consistency check DB tables" and the
"Remove Inconsistencies" options.
6. Run this a couple of times until all inconsistencies are removed from
the tables.
Make sure you run this SM65 check when the system is quiet and no other
batch jobs are running as this would put a lock on the TBTCO table till
it finishes. This table may be needed by any other batch job that is
running or scheduled to run at the time SM65 checks are running.
Please confirm you are running the following reports daily as per note #48400:
RSPO0041 (or RSPO1041), RSBTCDEL: To delete old TemSe objects
RSPO1043 and RSTS0020 for the consistency check.
Regards,
Snow -
CK24 Marking Batch Jobs causes SM12 Record locks
When finance runs the CK24 Marking job at month end, it seems to leaving some record locks hanging in SM12. The batch job is sucessful and says it has processed 23,699 materials, but it always leaves locks on some 700~ materials.
The materials are rohs, halbs, and ferts. I cannot figure out why only some cause this problem.
I am able to cleanup the locks, by deleting in SM12, but I want to know how to prevent, because it stops all functions such as shipping on these materials.
Thanks,
BevDear,
Please check SM37 is for job logs
Have you "enqueue" in RZ20 ?
In SM12 By double-clicking a lock entry, you can display detailed information, including the host name and number of the SAP System in which the lock was generated.
check this sap help...
http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
Regards,
R.Brahmankar -
Running batch job for synchronization request continuously
Hi,
in order to keep 2 cc&b systems synchronized I've developed integration part based on new BO in 2.3.1: F1-SynchRequest.
It's working like a charm. Letting to keep my synchronization events processed in background in a consistent way.
But, is there any possibility to run F1-SYNRQ in continuously mode, that will 'eat' all produced sync request in near real-time manner?
Right now for development purpose I'm running that job by hand. I know that I can schedule it every 3 minutes, but it will result in unnecessary flooding of CI_BATCH_RUN tables.
I developed such batch by myself (for now, just single thread model) based on decompiled version of AutoTransitionBatchProcess java class. It's working correctly.
I'm just wondering, if maybe there's something out-of-the-box to support my requirements of continuously, near real-time processing of synchronization request?
Regards,
BartłomiejHi,
Try to run RSNAST00 with the new delivery created. and check off the send again checkbox.
Regards,
Amitava -
Long running QueryDocumentProperties job crash
Hi,
I have a very simple piece of code using the Plumtree.Remote.PRC namespace, looping thru all document properties and checking for the presence of a specific value. Each time the code crashes around the time I visit about the 700th doc. The whole process takes a little less than 1 sec/doc.
Am I hitting some timeout problem here ?
Stack dump below.
Thanks for any ideas.
[email protected]
Plumtree.Remote.PRC.PortalException: Exception of type Plumtree.Remote.PRC.PortalException was thrown. ---> System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Invalid pointer
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at com.plumtree.remote.prc.soap.DirectoryAPIService.queryDocumentProperties(String sLoginToken, Int32 nCardID)
at com.plumtree.remote.prc.soap.DirectoryProcedures.QueryProperties(String sLoginToken, Int32 nCardID)
--- End of inner exception stack trace ---
at Plumtree.Remote.PRC.DocumentManagerWrapper.QueryDocumentProperties(Int32 documentID)
at Mercator.Portal.Scheduler.Jobs.CBrocomAddPropJob.GetDocumentProperty(Int32 docId, String id)
at Mercator.Portal.Scheduler.Jobs.CBrocomAddPropJob.Mercator.Portal.Framework.Interfaces.IJob.Run(String jobProgId, String parameter)Hi Dean,
We use version 5.0.4.
I have 2 jobs in fact. One is processing the cards in the order of their objectid, another picks the objectids from a hashtable (hence a different processing order). Both fail at around the same index (700), but not always the same, about a range of +/- 10. If I limit the job to a previously failed card, it does work, so I guess it can not be the data. The number of cards is 786. I ran the job again after completely removing the cards + their deletion history, same result. I'll run the job again with PTSpy on, but I think there was nothing special in it except:
209 05-20 08:45:19 Warn Plumtree.dll 14176 10924 PTInternalSession.cpp(3184) *** COM exception writing Log Message: IDispatch error #16389 (0x80044205): [Failed to open the log file for writing. log file: C:\Program Files\plumtree\ptportal\5.0\settings\logs\PTMachine.log]2 05-20 08:43:51 Warn Common Library 14176 10924 PTCommon.cpp(977) ***SetError *** (0x80044205): Error while writing message to log file.
which I do not understand either, the file is there and is perfectly writable.
I guess I'll try splitting the job in 2 and open a support incident.
Thanks.
Michel.
Maybe you are looking for
-
How to use classes from different user defined Packages
well i made 2 packages... one containing employee class and realted matter and other contaning bankaccounts and bank related work... now how can i use them in an another.. i know about the import statement but still couldn't make it work.... now supp
-
Japanese characters retrieved from UTF8 d/b from excel
Hi All, I am generating a csv file(comma seperated) through a query from Oracle 9i database. There is one field which is Japanese. Our database is UTF8 enabled and when the csv file is opened from notepad/textpad then it is showing the Japanese chara
-
Problem opening Aperture library
I have an aperture library on an external HDD that I used to use on my macbook running Aperture. I want to open this library on my imac running aperture 3 but I get this message There was an error opening the database for the library "/Volumes/WD HDD
-
Help Syncing RSS Feeds from Mail onto Iphone
Hi, Appreciate any ideas on syncing RSS feeds from Mail onto an iphone. Like receiving RSS feeds in Mail into my inbox rather than using a separate reader such as Netnewswire/Google Reader/etc. Also would prefer not to have to use safari bookmarks if
-
Why can't I get my temps down?
Ok. i don't know what else to do. I got a new case that's in my sig thinking it'd help. Nope, same temps. I got a new fan, in sig, nope, same temps. I got a PSU with 3 fans thinking it'd also help. Nope, same temps. Can anyone tell me why I can