Programs slow

HI,
Some of our concurrent programs are running very slow...taking more time to complete..Is there any way to know which part of program(query) is taking more time to complete..
Thanks,
Praveen

Hi hussein,
Thanks for your prompt reply.
Since its production db wont it be extra load on the database,and database will become more slower...?
Thanks,
Praveen

Similar Messages

  • I made eight radio buttons exclusive by each other.But It made the orignal program slow down.

    I made eight radio buttons exclusive by each other. But It made the
    original program slow down. I insert them parallel to the original
    program, ie, they are excuted at the same time, I think. But I found
    that the speed before I insert it is faster than after. I think If I
    use the exclusive radio buttons made by ni , the program will execute
    faster. but there aren't eight radio buttons I can choose. How can I
    do ? Or How can I make some changes to the slide that I will get the
    result like NI does?

    You'll have to give the processor some time. In the parallel loop, put a
    'Wait (ms)' from the Time & Diaglog pallete. Wire e.g. 10 to it, and the
    computer has some time to do other processes (like the other loop, and
    updating the user interface).
    When you have something like this, you can open the task manager (win nt,
    win 2000). If it it this problem, the processor uses 100% processor time.
    Regards,
    Wiebe.
    "Rosa" wrote in message
    news:[email protected]..
    > I made eight radio buttons exclusive by each other. But It made the
    > original program slow down. I insert them parallel to the original
    > program, ie, they are excuted at the same time, I think. But I found
    > that the speed before I insert it is fa
    ster than after. I think If I
    > use the exclusive radio buttons made by ni , the program will execute
    > faster. but there aren't eight radio buttons I can choose. How can I
    > do ? Or How can I make some changes to the slide that I will get the
    > result like NI does?

  • Program slow down / problem of memory optimization

    hi all,
    Here is my problem. I am using Labview 2011 and a NI acquisition board. In attachment are simplified VI codes I implemented to acquire analog signal and process the data. The main_VI.vi starts the RUN VI that performs data acquisition and data processing. In the RUN VI, I implemented a state machine because there are many sequential steps. The acquisition is done many times (see max iteration value) and for each acquisition, there is a processing. I used a queue structure to send data for processing in parallel. I also use a in-place element structure to manage the array.
    For real data acquisition (from NI board), the program slows down after hundreds of iteration and when I exit the program, it seems the VI has to free memory because it takes few minutes to close the VI.
    My questions are:
    -       Is the state machine structure properly implemented?
    -       Is the queue strategy optimal to do parallel processing?
    -       Is the use of in-place element structure properly implemented in my case, and is it needed for 1D array with a size of 4000 to 20000 points?
    Thank you for your help/suggestions.
    Cedric
    Attachments:
    Main_VI.vi ‏25 KB
    RUN.vi ‏88 KB
    acquisitions_data.vi ‏28 KB

    Hello Cedric,
    I noticed that in your "RUN.vi" you are calling the "acquisitions_data.vi" iteratively in a For Loop.  Everytime that For Loop iterates, you are creating the Task, running the acquisition, then closing the Task.  You don't need to create and clear the Task over and over again like that.  Instead, create and configure the Task outside of the for loop.  This way when you get inside the for loop, use the "DAQmx Start Task.vi" to start the task, perform the read using the "DAQmx Read.vi", then use the "DAQmx Stop Task.vi" to stop it.  Outside the for loop you can place the "DAQmx Clear task.vi" to clear the references.
    Perhaps this will help with your performance.
    Mason M
    Applications Engineer
    National Instruments

  • PROGRAM SLOWS DOWN WHEN IT ENTERS A CASE STRUCTURE

    OK so here is the problem i am making this pid controller the output range is 0-100  in this program i am just trying to get it to work so i  did a compair function whereby when the controller output is 0 and the constant is 0 i start a case loop which will turn the output on for one second and off for one second .   when i enter the case structure the rest of my program slows down
    i have no idea why , i have tried to make a while loop and a case structure outside my main loop but i cannot get my signal from my compair statement to enter the second loop where i get my output to cycle in 1second intervals 
    below is the VI please help
    i am still learning how to use labview by the way
    thank you
    gary
    GR
    Solved!
    Go to Solution.
    Attachments:
    TMP36working!vi.vi ‏225 KB

    gary,
    The next thing you need to learn about LabVIEW is dataflow. This is the fundamental paradigm of LV and will explain your slow down issues.
    The basic dataflow concept is that any node (node = function, subVI, structure) can begin to execute when data is present on all its inputs and that no data will be present at its outputs until the node comopletes execution.
    How does this affect your VI? The true case has a 1000 ms Wait (actually two, one in each case of the inner case structure = redundant code). The case structure will not complete execution until the wait completes. And, the while loop does not complete its iteration until the case structure completes. The result: When the PID.vi output = 0, the loop will run at 1 second per iteration.
    What is the fix? Continue running the loop at 100 ms intervals. Keep a count in the case structure (true case) and another shift register of how many 100 ms intervals have passed. When the count reaches ten, toggle the output line.  Do not use the 1000 ms Wait.
    All the code in your inner case structure is unnecessary. Wire the Remainder output directly to the Arduino Digital Write VI.
    Be careful with the comparison to zero with floating point data. If the calculation which produces the data has round off errors you might get a value like 0.573E-15, but that is not equal to zero. It is better to compare to a small range of values above and below zero.
    Right to left wiring is much easier to follow when trying to understand what a program does. Using the Clean Up tool occasionally will help (although it will eventually frustrate you also).
    Lynn
    Attachments:
    TMP36working.2.vi ‏214 KB

  • Javax.swing.SwingUtilities.invokeLater make my program slow

    i am writing a program in which i am implementing documentlistener
    to communicating between two frames
    if i write my code with javax.swing.SwingUtilities.invokeLater it makes my program slow
    and if i write without this thread safe quality then this is fast but giving me runtime exception
    what i do to make my program better
    kindly suggest
    public void insertUpdate(DocumentEvent e) {
                updateLog(e, "inserted into");
            public void removeUpdate(DocumentEvent e) {
                updateLog(e, "removed from");
            public void changedUpdate(DocumentEvent e) {
                //Plain text components don't fire these events.
            public void updateLog(DocumentEvent e, String action) {
                Document doc = (Document)e.getDocument();
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
    tf4.setText(lbl.getText());
    }

    If your program is becoming too slow or unresponsive, it means that the operation "tf4.setText(lbl.getText());" is taking too long to execute and is therefore blocking the Swing-thread.
    There is little you can do to make that operation faster, but perhaps you can change how or how often you update the frames.
    Setting the whole text via setText() everytime a change happens seems very wasteful. Imagine you have a text with a million characters, and every time the user adds or changes just one character, you are getting and seting over one million characters. That is not the right approach.
    I'm not familiar with text-operations or class DocumentEvent, but I guess that there should be some kind of delta in DocumentEvent containing only the changes that were made. You could apply only these changes on tf4 instead of setting the whole text. Finding out how to do this would be the best solution. This will also make your program more scalable, as with setText() the performance of your application will continuously decrease as the text length increases.
    Usually when working with documents you have a "viewer" and a "model". If your viewer was a JTextBox and your model was, say a StringBuilder, you could make quick changes to the contents of JTextBox using the StringBuilder.append() or delete() methods without having to modify the whole text. You need to find out how this is done with whatever UI system you're using.
    If you can't find out how to do the above, a workaround would be to reduce how often you call "updateLog()". For example, is it truly necessary to call "updateLog" every time a new update happens? Perhaps it would be better to use a timer and only call "updateLog()" every few seconds.
    But as I said, this should only be a temporary workaround. You really should find out how to perform more efficient updates without using setText(). I recommend you search for tutorials and guides on how to work with text and documents on the internet.

  • After editing for a while the program slows to a crawl how do I fix this?

    After editing in iMovie for a while the programs slows down - especially when I have heavy graphics and audio in the time line.  Can anyone help me with this problem?

    How much free space do you have on your disk drive?

  • I'm a Graphic Designer and Animator with a Mid 2012 15" MBP...Programs slowing need up grade

    Hey everyoe,
    I'm a Graphic Designer and Animator with a Mid 2012 15" MBP. My programs get REALLY SLOW, ToonBoom Harmony and Sometimes Illustrator, HELP! I upgraded my Ram to 16GB LONG time ago and it's made a big difference but still the stuff I make is semi complicated/detailed I can't imagine this is the strength of my MBP I refuse to accept that. WIth that said HELP ME PLZ!!! I have deadlines and I dont know what else to do! Steve Jobs my life is your hands right now man...

    Maz0327,
    if you boot into Safe mode, log in, and run your graphic design and animation apps, do they run just as slowly then?

  • High CPU usage and program slowing down

    Hi. I have helped write a program in AS3 that uses classes. We have 2 frames in our movieclip that consists of an ant moving. We have a class of ants and can create 15 instances of them and the program runs fine with the ants walking around looking for food and going back to a corner that is their nest and going back out again. The ants also respond to mouse movement if the mouse pointer is near an ant.
    If we create more than 15 ants, then the program starts to slow down. If we have 30 ants on the screen, then there is noticable stuttering of the ant movement. The CPU usage on a P4 2.5Ghz Pentium is around 50%.
    Is this normal? or is something wrong?
    I would have thought we would be able to scale up the number of ants easily.
    Thanks
    Trev.

    Hi kglad.
    Thanks for the reply.
    I assume enabling cacheAsBitmap is set in the ant class Constructor, as we have tried that and it has helped, see below. We can now create 30 ants with very slight stuttering.
    We have an  ant class as below.
    public class TAnt extends MovieClip { // lots of code here }
    ant Constructor as below.
    public function TAnt(newX: Number, newY: Number, sW: Number, sH: Number, rCyc: Number) {
                this.cacheAsBitmap = true;
               // more code here }
    // We have implemented a Finite State Machine for the ant behaviour.
    regarding the ants using a loop and using a controller class, I am not sure what you mean.
    We are creating instances of the ants in the Ants.fla file which is in the Action file and add each new ant to an array. See below.
    for (var a = 0; a < nAnts; a++) {
        var newAntX = Math.random() * screenWidth;        // randomly generate ant location
        var newAntY = Math.random() * screenHeight;
        var rCyc = Math.random() * 800;
        var ant = new TAnt(newAntX, newAntY, screenWidth, screenHeight, rCyc);            // create ant
        addChild(ant);                                                   // add ant so visible on screen
        ants.push(ant);                                                 // add ant to array
    So we use an array for looping through the ants in the Ants.fla Action file.
    Is this the way you mean?
    Thanks
    Trev.

  • External drives cause program slow downs

    To my early 2009 iMac, I have few external drives connected through USB and Firewire. During light disk use the hard drives spin down after awhile and go into saving enregy mode (sleep).
    When doing normal functions like printing a Word doc or printing from TextEdit or working on some other programs, I get the spin wheel and programs pause until the sleepy drives wake up and pick up speed again.
    The document(s) that I am working on are on the computer hard drive.
    The external drives are contibuting nothing to the job on hand, why do they need to be awaken during this kind of processing and why do the programs need to wait for them?
    Though I have Lion installed now, this used to happen with Snow Lepoard as well.
    Thanks

    Thanks for that info on your Mini's specs.
    You have plenty of RAM reported, so I think we can rule out a bank of RAM disappearing and the Virtual Memory system being over-taxed to compensate.
    You say "Now everything is slow again, when I turn the computer, it takes minutes to come up, and then I get the spinning ball whenever I try to do anything."
    The spinning ball generally indicates that operating system is waiting for a "resource" to become available. Depending on how your Mini is/was setup vis-a-vis the external drives, some of your programs may be looking for stuff on external drives that are no longer available, or that are misfunctioning.
    The "resource" that is being waited for, could also be a network resource, like an iDisk (if you have MobileMe) or a NAS (Network Attached Storage).
    The wait for a "resource" could also be due to a hard drive starting to go bad, and the operating system needing repeated attempts to get data from it.
    Apropos NAS, it has been reported iTunes 10 doesn't play well with data stored on non-Apple NASes.
    Since you have an Intel Mini, it might also be useful to perform an SMC reset (DON'T do a PMU reset):
    http://support.apple.com/kb/HT3964?viewlocale=en_US
    +Resetting the SMC for Mac Pro, Intel-based iMac, Intel-based Mac mini, or Intel-based Xserve+
    +1. Shut down the computer.+
    +2. Unplug the computer's power cord.+
    +3. Press and hold the power button for 5 seconds.+
    +4. Release the power button.+
    +5. Attach the computers power cable.+
    +6. Press the power button to turn on the computer.+
    Be sure to perform steps 4 and 5 in the correct order.

  • Files in all programs slow to open and save with Snow Leopard

    Installed Snow Leopard, now all files in all programs super slow to open and save - Photoshop, Illustrator, Quark -- all now at least 4-5X slower to open files and save -- here's what I've tried so far:
    repaired permissions
    emptied font cache - restarted up in safe mode
    re installed Snow Leopard
    renamed old preferences and restarted to create new prefs
    I'm hating Snow Leopard -- eeesh -- this is no upgrade, just a big waste of time and money, any ideas?

    See:
    Mac Maintenance Quick Assist,
    Mac OS X speed FAQ,
    Speeding up Macs,
    Macintosh OS X Routine Maintenance
    Essential Mac Maintenance: Get set up,
    Essential Mac Maintenance: Rev up your routines,
    Maintaining OS X, and
    Myths of required versus not required maintenance for Mac OS X for information.

  • Extended photoshop CS6 use causes program slow down.

    Hello,
    Currently when I use photoshop for any kind for photo editing, after about ten minutes of use the program response slows to a crawl and it will take a minute or two for me to even toggle layer visibility on or off. I reset photoshop to it's factory default settings and I am still getting this problem. Since I use Photoshop extensively for work and school I can say the problem did not begin until yesterday when I was finishing up some assignments for class. None of the files I am editing are very large (maybe 45 MB?) but the problem persists. No other programs are running at the same time as Photoshop. I have a 2013 Macbook Pro Retina with OSX mavericks. Any suggestions or help?
    Regards, Eleanor

    Hello,
    I've actually gone through the Photoshop troubleshooting tips and optimization twice. Here is a snapshot of my performance preferences.
    and here is my Mac's hardware specs
    Hardware Overview:
      Model Name:    MacBook Pro
      Model Identifier:    MacBookPro11,3
      Processor Name:    Intel Core i7
      Processor Speed:    2.3 GHz
      Number of Processors:    1
      Total Number of Cores:    4
      L2 Cache (per Core):    256 KB
      L3 Cache:    6 MB
      Memory:    16 GB
      Boot ROM Version:    MBP112.0138.B02
      SMC Version (system):    2.19f3
    Thanks in advance.

  • 12.1 12.2 making my programs slow

    Hi,
    I've been using sunstudio 12.1 to compile a prgram witch C/C++ and Fortran 95 parts. Recently, after I've upgraded to Oracle Solaris Studio 12.2, the same program compiled with same compiler options are at least 5 times slow! Even the 'Release' build of the new setup is slower than the "Debug" build of the older one. Just to verify things, I've again used the 12.1 version to compile the same code and compare side by side -- no mistake, the latest and the greatest is slow. Here are some additional points:
    1. Both compilations were done on Intel Core I5 processor. 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux
    2. Compiler options (for Debug in both cases): cc -ftrap=common -c -g -o and f95 -moddir=./build/modules -ftrap=common -c -g -w1 -o
    What do you think is up. Any suggestions are welcome.

    Thanks for the suggestion. My collect command (<..>//solstudio12.2/bin/collect) gives the following output:
    WARNING: Linux-64-bit, 4 CPUs, LinuxMint_9 system "mymachine" is not supported by the Performance tools.
    NOTE: The J2SE[tm] version 1.6.0_22 found at /usr/lib/jvm/java-6-sun/bin/java (picked by JDK_HOME) is supported by the Performance tools.
    WARNING: Data collection may fail: system is not properly configured or is unsupported.
    Does this indicate that I can not use performance analyzer on my x86_64 Linux platform.
    Edited by: user13686071 on Jan 24, 2011 12:00 PM

  • Why does my data logging program slow down after a while?

    A data logging program created with Labview 5.1. Slows down after a few weeks and creates files in the Temp. directory.Computer is Siemens Scenic pro 124 MB ram and AT-MIO-16XE50 Data acquisition board. Also using Solartron Dig. probes and Fieldpoint units.

    Any chance that you are using Win 95/88/ME? Those OS's have well documented
    memory leaks which will consume all your available memory if an application
    is run long enough. Also there are some issues of memory management within
    LabView in the allocation of memory.
    The solution to the first is to switch to WinNT/2K. The second will be much
    more difficult.
    On Thu, 22 Feb 2001 03:19:12 -0800 (PST), Freek wrote:
    >A data logging program created with Labview 5.1. Slows down after a
    >few weeks and creates files in the Temp. directory.Computer is Siemens
    >Scenic pro 124 MB ram and AT-MIO-16XE50 Data acquisition board. Also
    >using Solartron Dig. probes and Fieldpoint units.
    ===========================================================================
    SolidW
    orks Research Partner National Instruments Alliance Member
    Christopher Dubea Phone: (504) 847-2280
    Vice President of Engineering Fax: (504) 847-2282
    Moving Parts L.L.C. email: [email protected]
    P. O. Box 6117 URL: http://www.movingpart.com
    Slidell, LA 70469-6117

  • Help New satellite c655-s5136, programs slow, window media player not working, and more

    I just bought this computer in January 2011 and had a lot of problems w/ it. 
    1) At first it wouldn't go on certain webpages. (for example I could get on gmail not yahoo). The help screen said it was the router or there were no issues. I had to look online (on a different computer) and find out I had to turn off all my plug in to get it to work.
    NOW
     I keep getting an RUNDLL error message every time I turn it on. Can someone tell me what that is?
    it says specified module could not be found: C:\user\Tashaun\appdata\local\upifitizoyiziyem.dll
    The internet and all offline programs are running really slow and they keeps freezing or shutting down on their own or won't come up at all
    Windows media player is completely messed up. My downloaded music won't go into the library. I have to make a playlist and put my songs in that. But yesterday I got some error message and half of my songs disappeared. I can't export the songs from the windows player either. I looked online and it all says the player is corrupted due to installation error when upgrading to windows 7. But I never upgraded to windows 7. It came with the computer. I tried some of the solutions anyway but I can’t delete wmdb file because windows said the media center was open, even though I used task manager and shut all programs off
    Should I have Toshiba look at the computer? I don’t know if it’s the computer or the windows 7 software. Except for having to disable plugins, the computer worked fine for a month.
    In addition, had Norton internet security on the computer since day 1. Tried Microsoft fix it program.  And fixcleaner

    With dll names like that, it looks to me like you've been hit by a malware. Doing recovery to out-of-box state is your easy way out on this.

  • After upgrading to Lion 10.7.1 - iPhoto and other programs slow to open and other problems

    Am I alone - having lots of problems with 10.7.1.  iPhoto is slow and when I export photos it exists iphoto then I restart and sometimes it will works.  Safari is slower also. Sometimes it justs hangs and I have to force quit.  iTunes is also slower to open. Almost everytime it goes to a checking library for a long time. 
    Should I go back to previous version? Will I lose my purchase. I do not have disks for the upgrade.  I do not want to go back - I have a lot of data and always fear of losing it. 
    Think Apple knows about the problems or am I the only one and have some other problem?

    olegz,
    First, thanks for the clear graphics.
    Authorization seems to be the hangup here. But instead of dealing with the complications of conflicts in authorization, which might take several weeks to months to iron out - site by site - I urge you to follow a different path.
    It looks like you're using Chrome. For this site alone, use either Safari or Firefox, both of which are more likely to have plugins to deal with authorizing your site. Safari is already on your computer, but v.3 of Firefox is stable, too. Frankly, I can't tell you what specifically might be the problem here; but switching browsers will solve the immediate problem.
    Sound good? Not so good? Post in this thread so that I or others can solve your problem once and for all!

Maybe you are looking for