How to go about performance issues

Hi Experts,
Need help on how to get started on below situations.
Users are complaining about queries running slow even after rebuilding indexes,updated stats,no blocking?
How to go about troubleshooting such issues?
Thank you.

http://technet.microsoft.com/en-us/library/ms177500(v=sql.105).aspx
http://redmondmag.com/articles/2013/12/11/slow-running-sql-queries.aspx
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • About Performance issue

    Hi All,
    I have a table which is very frequently used for transcational purposes (like Insert,Delete,Update) from Oracle apps database.
    I have created a view based on this table only and this view is referenced by another database very frequently using DB Link.
    Will there be any performance issue either on view or on table since table is getting used same time in Select queries and also in transcations (like Insert,Delete,Update) from different databases?
    is it better to create to Materilized view or normal view for this purpose (Since Mview can be refreshed daily once).
    Please suggest..
    Thanks

    Lakshmi V wrote:
    Hi All,
    I have a table which is very frequently used for transcational purposes (like Insert,Delete,Update) from Oracle apps database.
    I have created a view based on this table only and this view is referenced by another database very frequently using DB Link.
    Will there be any performance issue either on view or on table since table is getting used same time in Select queries and also in transcations (like Insert,Delete,Update) from different databases?Yes and No.... or It Depends.
    Oracle doesn't have a problem querying tables whilst inserts, deletes or updates are taking place on them. The database engine is designed to be multi-transactional, so things won't hold up a query against the data. The only thing that will slow it down really is the I/O which is primarily related to disc access, so if the physical server is doing a lot of I/O to process the inserts/updates and deletes, then the query may get slowed down as a result of that, but it really depends on the hardware and how the data is spread on the discs.
    is it better to create to Materilized view or normal view for this purpose (Since Mview can be refreshed daily once).You could if your business process allows for snapshots of data rather than near-real-time, that's entirely your choice. It won't necessarily help improve the I/O, though it may.
    Without your database version, table structures, and details of your hardware, explain plans, test cases etc. there's no correct answer to give you.
    Personally, I wouldn't bother with the Materialized view unless I needed to look at a snapshot of the data, or I needed to perform queries using different search clauses from normal such that I needed some different indexes that I didn't want to apply to the base table. I certainly wouldn't consider it just to try and improve performance and take the querying away from the transactional data.

  • How to troubleshoot JVM performance issues

    We recently had a performance issue with our application running on Java 1.4.2 on Windows where the CPU utilization was extremely high. Using the +PrintClassHistogram option I was able to determine that a char array was utilizing more than 500 megabytes of memory.
    My question is, is there another option I can include or process I can follow that would help me determine which object was creating this array?
    I am not a Java programmer so I apologize if this is elementary question or if I posted this in the wrong forum. I am the SA they call when the application is not running correctly. I have been reading this forum and the manuals trying to find something that would assist me. The developers will fix the problem after I pinpoint where the problem is.
    We do not have any type of JVM profiler so I am trying to troubleshoot this issue with thread dumps and JVM options. My assumption is that if a profiler can retrieve the information I should be able to. Is this a correct assumption?
    Lastly, if we were to purchase a profiler does anyone have a recommendation on which one to use? Our latest version of the application utilizes Java 5 so we would need something that would work with both versions of Java if possible.
    Any assistance or recommendations anyone could provide would be greatly appreciated.

    unixmon wrote:
    We recently had a performance issue with our application running on Java 1.4.2 on Windows where the CPU utilization was extremely high. Using the +PrintClassHistogram option I was able to determine that a char array was utilizing more than 500 megabytes of memory.
    My question is, is there another option I can include or process I can follow that would help me determine which object was creating this array?
    I am not a Java programmer so I apologize if this is elementary question or if I posted this in the wrong forum. I am the SA they call when the application is not running correctly. I have been reading this forum and the manuals trying to find something that would assist me. The developers will fix the problem after I pinpoint where the problem is.
    This is a management problem. If you have a performance problem then you should be calling the developers and telling them to figure it out and that they need to fix it. You certainly shouldn't be looking at code or profilers.
    Unless you have plenty of time on your hands and your goal is to become a developer.
    But regardless...
    Buying a profiler is an option but if you go that route then to figure out a solution you will be a java programmer even if that isn't your title.
    You should however figure out how to simulate load on the server, even with a profiler. There are tools that allow you to send things like http requests, web service requests, etc. Simulating load is a good idea even without a profiler. It allows you to estimate future system needs dependent upon future company growth.
    Note that profiling really slows down an application so an app that can handle 10 requests a second might only be able to do 1 a second or less while being profiled.

  • How did you learn about performance issues?

    I've been thinking about trying to get a LV certification, so I tried out the online test, and I've got a few questions about learning LV on a deeper level.
    One question asked whether it is more efficient to cast each piece of an array as its being built in a for loop, or to cast the entire array at once, after the array has been created.
    Another question asked, if array indexing is enabled on the output of a while loop then is the array resized on every iteration?
    I can make guesses at how LV works, but I really don't know what goes on under the hood. How do you pros know what's really going on with your code?
    Also for anyone out there who has been certified, can you pass the test with just experience, or do you have to undergo some NI training to learn some things? Has LV certification been beneficial to you?
    Thanks,
    John

    Hi John,
    I have mentored 2 1/2 CLA's (the 1/2 is the "Architect Supreme" and she really only needed encouragement).
    Here are my suggestions.
    1) Study for the test you plan to take. Studying above the test level you are after can only confuse things.
    2) If you can get the funding, take the NI courses suggested for that test. Some of the Q's come from the text.
    3) Monitor this Exchange for questions regarding performance and speed.
    4) Use the search box at the top of this page and search for "Greg McKaskle". Some of the best performance info available is in his writtings.
    5) Use the "info-LabVIEW" serach engine that can be found at
    http://www.searchview.net/
    and search fro Greg McKaskle and Rolf Kalbermatter. Again great information.
    6) Make a habit of using the "Task manager>>> Performance screen while you are devloping and testing. It is a good way to find out what things are good and which are bad. You find out subtle things like straight line interpolation on a chart is faster than step interpolation.
    7) Read all of the LV release notes. The questions you posted are answered in those docs and changed in LV 6.0.
    8) Review the LabVIEW ZONE challenges. They are competitions based on performance. Read the reviews.
    9) Read the white papers. Do not miss 144!
    10) Start posting Q's on this Exchange. Let us expert (myself excluded) that prowl this list help out.
    Done for now,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to Improve performance issue when we are using BRM LDB

    HI All,
    I am facing a performanc eissue when i am retriving the data from BKPF and respective BSEG table....I see that for fiscal period there are around 60lakhs records. and to populate the data value from the table to final internal table its taking so much of time.
    when i tried to make use of the BRM LDB with the SAP Query/Quickviewer, its the same issue.
    Please suggest me how to improve the performance issue.
    Thanks in advance
    Chakradhar

    Moderator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting - post locked
    Rob

  • SAP ITS Performance issues with integration

    Hi All,
    We wants to know about  performance issues if  CRM and SAP ECC6 systems connected together with SAP ITS implemented ?  What are the main things to be considered or evaluated? How the above scenario can be implemented ?
    Thanks in advance
    Ramakrishna

    Hi,
    New  SP was released in February, and now most of the new bugs should been caught ,This has a Central Note. For SP06 it's Note 1527325 - Planning and Consolidation 7.5 SP06 NetWeaver Central Note to fix any issues. Most of the improvements in SP06 were related to performance, especially when logging on from the BPC clients.There you should be able to find a big list of fixes/improvements and Notes that describe those. Some of the Notes even have test description how to reproduce that issue in the old version.
    hope this will help you
    Regards
    Rv

  • Performance issues with flashed 7800GT (G5)

    Hey,
    I recently flashed a PC 7800GT with the 128K OEM NVidia ROM. It's one of the cards with a physical 128K ROM chip, so no worries there. However, it doesn't deliver the performance I expected. I have a Late 2005 2.0 DC, 10GB DDR2 and use Leopard 10.5.8.
    This is what OS X puts out (german):
    NVIDIA GeForce 7800 GT:
      Chipsatz-Modell:    GeForce 7800GT
      Typ:    Monitor
      Bus:    PCIe
      Steckplatz:    SLOT-1
      PCIe-Lane-Breite:    x16
      VRAM (gesamt):    256 MB
      Hersteller:    NVIDIA (0x10de)
      Geräte-ID:    0x0092
      Versions-ID:    0x00a1
      ROM-Version:    2152.2
    Performance issues are: I can't seem to reach frame rates that are anywhere near the results provided by barefeats. Quake 3 runs with approx 200fps in 1600x1200x32 (I expected 300+ fps), Quake 4 and UT2004 run okay, but not on high settings with high resolutions. So, not equivalent to what you wouldd expect from the system's specs) Same goes for Colin McRae Rallye. Now, I remember reading about performance issues in 10.5.8 with the flashed ROM since it doesn't seem to be a 1:1 copy of the original one. I didn't try it in Tiger since I don't exactly want to go back from Leopard. Am I right that this is probably an issue of the "OEM ROM" (from the macelite)? Does anyone have the real deal in terms of 7800GT ROMs and could provide me with a link?
    Br

    Hi-
    If you send me an email via my website, I can send you a couple of ROMs that might work better.
    http://www.jcsenterprises.com/Japamacs_Page/All_Things_PPC.html
    Problem with the flashed 256 MB GT, though, is that Leopard runs slow.
    Bad driver interaction.....
    The 512 MB GTX is the way to go........

  • Performance issues with Exits

    Hi,
    Has anyone had any issues with performance when updating the planning buffer using the Exit FM? What are the things to prepare for about performance issues in production system? Please recommend.
    Thanks
    RT

    Hi Rob
    In the case of performances problems you should check the statistics in BPS_STAT0 for possible long database selection on data
    About this topic you can try to  implement the SAP note 729362
    Ciao
    Andr

  • Performance issues using JavaFX on different notebooks

    Hello,
    unfortunately i feel forced to ask a question about performance issues. As far as i understood, most of the problems with JavaFX 2.0 that are discussed here or somewhere else seem to have there roots in a huge count of nodes and/or some kind of animations. In opposition to this I'm writing a business application for the desktop with JavaFX as a Swing-replacement. There are no permanent animations at all and the scene has all in all 200 nodes(measured it with ScenicView) yet. I use no WebView-Nodes.
    The application runs very well on my development computer with 16 GB of RAM, a Intel Corei7 2600K processor and a mid-class AMD grafics device. Also, there are no performance issues on a Core i3 Notebook. As soon as i start the application on my Thinkpad X220 with Core i7-2620M CPU, 8 GB RAM and Intel HD graphics it get's almost unusable. For example, there is a diagramm(see attached screenshot), which is situated in a scrollpane. As soon as i try to pan it, the panning extremely slow(i'd say 2-4 fps). Another example is that hovering buttons is not very responsive. Moving the mouse over a button causes the hover effect 0.3-0.5 seconds after it entered the button. Fading transitions that i use at some places are not smooth as well.
    I made sure that the app is running using a hardware renderer on each computer. Also, i tried to force a fallback to the software renderer using the "-Dprism.order=j2d" switch but it only performed worse.
    So my first question is: Are there known issues with mobile processors/graphic devices of the mentioned type?

    I just tested it with Java 8 ea build 61 and beside the fact that a small amount of css didn't work anymore, it runs very well with this version of Java(/FX). Damn...i hope that some of this performance fixes will be backported to some Java 7 update.

  • Order Management Performance Issue

    In the Oracle Applications home page, when I login as OM Super User and for order to cash functionality, when I click on Order, Returns > Quick Sales Orders screen, it takes forever to load. When I reboot my client desktop PC machine, it loads quickly.
    Any ideas how to solve this performance issue for Order Management Quick Sales?
    We are running Oracle 12.1.1 EBS on Linux 64 bit OS platform.

    Hi,
    Please see if these documents are applicable.
    Note: 845765.1 - R12: Performance Navigating To Line Item Tab: OE_AK_SOLD_TO_ORGS_V [ID 845765.1]      
    Note: 399998.1 - OEXOEORD: Performance Entering Item On A Sales Order Line
    Regards,
    Hussein

  • Performance issue in mysap SRM

    Hi,
    We are facing the performance issue in mySAP SRM system. User when logs onto mySAP SRM and confirms a purchase order it takes a very long duration. Can you please suggest as to how to analyze the performance issue. Do we have anything similar to STAD which we use for ABAP to analyze the response time.
    Thanks in advance.
    Regards,
    Subhram

    In the note: https://service.sap.com/sap/support/notes/856803
    Execute this report BBP_GETLIST_INDEX_FILL  and activate indexes.
    Also
    Check note, https://service.sap.com/sap/support/notes/721358
    apply the index recommendations to BBPD_PD_INDEX_H, BBPD_PD_INDEX_I tables. Also updating DB stats on these parameters will improve the performance.
    Regards
    SM

  • Performance issue after downgrading

    Hi,
    Before iam using oracle 11.1 client version to connect oracle 10.1, it was working fine,
    now i downgraded client version from 11.1 to 8, now iam facing application performance issues when conecting to oracle 10.1.
    what could be the reasons behind this.
    Thanks.

    here server version is 10.1.0.2.0
    so if i check by given id of metalink.
    11.2.0 -not supported
    11.1.0 - extended support
    8.1.7 - no
    8.1.6 - no
    8.1.5 - no
    8.0.6 - no
    8.0.5 - no
    but they are comfortable with 8i in performance. iam asking about performance issue.

  • ***  performance issue, advice plz...

    Hi Experts,
    I have a z-table1 in which I have some fileds, I have wrote the select query to fetch the data and got data too, now from this internal table I have to pass a field called SERIAL_NUM to another z-table2, to fetch the CO documents/items.
    But in the z-table2 here SERIAL_NUM field is not a key field nor it is having the index, so it is taking time in minutes even to fetch CO doc number/items for 10 serial numbers also.
    Here the z-table2 is having abt 42 lacs of records, I guess even to search the doc numbers for this 10 SERIAL_NUM it is looking each time 42 lacs records as a result it is taking time in mins.
    Sample code as follows-
    LOOP AT it_zeps06 INTO wa_zeps06.
        SELECT SINGLE
               belnr
               buzei
               billcode
               vbeln
               INTO (ws_belnr, ws_buzei, ws_billcode, ws_vbeln)
                            FROM zeps03
                            WHERE serialnum = wa_zeps06-serial_no.
    Endloop.
    Plese advice me how to overcome this performance issue? Is it works if I create index on serial_num filed in z-table2? Or is there any other way?
    Appreciate you response.
    Regards.
    DC

    Hi,
    The first issue is that you are looping over a select statement.  What you could do is create another internal table with same fields as the select statement above and then use the table it_zeps06 with FOR ALL ENTRIES options and collect the serial numbers.
    This should take much less time than the others. Since you are looping over a select statement, the trip from AServer to DBServer is expensive.
    Thanks...
    Preethanm S

  • Avoiding performance issue due to loop within loop on internal tables

    Hi Experts,
                    I have a requirement where in i want to check whether each of the programs stored in one internal table are called from any of the programs stored in another internal table. In this case i am looping on two internal tables (Loop within a loop) which is causing a major performance issue. Program is running very very slow.
    Can any one advise how to resolve this performance issue so that program runs faster.
    Thanks in advance.
    Regards,
    Chetan.

    Forget the parallel cursur stuff, it is much to complicated for general usage and helps nearly nothing. I will publish a blog in the next days where this is shown in detail.
    Loop on loop is no problem if the inner table is a hashed or sorted table.
    If it must be a standard table, then you must make a bit more effort and faciliate a binary search (read binary search / loop from index exit)
    see here the exact coding Measurements on internal tables: Reads and Loops:
    /people/siegfried.boes/blog/2007/09/12/runtimes-of-reads-and-loops-on-internal-tables
    And don't forget, the other table must not be sorted, the loop reaches anyway every line. The parallel cursor requires both tables to be sorted. The additional sort
    consumes nearly the whole advantage of the parallel cursor compared to the simple but good loop in loop solutions.
    Siegfried

  • How do I handle large resultsets in CRXI without a performance issue?

    Hello -
    Problem Definition
    I have a performance problem displaying large/huge resultset of data on a crystal report.  The report takes about 4 minutes or more depending on the resultset size.
    How do you handle large resultsets in Crystal Reports without a performance issue?
    Environment
    Crystal Reports XI
    Apache WebSvr 2.X, Jboss 4.2.3, Struts
    Java Reporting Component (JRC),Crystal Report Viewer (CRV)
    Firefox
    DETAILS
    I use the CRXI thick client to build my report (.rpt) and then use it in my webapplication (webapp) under Jboss.
    User specifies the filter criteria to generate a report (date range etc) and submits the request to the webapp.  Webapp  queries the database, gets a "resultset".
    I initialize the JRC and CRV according to all the specifications and finally call the "processHttpRequest" method of Crystal Report Viewer to display the report on browser.
    So.....
    - Request received to generate a report with a filter criteria
    - Query DB to get resultset
    - Initialize JRC and CRV
    - finally display the report by calling
        reportViewer.processHttpRequest(request, response, request.getSession().getServletContext(), null);
    The performance problem is within the last step.  I put logs everywhere and noticed that database query doesnt take too long to return resultset.  Everything processes pretty quickly till I call the processHttpRequest of CRV.  This method just hangs for a long time before displaying the report on browser.
    CRV runs pretty fast when the resultset is smaller, but for large resultset it takes a long long time.
    I do have subreports and use Crystal report formulas on the reports.  Some of them are used for grouping also.  But I dont think Subreports is the real culprit here.  Because I have some other reports that dont have any subreports, and they too get really slow displaying large resultsets.
    Solutions?
    So obviously I need a good solution to this generic problem of "How do you handle large resultsets in Crystal Reports?"
    I have thought of some half baked ideas.
    A) Use external pagination and fetch data only for the current page being displayed.  But for this, CRXI must allow me to create my own buttons (previous, next, last), so I can control the click event and fetch data accordingly.  I tried capturing events by registering event handler "addToolbarCommandEventListener" of CRV.  But my listener gets invoked "after" processHttpRequest method completes, which doesnt help.
    Some how I need to be able to control the UI by adding my own previous page, next page, last page buttons and controlling it's click events. 
    B) Automagically have CRXI use a javascript functionality, to allow browser side page navigation.  So maybe the first time it'll take 5 mins to display the report, but once it's displayed, user can go to any page without sending the request back to server.
    C) Try using Crystal Reports 2008.  I'm open to using this version, but I couldnt figureout if it has any features that can help me do external pagination or anything that can handle large resultsets.
    D) Will using the Crystal Reports Servers like cache server/application server etc help in any way?  I read a little on the Crystal Page Viewer, Interactive Viewer, Part Viewer etc....but I'm not sure if any of these things are going to solve the issue.
    I'd appreciate it if someone can point me in the right direction.

    Essentialy the answer is use smaller resultsets or pull from the database directly instead of using resultsets.

