Limit the CPU usage of applications to keep OS functional ?

Hello,
I would first like to say that I am not knowledgeable in programming or in computer science vocabulary. So I will say things as I think they are, sorry about that.
My problem is:
When using any applications, there is always a moment where the application will freeze the computer.
In my understanding, it is because all the CPU is directed towards this application.
So the simple solution that comes with this thinking is: if I limit the CPU an application can use, then I can keep my finder working even if the application crashes.
I understand that I might totally be off-track and in that case, I would love to hear an explanation on how it really works.
Thank you !

Good stuff guys. I guess what I was not considering is that if any archived logs are overwritten, it makes recovery from the last full backup perilous. Here are some more facts about the DB that may help determining the best solution:
All raster content is stored in a raster tablespace. We load raster content (Sat imagery, etc.) from disk or FTP delivery but we do not do any editing to it. So, once it is in Oracle it is static. So, a daily or re-occuring backup of the raster content may not make sense. It may make sense to only back up this tablespace once new loads occur. Also, the raster tablespace makes up over 95% of our DB size (~220GBs).
All other content (mainly geospatial vector information) is stored in 2 other tablespaces and this is the content that is edited routinely and this is the content I need backed up often....and it is small...no more than a few gigs.
So, what if I ran the DB in archive log mode, except for the raster tablespace, and did nightly backups on everything but the raster TS, and backed up the raster TS only when new content is loaded??? Does this seem like a good idea? and if so, what would be the best way to periodically backup a >200GBTS?
This will make redo much MUCH smaller and I can handle removing the archived logs once a backup is complete.
Thanks again. It is fun learning more about this stuff!!
Thanks!
Message was edited by:
[email protected]

