on 03-03-2015 9:23 AM
Hello Experts ,
I have scheduled SXMS_PF_AGGREGATE report in background since long(around 20 days) but it has not finished yet . When i check the job log , it says n number of aggregates created so far. That means it is working . But i want to know when it will be finished ?
Thanks in advance.
Regards ,
Nikhil Save
Hi Nikhil
There are probably a lot of records to process. Try to reorg SXMSPFRAWH table and delete data prior to say 15 days. The reorg can be done using SXMS_PF_REORG report. After the cleanup is done, do the aggregation and set the reorg as a periodic job. Please see this blog post: Deleting SXMSPFRAWH Data in SAP XI | SAP NW Newbie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
The expectation of running until point 4 is that you will now have these reports working on less amount of data and the subsequent runs will take less time.
Do you still see the report taking long (after cleanup)? If that is the case, you may have to run a trace or observe the work process if it is executing a SQL statement that potentially needs tuning.
The blog also mentions that if these steps do not work, you may have to implement SAP note 1082836, after consulting SAP.
regards,
Anil
Hi Anil ,
After completing till step 4 , I have scheduled SAP_XMB_PERF_AGGREGATE in background yesterday , not hourly based but as a single job. But still it is running and if i see job log , it has not yet started aggregating anything .
Should i schedule both jobs together now on hourly basis as suggested in the link ? Will it make any difference? I dont think it will make any difference , because if single job is not finishing within hour , how all hourly jobs will finish?
Please advise.
Regards ,
Nikhil Save
hi Nikhil,
What is the SQL command and its explain plan?
Please see if the number of records in the table SXMSPFRAWH decreased after the reorg. If the number did not reduce much consider checking SAP note 1677786 - Reorganization of component data records in XI/PI
Also check if SAP note 2133218 is applicable.
regards
Anil
Hi Nikhil,
I am assuming that the database is Oracle. When the job is running, see if any select query is running. You can double-click on the work process and get the SQL query that is running. Copy the SQL query. Call ST04, go to Diagnostics > Explain. Paste the SQL and click on Explain.
Also: If it is an Oracle DB, update the statistics the table SXMSPFRAWH using the following command:
brconnect -c -u / -f stats -t SXMSPFRAWH -f collect -p 3
Yes, please let the job complete.
regards
Anil
Hi Nikhil,
From the screen shot, I see that the report has taken a lot of time to read the records. I suspect the issue is with the SQL query or slow disks.
Check ST06 > Snapshot Current Data > Disks. See if there is high Resp (ms) against any disk.
Please call ST04 > Performance > SQL Statement Analysis > Shared Cursor Cache. Click on tick mark. Search for select statement on SXMSPFRAWH and click in Explain. Unless we have the explain plan, we can't know why it is taking so long.
regards
Anil
Hi Anil ,
Thanks for the brief explanation.
Please find the below screenshots .
>>Check ST06 > Snapshot Current Data > Disks. See if there is high Resp (ms) against any disk
>>Please call ST04 > Performance > SQL Statement Analysis > Shared Cursor Cache. Click on tick mark. Search for select statement on SXMSPFRAWH and click in Explain.
Total 4 select querries are running .
Regards ,
nikhil Save
Hi Nikhil,
Utilization on the disks sda10 and sda are high. If one of these are for swap or paging file, your system seems to be running low on RAM. If the disk is related to database, then the physical I/Os are very high. You may want to create an index on the table SXMSPFRAWH on against the columns SOURCE, LASTTS, STATUS and COMPONENTID. But before you create this index, update the table's statistics, see if there is any improvement in the job run. Also check if these (or most of these columns) are already indexed. Check if there are any missing indexes using the transaction DB02.
Hi Nikhil,
Please check these notes
1573287 - Aggregation of performance data has extremely long runtime
2027585 - Aggregation of performance data has extremely long runtime (2)
and if your PI version is affected.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Inaki ,
The symptoms mentioned in the note (In transaction SM50, you notice that the system executes a large number of SELECT statements on the database table SXMSPFAGG) are not there in my case. Also let me tell you one thing , that it is creating aggregates properly. The only thing is , it is running since long . The tables SXMSPFRAWH and SXMSPFRAWD are having 5 crore and 31 crore records simultaneously . Will that be a reason ?
Regards ,
Nikhil Save
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.