Maybe you are looking for

  • (HP Share to Web)/(java 1.5 JRE) incompatibility problem?

    A Java application developed with JDK 1.3, and which used JRE 1.3, ran fine, but upon migrating from Java 1.3 to Java 1.5 (i.e. compiled with JDK 1.5 and using JRE 1.5), the application started having problems running on a given machine, which would

  • F110 : Weird Error

    Hi Guys, I am running F110 and when i am displaying the proposal I am getting the following error "The payment program could not find a combination of payment method and house bank account with which the payment can be carried out." and payment is no

  • Scale Types in condition types customization?

    Dear ALL, In spro in "define condition types" in MM we have to assign the type of Scale whether FROM ,TO, NOT USED, INTERVAL etc.. to PBDD, AMO2 etc. Between Scale types i.e. FROM (BASE) Scale and TO Scale what are the differences? What is the concep

  • Can use time capsule wifi but can't find time capsule in finder.

    I have a 3TB time capsule that I bought about a month ago. I can use the WIFI but all of a sudden I can't find time capsule in finder. How do I locate it? Thanks in advance for the help.

  • Multiple sources

    I would like to have some advice what to do best and what can be done in the following scenario: In our rpd we have an oracle db as source. Now the come with an excel file as source. So we getting a rpd with a multiple source. In the oracle db we hav