Similar Messages

  • Methods to reduce the CPU Usage for painting the image

    Hi,
    I have developed an application to view images from an IP camera. By this I can simualtaneously view images from about 25 cameras. The problem is that the CPU Usage increases as the no of player increases. My Player is JPanel. which continuously paints the images from camera. The method 'paintImage' is called from another thread's run method. This thread is responsible for taking jpeg images from IP camera.
    Here is the code for this.
    public void paintImage(Image image, int fps) {
    try {
      int width = this.getWidth();
      addToBuffer(image);
      currentImage = image;
      Graphics graphics = this.getGraphics();
      if (isRunning && graphics != null) {
       graphics.drawImage(image, 0, 0, getWidth(), getHeight(), this);
       if(border ==true){
        graphics.setColor(Color.RED);
                          graphics.drawRect(0,0,getWidth()-1, getHeight()-1);
       graphics.setColor(Color.white);
       graphics.setFont(new Font("verdana", Font.ITALIC, 12));
       graphics.drawString("FPS : " + fps, width-60, 13);
       this.fps = fps;
       if (isRandomRecord) {
        graphics.setColor(new Color(0, 255, 0));
        graphics.fillArc((getWidth() - 10), 5, 10, 10, 0, 360);
    } catch (Exception e) {
      e.printStackTrace();
    Can someone please help me to solve this problem so that the CPU usage can be reduced.

    Can you give me more detail information about how to use
    an automated profiling tool You run it and excercise your app. Then it presents stats on number of times each method was called and time spent in each method, plus other stuff. Using those two stats you can zero in on the areas that are most likely to yield resullts.

  • ORA-02393 Exceeded Call Limit on CPU Usage

    I have created a Profile and attached it to a user, in this example:
    Create Profile percall
    Limit
    CPU_PER_CALL 10
    IDLE_TIME 5;
    I have attached it to one user - USER1
    When USER1 runs a SQL Statement -
    SELECT COUNT(*) FROM TABLE1 A WHERE A.EFFDT = (SELECT MAX(B.EFFDT) WHERE B.EMPLID = A.EMPLID AND B.EFFDT <= SYSDATE);
    I get an error (Which I want to receive) ORA-02393 Exceeded Call Limit on CPU Usage.
    The SQL statement shows in the table DBA_COMMON_AUDIT_TRAIL, but shows a success even though the user received an error ORA-02393.
    What I want is a way for a DBA to be able to report on those ORA-02393 errors. I don't see any entries in the Log files, and don't notice any errors in the Oracle Tables.
    I would like to be able to show the user (after a week when they bring up the issue) what the SQL statement was and why it Exceeded the CPU Usage. If the error could place the SQL statement in a table or just display it in an error log with the Statement to verify that THIS is the statement which exceeded the CPU Usage.
    Thank you
    Aaron

    can you modify the procedure in which the SELECT resides.
    If so, trap & log the error.

  • Exceeded session limit on CPU usage

    Hi All,
    We are getting message while generating some reports. Pl. see the Error Text below for message. For time being we have  bumped the session limit to unlimited to take care of this problem for now. But the question is u201CIs there a way available in MII to refresh(cycle) the Data source connectionu201D  So that the DB session limit can be kept un altered?
    When we search this on different forums, we got a solution which we aleady implemented(bumping the session limit to unlimited). But we are looking for a solution from MII side.
    Any help will be appreciated
    Regards,
    Rajesh.
    Error Text:
    Error occurred while processing data stream, A SQL Error has occurred on query, ORA-02392: exceeded session limit on CPU usage, you are being logged off . com.lighthammer.Illuminator.logging.LHException: Error occurred while processing data stream, A SQL Error has occurred on query, ORA-02392: exceeded session limit on CPU usage, you are being logged off . at com.lighthammer.Illuminator.logging.ErrorHandler.handleError(Unknown Source) at com.lighthammer.Illuminator.logging.ErrorHandler.handleError(Unknown Source) at com.lighthammer.Illuminator.connectors.Proxy.Proxy.processRequest(Unknown Source) at com.lighthammer.Illuminator.services.handlers.IlluminatorService.processRequest(Unknown Source) at com.lighthammer.Illuminator.services.ServiceManager.runQuery(Unknown Source) at com.lighthammer.Illuminator.servlet.Illuminator.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.lighthammer.Illuminator.servlet.ServletRunner.run(Unknown Source) at com.lighthammer.Illuminator.servlet.ServletRunner.runAsXmlQuery(Unknown Source) at com.lighthammer.xacute.actions.illuminator.queries.IlluminatorQueryObject.LoadDocument(Unknown Source) at com.lighthammer.xacute.actions.illuminator.queries.IlluminatorQueryObject.Invoke(Unknown Source) at com.lighthammer.xacute.core.Action.Process(Unknown Source) at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source) at com.lighthammer.xacute.core.ActionSequence.Process(Unknown Source) at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source) at com.lighthammer.xacute.core.ActionSequence.Process(Unknown Source) at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source) at com.lighthammer.xacute.core.Conditional.Process(Unknown Source) at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source) at com.lighthammer.xacute.core.ActionSequence.Process(Unknown Source) at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source) at com.lighthammer.xacute.core.ActionSequence.Process(Unknown Source) at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source) at com.lighthammer.xacute.core.ActionSequence.Process(Unknown Source) at com.lighthammer.xacute.engine.TransactionEngine.Process(Unknown Source) at com.lighthammer.xacute.engine.TransactionEngine.Execute(Unknown Source) at com.lighthammer.Illuminator.connectors.Xacute.XacuteRequestHandler.processQueryRequest(Unknown Source) at com.lighthammer.Illuminator.connectors.Xacute.XacuteRequestHandler.QueryRequest(Unknown Source) at com.lighthammer.Illuminator.connectors.Xacute.XacuteConnector.processRequest(Unknown Source) at com.lighthammer.Illuminator.services.handlers.IlluminatorService.processRequest(Unknown Source) at com.lighthammer.Illuminator.services.ServiceManager.runQuery(Unknown Source) at com.lighthammer.Illuminator.servlet.Illuminator.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.newatlanta.servletexec.SERequestDispatcher.forwardServlet(SERequestDispatcher.java:638) at com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java:236) at com.newatlanta.servletexec.SERequestDispatcher.internalForward(SERequestDispatcher.java:283) at com.newatlanta.servletexec.SEFilterChain.doFilter(SEFilterChain.java:96) at com.lighthammer.cms.system.CMSFilter.doFilter(Unknown Source) at com.newatlanta.servletexec.SEFilterChain.doFilter(SEFilterChain.java:60) at com.newatlanta.servletexec.ApplicationInfo.filterApplRequest(ApplicationInfo.java:2159) at com.newatlanta.servletexec.ApplicationInfo.processApplRequest(ApplicationInfo.java:1823) at com.newatlanta.servletexec.ServerHostInfo.processApplRequest(ServerHostInfo.java:937) at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1091) at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:973) at com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:167) at com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:204) at com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:487)

    Hi,
    Kindly try out the below option from database side.
    Error : ORA-02392: exceeded session limit on CPU usage, you are being logged off
    Cause : An attempt was made to exceed the maximum CPU usage allowed by the CPU_PER_SESSION clause of the user profile.
    Action : If this happens often, ask the database administrator to increase the CPU_PER_SESSION limit of the user profile.
    If you looking for solution in MII end,
    Check with SAP MII administrator on log files.
    Check Data server tab for configuration details. (eg : Pool Size, Pool Max etc)
    Kindly let us know the version of SAP MII.
    Thanks
    Rajesh Sivaprakasam.

  • Can anybody help me to understand the CPU usage logs

    Hello community,
    I try to find the faulty machine in our network, but I don`t understand the logfiles. We have many servers which normally work very fast and reliable.
    But sometimes we have such a huge cpu usage drain on our server. Nobody knows where it comes from, so I looked in the vsphere web client and looked in the cpu usage logs.
    Following you can see two pictures. One is from the main host. It shows only a cpu usage of a maximum of 45 %.
    When I look on the vmware machines I can see a cpu usage of more than 150%.
    This is something I completely not understand. How is it possible that the main host machine has only a 45% cpu usage and the clients are exploding?
    I don`t have set a cpu usage limit in our resource pool.
    The next thing is. When I look on the vmmachines, I can not identify the faulty machine. Because when one machine increases the cpu usage many others increase too. Whatever why.
    Can somebody explain me the pictures below please:
    Thank you for your time
    Paul

    You don't have any need to understand this code. The complication is due to the registry needing a fixed objectID.
    You just need to know the methods of java.rmi.registry.LocateRegistry class. This allows you to start an RMI Registry inside your JVM and give it any TCP port number you like.

  • It has been only about a month that i bought my macbook pro 15 but it is heating up really fast on the left side even when the cpu usage is only 10%...i'm worried if this is a problem of the hardware.

    it has been only about a month that i bought my macbook pro 15 but it is heating up really fast on the left side even when the cpu usage is only 10%...i'm worried if this is a problem of the hardware?

    The way something "feels" is very subjective.  We would need to know your actual temps.  You can install the free iStat Pro widget which is available as a download directly from Apple:
    http://www.apple.com/downloads/dashboard/status/istatpro.html
    Let us know what CPU temps you're seeing at the time you feel your machine is hot.  As you indicated your CPU usage was only 10%, that would imply that you already know that heavy CPU usage would be one cause for your machine to be running on the warm side... but that doesn't seem to be the cause here.

  • Getting the CPU USAGE

    hi !
    I want to get the CPU USAGE of the entire system.Is there any command in JAVA to get this.
    I don't want the CPU USAGE of a particular process but I want the CPU USAGE of the whole system.
    Kindly reply if any one knows it.
    Bye
    Srinu.

    Take a look at...
    http://www.javaworld.com/javaworld/javaqa/2002-11/01-qa-1108-cpu.html?
    N35Sy

  • NI HyperTrend Control raises the CPU usage of NI Citadel DB and freezes it.

    When a VI uses NI HyperTrend Control to fetch data from NI Citadel DB, the CPU usage of citadel is raised up to 10% and stops working.
    I don't know what "stops working" means since my coworker told me so.
    How can the control be prevented from freezing citadel?

    Jeff.St wrote:
    Hey iCat,
    Does the Trace View in MAX work?
    What version of LabVIEW are you running?
    Can you run the Hyper Trend control without linking it to a particular trace?
    Can you use the Hyper Trend control without starting your VI?
    Best,
    1) Does the Trace VIEW in MAX work?
    yes with 3 signals(traces?)
    2) What version of LabVIEW are you running?
    9.0 SP1
    3) Can you run the Hyper Trend control without linking it to a particular trace?
    yes
    4) Can you use the Hyper Trend control without starting your VI?
    yes
    5) And he has another question.
    Please refer to the attached image.
    For now, if he wants to put Va/Vb/Vc in Y axis of a hyper trend control, he has to do it in the front panel.
    He wants to put it in Y-axis via a property node in the block diagram.
    Is it possible?
    Attachments:
    hypertrendcontrol.png ‏46 KB

  • Why is the CPU usage different ?  I used LOAD_BALANCE option.

    I used a oracle 11.2.0.2 in RAC 2 nodes.
    And I used LOAD_BALANCE option in the WAS pool configuration
    jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.118)(PORT=1522))(*LOAD_BALANCE=YES*)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=NOFFICE)))
    But the CPU usage is different between two system. Usually it is 6:4, Sometimes it is 7:3.
    Is it normal?
    I want to a balance in CPU Usage (5:5).
    If it is the better solution about a Load balance. i want to know it.

    You are partially correct which is another way of saying you are incorrect too.
    There are two types of load balancing ... server side and client side. There are also questions with respect to how the client is connecting, we don't know, whether the session load is identical, etc. which the OP has not stated.
    The only thing I can absolutely say at this point is that what the OP has seen is normal and I can't see any reason why, unless the skew is very large and very permanent, anyone should care.
    To the OP: Let's step back from the "what I want" statement and go to the basis of your inquiry: "Why do you care? Please provide a business reason and cite specific performance metrics, from your system, showing the problem you are trying to address. Then perhaps we can help you.

  • [svn:fx-trunk] 7830: Update ASDoc on the new backgroundFrameRate property to WindowedApplication , to by default reduce the CPU usage in cases where an app is not 'active'.

    Revision: 7830
    Author:   [email protected]
    Date:     2009-06-14 15:57:29 -0700 (Sun, 14 Jun 2009)
    Log Message:
    Update ASDoc on the new backgroundFrameRate property to WindowedApplication, to by default reduce the CPU usage in cases where an app is not 'active'.
    Bugs: SDK-21135
    Reviewer:
    QE Notes:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21135
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
        flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication. as

    By the way, I agree with sybrand: you need to tune
    your redo log size.
    Regards
    Ignacio
    http://oracledisect.blogspot.com
    Ignacio,
    The excessive waits on log file parallel write and the related client wait of log file sync may be due to insufficient CPU availability, and may not point at an actual redo log size problem or a problem with the disk speed where the redo is written to disk, especially if there are 3 Oracle instances on the server with a single CPU.
    Paraphrased from "Optimizing Oracle Performance":
    The log file sync wait event is one of the first events to show increased latencies due to the time a process spends waiting in a CPU wait queue while processing excessive logical IOs.
    Kevin Closson wrote a couple blog entries that examined the potential problems of insufficient CPU capacity and its effects on log file parallel write when writing to solid state disks, and even when writing redo was explicitly disabled:
    http://kevinclosson.wordpress.com/2007/07/21/manly-men-only-use-solid-state-disk-for-redo-logging-lgwr-io-is-simple-but-not-lgwr-processing/
    "Once LGWR loses his CPU it may be quite some time until he gets it back. For instance, if LGWR is preempted in the middle of trying to perform a redo buffer flush, there may be several time slices of execution for other processes before LGWR gets back on CPU..." Fix the CPU problem, and the other significant waits may decrease.
    JesusLuvR,
    yingkuan's suggestion to look at the SQL statement that performs the 4,365,564 logical IOs, consumes 186.03 CPU seconds, and has an execution time of 225.06 seconds, is likely a very good starting point. You might also want to check the value of the SESSION_CACHED_CURSORS parameter to see if it needs to be adjusted.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • [svn:fx-trunk] 7753: Adding backgroundFrameRate property to WindowedApplication, to by default reduce the CPU usage in cases where an app is not 'active'.

    Revision: 7753
    Author:   [email protected]
    Date:     2009-06-11 12:29:44 -0700 (Thu, 11 Jun 2009)
    Log Message:
    Adding backgroundFrameRate property to WindowedApplication, to by default reduce the CPU usage in cases where an app is not 'active'.
    Bugs: SDK-21135
    Reviewer: Ryan, Darrell
    QE Notes: Test needs to be written for this new API. PARB has tentatively approved, will update spec here: http://opensource.adobe.com/wiki/display/flexsdk/Spark+WindowedApplication
    Doc Notes: Needs to be documented and ASDoc scrubbed. 
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21135
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
        flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication. as

    Hi,
    when the pageFlow scope map is preserved on task flow exit then this is a bug. Can you file it ?
    Frank

  • ORA-02393: exceeded call limit on CPU usage -- Concept Understanding is req

    In our System CPU_PER_CALL is set to 1.5 Hours for Reporting Users.
    I can see some query runs for 10 hours-15 hours and complete successfully and some queries fail exactly after 1.5 hours.
    I want to understand what does CPU_PER_CALL Means. On what basis it calculates CPU_PER_CALL ( Fetch , Execute , parse). How a query is calculating time ?
    With the same profile options some queries run for 10 hours but some queries fail after 1.5 hours.
    Regards
    Sourabh Gupta

    The short answer is that different queries wait on different sorts of events. Let's assume that the only 2 wait events in the world are waits for CPU and waits for I/O (there are many other types of waits but most reporting queries will primarily be waiting for these two resources). If you have a query that runs for 15 hours but spends 14.5 hours waiting on I/O and only 0.5 hours on the CPU doing comparisons and/or calculations, the CPU usage for that query is only 0.5 hours. Another query might run for 1.51 hours and do 0.01 hours of I/O and spend 1.5 hours on the CPU calculating various aggregate values for that data. The second query would use 1.5 hours of CPU (and thus exceed your CPU_PER_CALL) while the first query would only use a third as much CPU.
    Oracle profiles allow you to specify a number of different limits so that you can specify limits on CPU usage (CPU_PER_CALL/ CPU_PER_SESSION) or I/O usage (LOGICAL_READS_PER_CALL/ LOGICAL_READS_PER_SESSION) or a combination of the two (COMPOSITE_LIMIT).
    Justin

  • How do you get the CPU Usage in Linux

    This is a link of an example in WIN32:
    http://www.javaworld.com/javaworld/javaqa/2002-11/01-qa-1108-cpu.html
    It notes that UNIX environments should use getrusage(), and that is all it says in regards to UNIX. The code I have attempted to use looks like this:
    #include <sys/resource.h>
    #include <sys/time.h>
    #include "CPU.h"
    #include "jawt_md.h"
    #include "jawt.h"
    struct rusage usage;
    int ret;
    struct timeval val;
    struct timeval val2;
    JNIEXPORT jlong JNICALL Java_CPU_getProcessCPUTime (JNIEnv * env, jclass cls)
       ret = getrusage(RUSAGE_SELF,&usage);
       val = usage.ru_stime;
       val2 = usage.ru_utime;
       return val2.tv_usec;
    }My problm is that I don't think it is right...since the value returned is always the same no matter what the CPU usage is. same for if I used val instead of val2.
    Any Ideas?

    In Linux, you can read /proc/uptime. It does NOT give you the load averages that the command uptime gives. It gives you numerically the amount of time the CPU was idle vs how much time it was spent doing something. You need to read these two floating point numbers one every second, or once every 5 or 10 seconds then do the delta on the change: The maths are as follows:
    Read the file in twice in 5 seconds, parse into two floats/doubles:
    double[] last;  // the first read of the file
    double[] rect;  // the latest read of the file
    double ld = last[1] - last[0];
    double rd = rect[1] - rect[0];
    double cpu = (1.0d-(rd/ld)) * 100.0d;This should print the CPU percentage in Linux for that given time frame (5 second updates).

  • Where is the cpu usage monitor in LPX?

    Hi everyone,
    Perhaps I missed something, but I don't find the cpu usage monitor in LPX. Anyone?

    Hey there you need to customise (change mode) the Control Bar and Display by right clicking on the icon on the far left of the LCD display.
    If you choose Custom you can select the CPU and HD usage meters in the customise drop down menu when you right click in the display .
    hope this helps.

  • CPU usage goes off the meter everytime I start firefox and when I open add-ons tab to troubleshoot the CPU usage goes and then stays on normal.Why?

    The CPU usage is 99% everytime I start firefox. When I open help tabs in the browser to troubleshoot the problem the cpu goes down to normal.How am I supposed to troubleshoot the issue if the last resort is as simple as uninstalling firefox?
    Running: Firefox 5.0
    OS. H.P. Windows XP/ sp3 , mem. 1536 MB , Pent.4.

    Hi musicfan,<br />Sorry you are having problems with Firefox. Maybe you should have asked earlier and we could have fixed it.
    Reading your comments I do not see that rolling back to an insecure Firefox 22 will actually help you much. You are probably best using IE, unless you have also damaged that.
    *[[Export bookmarks to Internet Explorer]]
    You should not use old versions they are insecure. Security fixes are publicised and exploitable.
    * [[Install an older version of Firefox]]
    * https://www.mozilla.org/security/known-vulnerabilities/firefox.html
    Most others will not be having such problems. We are now able to say that with confidence because after developers missed a regression in Firefox 4 telemetry was introduced so that data was obtained. It may be an idea to turn on your telemetry, if you have not already done so, and decide to stick with Firefox.
    *[[Send performance data to Mozilla to help improve Firefox]]
    Trying safe mode takes seconds. Unfortunatly if you are not willing to do even rudimentary troubleshooting there is not anything we can do to help you.
    *[[Troubleshoot Firefox issues using Safe Mode]]

Maybe you are looking for

  • How to transfer data from one macbookpro to another

    how to you transfer data from one macbookpro to another. the other one was stolen.

  • Windows 7 x64 CS5 Install Failure (Exit Error 7)

    In case you've gotten this error, look here: http://forums.adobe.com/message/2777085#2777085 There's a couple of suggestions as to how to workaround the error, but none seem too promising.

  • Pre_insert error in Oracle 10G XE

    Temos uma aplicação que não conseguimos compilar no Oracle 10G XE toda vez que usamos pre_insert com utilização de sequence.nextval. Da erro ORA-00600, alguem teria alguma dica para resolver esse problema ???

  • Csv file as input?

    Hello, I have and csv file with voltages. Now I would like to read this CSV file with an LabView programme and send the voltages to an analog output of a DAQ Card. (Each microsecond one Voltage value) Is that possible? regards doctorbluex

  • Events on textFrames

    Hello, Is it possible to watch for events on textFrames? I put an addEventListenerToObject on a textFrame but no responses. Any Ideas? Michel