Setting Max CPU usage for individual apps.

Is there a way to set a maximum CPU usage (percentage) for individual applications so when they run they will never go above the limit?

As Thomas pointed out, there is no way to do exactly what you want. You can have some influence over appliccation priorities using Peek-a-Boo.
Mac Mini; B&W G3/300    

Similar Messages

  • I am no longer able to turn off cellular data usage for individual apps.  When I turn most of them off, they just automatically reset themselves to allow data usage.  Any thoughts?

    I am no longer able to turn off cellular data usage for individual apps. 
    When I turn most of them off, they just automatically reset themselves to allow data usage.
    Any thoughts?

    I am definately having the same problem and cannot believe there are no answers or even support that this problem exists.  I never have to post on forumns, I read what is usually readilly availiable for the craziest of problems. 
    Anyways, the problem is just that, I can toggle off a individual app's setting of cellular data availability, but it changes right back on rescreening.  After restarting, resetting etc, it seems that the big Apple Apps are the biggest offenders.  Music is a very important one, Podcasts can kill you very quickly, app store, Photos, Facetime, Stocks?!?!?!
    When one searches for solutions I have to see hundreds of links to "How great is ios7, you can turn off cellular data for individual apps FOR DUMMIES!".  I am a dedicated apple fool since the Apple IIe (long time), but when they run afowl it is usually really bad.  Why offer an on/off switch if the setting is always on?
    I am writing just to add support to the existence of this problem, not so much for people to offer ideas of solutions as I now believe it is in the coding.
    Thank you

  • CPU Usage High, Individual Apps Not using Total

    Hi everyone,
      I've got a 2007 white Macbook currently running the most up to date version of Snow Leopard and recently the fan has been on a lot more often than it usually is and when I check in Acitivity Monitor the CPU usage is extremely high.  Normally it's around 2-4% tops but several times over the last few months it's been at 50-60% sustained usage for a long time (upwards of 20 minutes, then I just reboot it).  Once or twice it waws higher than 100%.  I checked Activity Monitor and killed the normal culprits like Shockwave and Flash, then anything with Microsoft in the name.  I'm a big tabbed browser user so I closed off google Chrome.  Right now, running Adium, iCal, Powerpoint (small file size, only 5 slides), and Word, 45% of the CPU is currently in use.  I went through and systematically closed everything but the CPU usage is still around 45% after closing all active programs in the dock other than Finder and Activity Monitor.  The strange part for me is that the amount of CPU usage is not the sum of the CPU usage of all the programs currently running.  It's not even close (like 1% versus 45%)
      Does anyone know what might be wrong?  Rebooting it will usually fix this problem, but I'm worried I either have Malware, a Trojan that iAntivirus isn't detecting, and my computer is somehow being used without my knowledge or something is wrong with my Mac.
    Thanks in advance for any help!
    Specs are Macbook 3,1, Intel Core 2 Duo 2.2 GHz, 4GB ram

    hrishy wrote:
    Hi
    Why so much time is being spent in CPU ?
    Apologies the rich text editor is not working and i am unabel to format this code properly
    Rows  Operation
    ______0  NESTED LOOPS (cr=117469550 pr=444 pw=0 time=1670966102 us)
    (snip)
    ______0                    NESTED LOOPS (cr=117469550 pr=444 pw=0 time=1670965844 us)
    462,472                       NESTED LOOPS (cr=1389078 pr=196 pw=0 time=12429546 us)
    (snip)
    ______0                       TABLE ACCESS FULL CON (cr=116080472 pr=248 pw=0 time=1889064945 us)
    (snip)
    The execution plan shows a nested loop join between a row source containing 462,472 rows and a full table scan of the table CON - that means the table CON was full table scanned 462,472 times, resulting in 116,080,472 consistent gets in 9 executions. The consistent gets are the cause of the high CPU usage. You might work through the links provided by Narendra to find the cause of the nested loop joins. Maybe this indicates a problem with the object statistics, or possibly it is caused by an unfortunate set of parameters that affected the optimizer's decisions.
    Charles Hooper
    Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • How do I tap into "CPU" usage for a FP indicator

    I have built a realy effective database cruncher...With exeptionally easy graphing functionality. The problem is the opperators will not let the dbase read / filter before they start doing the elevator button thing. I currently have the clocks set to use aprox 60~75% CPU during the read and/or filter. How do I tap into the pc cpu usage for an indicator. I think it will lower there pain if they can see that the pc is working hard.
    Message Edited by MHarrington on 04-30-2007 10:12 PM

    Open your example finder and look for the example "SimpleTaskMonitor.vi". (search for .NET)
    LabVIEW Champion . Do more with less code and in less time .

  • How could i get the kernel and user cpu usage for each process

    Hi all,
    In order to monitor the system CPU usage, I would like write a script to gather the kernel and user CPU usage for each process, like the prstat or top does. As always missing the shortlived kernel usage, prstat or top cann't get the precise CPU usage. I checked with the dtrace syscall, proc and fbt provider, but don't get which one is useful.
    Please provide your comments and suggestion.
    Thanks in adv

    mail2sleepy wrote:
    As I've studied the "dtrace" for a while, and seems Sun gives a pretty high score on this new feature.....I do want to know whether there's some probe can work for it, like writing a "dtrace" version prstat.You can write a prstat without dtrace. Because that's just polling at specific intervals and reading some process structures from /proc. You could have dtrace fire a probe every 5 seconds and read the same thing, but it wouldn't really be using any features of dtrace. Trhying to write it "in dtrace" doesn't make much sense.
    What you could do that would be harder via other methods is to fire a probe at process exit that displayed the process information including total CPU time. They could print exactly when processes exited. Doing that without dtrace would be very difficult.
    Darren

  • I'm using a 16GB iPhone 4s, with the latest version of iOS 8.1.1. Whenever I go to the "Cellular" settings on the main settings page and turn OFF cellular data usage for native apps like mail, app store, contacts, photos etc , the moment I back out a

    I'm using a 16GB iPhone 4S, with the latest version of iOS 8.1.1. Whenever I go to the "Cellular" settings on the main settings page and turn OFF cellular data usage for native apps like mail, app store, contacts, photos etc , the moment I back out and come back in, all the native apps I turned cellular off for are back on again. Kindly help me

    Exact same question as ankit1986, specifically with the photos while on cellular-only, and as simple as it sounds, I tried the hard reboot Ingo2711 suggested.  Still experiencing the same error with the native apps reverting to on.  It's killing our shared data-plan (2GB).

  • HP Load Runner: CPU usage for this load generator has exceeded 80%

    Recently I have downloaded LR 12.1 and installed.   Observed error  CPU usage for this load generator has exceeded 80% when executing the test with 5 user load using AJAX Trulcient IE script. For each virtual user in the script one TcWebIELauncher.exe hads been initiated and running during the test execution. Each TcWebIELauncher.exe instance is taking min 14% CPU utilization and CPU utilization for 5 users is around 75% at the time of test execution.  What is the reason behind this high CPU utilization for this less user load?. Please suggest how to handle and fix the issue.
    regards,
    Sreekanth

    You can download Trail version of Loadrunner from HP site.  That's true. all HP testing tools products are license based.
    i) If you want to use for SAP applications, you need to have SAP protocals (SAP GUI and SAP WEB). So how this licenses works is, if you want to buy 50 Vusers for SAP it cost you around $ 32k and it depends on company discount. so you need to work with HP Sales team to get the quotation then based on no of Vusers and you can procure it.
    ii) As for as i know, there is no  HP LR integration with Solution Manager.
    let me know if you have any questions.

  • Sar CPU usage for each processor

    In Linux, mpstat allows you to specify a specific processor or all processors when getting CPU % usage. In OS X, sar looks pretty limited as I can only get CPU usage for all processors. I'm trying determine how many cores are in use (basically for figuring out how many single cores are available for jobs if im submitting 1 handbrake job per core)

    hello,
    I sugget to create a time series chart with the following SQL:
    with p as (select target_guid,property_value cpucount from mgmt$target_properties where property_name='CPUCount' and property_type='INSTANCE')
    select h.target_name,
    h.rollup_timestamp,
    h.average/p.cpucount pct_cpu
    from mgmt$metric_hourly h,p
    where h.metric_name='instance_efficiency'
    and h.metric_column='cpuusage_ps' and h.target_guid in (select target_guid from mgmt$db_dbninstanceinfo where target_type='oracle_database' and host=??EMIP_BIND_TARGET_GUID?? )
    and h.rollup_timestamp between ??EMIP_BIND_START_DATE?? and ??EMIP_BIND_END_DATE??
    and p.target_guid=h.target_guid
    order by 1,2
    You have to select the host target in the report and period is customizable.
    I hope this is correct and answers your question.
    Regards,
    Noel

  • Provide lock for individual apps

    provide lock for individual apps:
    Can anyone suggest how to lock photos,videos and all social networks ?is there any safe application to lock individual applications

    Not a feature of iOS.
    If you wish, you can leave your comments at
    http://www.apple.com/feedback

  • High CPU usage for webservd

    we are seeing a very high CPU usage for webservd. looking at the java stack it seems to be threads communicating to sun one LDAP server.
    Anyone experienced this? is there a know issue in Java LDAP SDK?
    Sun ONE Web Server 6.1SP4 B12/16/2004
    17393 root 3741M 1655M cpu0 10 0 59:30:33 8.8% webservd/6235
    17393 root 3741M 1655M cpu16 10 0 223:58:38 8.7% webservd/5043
    17393 root 3741M 1655M cpu17 10 0 545:54:49 8.7% webservd/2902
    17393 root 3741M 1655M run 10 0 379:07:26 8.3% webservd/3996
    17393 root 3741M 1655M cpu1 30 0 213:54:52 8.3% webservd/5115
    17393 root 3741M 1655M run 20 0 56:03:44 8.2% webservd/6265
    17393 root 3741M 1655M cpu18 30 0 556:18:29 8.2% webservd/2830
    17393 root 3741M 1655M cpu3 30 0 548:09:11 8.2% webservd/2890
    17393 root 3741M 1655M run 20 0 328:18:42 8.1% webservd/4359
    17393 root 3741M 1655M cpu2 30 0 5:11:16 8.1% webservd/6722
    17393 root 3741M 1655M run 20 0 181:49:48 8.1% webservd/5322
    17393 root 3741M 1655M run 20 0 251:44:35 7.8% webservd/4857
    [02/Aug/2006:15:06:16] warning (17393): CORE3283: stderr: "BlockedThread" daemon prio=1
    0 tid=0x01110650 nid=0xb56 runnable [0x1714f000..0x1714fc10]
    [02/Aug/2006:15:06:16] warning (17393): CORE3283: stderr: at netscape.ldap.LDAPSe
    archListener.nextMessage(LDAPSearchListener.java:86)
    [02/Aug/2006:15:06:16] warning (17393): CORE3283: stderr: at netscape.ldap.LDAPSe
    archListener.getResponse(LDAPSearchListener.java:77)
    [02/Aug/2006:15:06:16] warning (17393): CORE3283: stderr: at com.iplanet.services
    .ldap.event.BlockedThread.run(BlockedThread.java:121)
    [02/Aug/2006:15:06:16] warning (17393): CORE3283: stderr: at java.lang.Thread.run
    (Thread.java:595)

    forgot to mention: OS is solaris 9

  • How to dynamically set max-rss size for a local zone?

    Running solaris 10 05/08.
    Following situation: Three local zones in a Veritas cluster. The zones
    can fail over but normally not all three are on the same physical box.
    I want to be able to restrict physical memory usage for the zones in
    situations where certain combinations of them end up on the same
    physical box. So, I need to be able to dynamically change memory
    resources. I know how to do this with, for example locked memory:
    prctl -n zone.max-locked-memory -r -v <mem> `pgrep -z <zone name>
    init`
    but i need to do this for physical memory and I can't see that there
    is a zone resource for this? I thought this was added in 05/08?

    Hi
    You can do this by using rcapd from the global zone
    - start rcapd from the global zone:
    svcadm enable svc:/system/rcap:default
    - set a physical memory caping value for each zone
    rcapadm -z your_zone -m max_rss_value
    - check the memory use for all the zone capped
    rcapstat -gz
    You can set the rss capping value in the zone configuration:
    # zonecfg -z your_zone
    zonecfg:busi-app-prod> add capped-memory
    zonecfg:busi-app-prod:capped-memory> set physical=900m
    zonecfg:busi-app-prod:capped-memory> end
    zonecfg:busi-app-prod> verify
    zonecfg:busi-app-prod> commit
    zonecfg:busi-app-prod> exit
    This will be take in account at the next reboot of this zone.
    Have a also a look to rcapadm to tune rcapd
    Bye
    Fred

  • How to get max CPU usage

    I'm using Win 7 64bit and CS6 64bit.
    However, when I do some heavy editing, like anything that takes a few minutes of CPU processing, I tend to look at the task manager only to find that 4 cores are utilizing 50% at max thus taking longer to compute the results.
    Is there a way to maximize CPU usage by Photoshop? I would like it to use 100% when performing tasks to speed up process time. Is there a windows plug in?
    Thanks,
    Gil.

    It depends on how each of the portions of Photoshop you're using was implemented.  There's little you can do to influence it.  About the only thing I can think of is that you can adjust the Tile Size and Cache Levels values in the Edit - Preferences - Performance dialog.  On some systems with some kinds of operations smaller tiles can make things work faster and with others large tiles are better.  But be forewarned:  I've never seen changing those values make a very big difference. 
    One other thing you can do is adjust the max RAM you allow Photoshop to use.  Your OS probably itself doesn't need more than 1 to 2 GB, and if you don't specifically have another application you want to run that uses a lot of RAM you'll want to change the Photoshop RAM usage so as to leave just a few GB for the OS.  On a system with a huge amount of RAM that might mean setting it to 90% or more.  If Photoshop can keep things in RAM, your CPU will be busier because it won't be waiting on swapping data to/from disk.
    Make sure you restart Photoshop before testing any changes.
    There are filters that you SHOULD see use 100% of all your cores - example, try a Filter - Blur - Radial Blur on a large image.  There are other things that simply don't, because either there isn't a good way to multi-thread the activity (e.g., data compression during save) or the Photoshop implementation is just limited because it's not been updated since the advent of multi-core systems (e.g., some of the old artistic filters).
    When I was doing performance testing, I created an action that does a lot of the kinds of things I normally do to images, so that I could run it repeatedly and time the results, looking for differences as a result of choosing the different settings.  There are Photoshop benchmarks on the web that do much the same thing, and while it might not be a good match for what you do (none of them were for me), they ARE interesting in that they allow you to compare your performance to other systems out there, to make sure everything's working right.
    -Noel

  • High cpu usage for garbage collection (uptime vs total gc time)

    Hi Team,
    We have a very high cpu usage issue in the production.
    When we restart the server, the cpu idle time would be around 95% and it comes down as days goes by. Today idle cpu is 30% and it is just 6th day after the server restart.
    Environemnt details:
    Jrockit version:
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    BEA WebLogic JRockit(TM) 1.4.2_05 JVM R24.4.0-1 (build ari-38120-20041118-1131-linux-ia32, Native Threads, GC strategy: parallel)
    Gc Algorithm: JRockit Garbage Collection System currently running strategy: Single generational, parallel mark, parallel sweep
    Number Of Processors: 4
    Max Heap Size: 1073741824
    Total Garbage Collection Time: 21:43:56.5
    Uptime: 114:33:4.1
    Total Garbage Collection Count: 420872
    Total Number Of Threads: 198
    Number Of Daemon Threads: 191
    Can you guys please tell me what would be problem in the server which causing the high cpu usage?
    One more thing I would like to know is that why the total number of threads is 198 when we specified the Executor pool size as 25? I agree that weblogic would create some threads for its maintenance but around 160 threads!!! something is wrong I guess.
    Santhosh.
    [email protected]

    Hi,
    I'm having a similar problem, but haven't been able to resolve it yet. Troubleshooting is made even harder by the fact that this is only happening on our production server, and I've been unable to reproduce it in the lab.
    I'll post whatever findings I have and hopefully we'll be able to find a solution with the help of BEA engineers.
    In my case, I have a stand-alone Tomcat server that runs fine for about 1-2 days, and then the JVM suddenly starts using more CPU, and as a result, the server load shoots up (normal CPU utilization is ~5% but eventually goes up to ~95%; load goes from 0.1 to 4+).
    What I have found so far is that this corresponds to increased GC activity.
    Let me list my environment specs before I proceed, though:
    CPU: Dual Xeon 3.06GHz
    RAM: 2GB
    OS: RHEL4.4 (2.6.9-42.0.2.ELsmp)
    JVM build 1.5.0_03-b07 (BEA JRockit(R) (build dra-45238-20050523-2008-linux-ia32, R25.2.0-28))
    Tomcat version 5.5.12
    JAVA_OPTS="-Xms768m -Xmx768m -XXtlasize16k -XXlargeobjectlimit16k -Xverbose:memory,cpuinfo -Xverboselog:/var/log/tomcat5/jvm.log -Xverbosetimestamp"
    Here are excerpts from my verbose log (I'm getting some HT warning, not sure if that's a problem):
    [Fri Oct 20 15:54:18 2006][22855][cpuinfo] Detected SMP with 2 CPUs that support HT.
    [Fri Oct 20 15:54:18 2006][22855][cpuinfo] Trying to determine if HT is enabled.
    [Fri Oct 20 15:54:18 2006][22855][cpuinfo] Trying to read from /dev/cpu/0/cpuid
    [Fri Oct 20 15:54:18 2006][22855][cpuinfo] Warning: Failed to read from /dev/cpu/0/cpuid
    [Fri Oct 20 15:54:18 2006][22855][cpuinfo] Trying to read from /dev/cpu/1/cpuid
    [Fri Oct 20 15:54:18 2006][22855][cpuinfo] Warning: Failed to read from /dev/cpu/1/cpuid
    [Fri Oct 20 15:54:18 2006][22855][cpuinfo] HT is: supported by the CPU, not enabled by the OS, enabled in JRockit.
    [Fri Oct 20 15:54:18 2006][22855][cpuinfo] Warning: HT enabled even though OS does not seem to support it.
    [Fri Oct 20 15:54:55 2006][22855][memory ] GC strategy: System optimized over throughput (initial strategy singleparpar)
    [Fri Oct 20 15:54:55 2006][22855][memory ] heap size: 786432K, maximal heap size: 786432K
    [Fri Oct 20 16:07:30 2006][22855][memory ] Changing GC strategy to generational, parallel mark and parallel sweep
    [Fri Oct 20 16:07:30 2006][22855][memory ] 791.642-791.874: GC 786432K->266892K (786432K), 232.000 ms
    [Fri Oct 20 16:08:02 2006][22855][memory ] 824.122: nursery GC 291998K->274164K (786432K), 175.873 ms
    [Fri Oct 20 16:09:51 2006][22855][memory ] 932.526: nursery GC 299321K->281775K (786432K), 110.879 ms
    [Fri Oct 20 16:10:24 2006][22855][memory ] 965.844: nursery GC 308151K->292222K (786432K), 174.609 ms
    [Fri Oct 20 16:11:54 2006][22855][memory ] 1056.368: nursery GC 314718K->300068K (786432K), 66.032 ms
    [Sat Oct 21 23:21:09 2006][22855][memory ] 113210.427: nursery GC 734274K->676137K (786432K), 188.985 ms
    [Sat Oct 21 23:30:41 2006][22855][memory ] 113783.140: nursery GC 766601K->708592K (786432K), 96.007 ms
    [Sat Oct 21 23:36:15 2006][22855][memory ] 114116.332-114116.576: GC 756832K->86835K (786432K), 243.333 ms
    [Sat Oct 21 23:48:20 2006][22855][memory ] 114841.653: nursery GC 182299K->122396K (786432K), 175.252 ms
    [Sat Oct 21 23:48:52 2006][22855][memory ] 114873.851: nursery GC 195060K->130483K (786432K), 142.122 ms
    [Sun Oct 22 00:01:31 2006][22855][memory ] 115632.706: nursery GC 224096K->166618K (786432K), 327.264 ms
    [Sun Oct 22 00:16:37 2006][22855][memory ] 116539.368: nursery GC 246564K->186328K (786432K), 173.888 ms
    [Sun Oct 22 00:26:21 2006][22855][memory ] 117122.577: nursery GC 279056K->221543K (786432K), 170.367 ms
    [Sun Oct 22 00:26:21 2006][22855][memory ] 117123.041: nursery GC 290439K->225833K (786432K), 69.170 ms
    [Sun Oct 22 00:29:10 2006][22855][memory ] 117291.795: nursery GC 298947K->238083K (786432K), 207.200 ms
    [Sun Oct 22 00:39:05 2006][22855][memory ] 117886.478: nursery GC 326956K->263441K (786432K), 87.009 ms
    [Sun Oct 22 00:55:22 2006][22855][memory ] 118863.947: nursery GC 357229K->298971K (786432K), 246.643 ms
    [Sun Oct 22 01:08:17 2006][22855][memory ] 119638.750: nursery GC 381744K->322332K (786432K), 147.996 ms
    [Sun Oct 22 01:11:22 2006][22855][memory ] 119824.249: nursery GC 398678K->336478K (786432K), 93.046 ms
    [Sun Oct 22 01:21:35 2006][22855][memory ] 120436.740: nursery GC 409150K->345186K (786432K), 81.304 ms
    [Sun Oct 22 01:21:38 2006][22855][memory ] 120439.582: nursery GC 409986K->345832K (786432K), 153.534 ms
    [Sun Oct 22 01:21:42 2006][22855][memory ] 120443.544: nursery GC 410632K->346473K (786432K), 121.371 ms
    [Sun Oct 22 01:21:44 2006][22855][memory ] 120445.508: nursery GC 411273K->347591K (786432K), 60.688 ms
    [Sun Oct 22 01:21:44 2006][22855][memory ] 120445.623: nursery GC 412391K->347785K (786432K), 68.935 ms
    [Sun Oct 22 01:21:45 2006][22855][memory ] 120446.576: nursery GC 412585K->348897K (786432K), 152.333 ms
    [Sun Oct 22 01:21:45 2006][22855][memory ] 120446.783: nursery GC 413697K->349080K (786432K), 70.456 ms
    [Sun Oct 22 01:34:16 2006][22855][memory ] 121197.612: nursery GC 437378K->383392K (786432K), 165.771 ms
    [Sun Oct 22 01:37:37 2006][22855][memory ] 121398.496: nursery GC 469709K->409076K (786432K), 78.257 ms
    [Sun Oct 22 01:37:37 2006][22855][memory ] 121398.730: nursery GC 502490K->437713K (786432K), 65.747 ms
    [Sun Oct 22 01:44:03 2006][22855][memory ] 121785.259: nursery GC 536605K->478156K (786432K), 132.293 ms
    [Sun Oct 22 01:44:04 2006][22855][memory ] 121785.603: nursery GC 568408K->503635K (786432K), 71.751 ms
    [Sun Oct 22 01:50:39 2006][22855][memory ] 122180.985: nursery GC 591332K->530811K (786432K), 131.831 ms
    [Sun Oct 22 02:13:52 2006][22855][memory ] 123573.719: nursery GC 655566K->595257K (786432K), 117.311 ms
    [Sun Oct 22 02:36:04 2006][22855][memory ] 124905.507: nursery GC 688896K->632129K (786432K), 346.990 ms
    [Sun Oct 22 02:50:24 2006][22855][memory ] 125765.715-125765.904: GC 786032K->143954K (786432K), 189.000 ms
    [Sun Oct 22 02:50:26 2006][22855][memory ] 125767.535-125767.761: GC 723232K->70948K (786432K), 225.000 ms
    vvvvv
    [Sun Oct 22 02:50:27 2006][22855][memory ] 125768.751-125768.817: GC 712032K->71390K (786432K), 64.919 ms
    [Sun Oct 22 02:50:28 2006][22855][memory ] 125769.516-125769.698: GC 711632K->61175K (786432K), 182.000 ms
    [Sun Oct 22 02:50:29 2006][22855][memory ] 125770.753-125770.880: GC 709632K->81558K (786432K), 126.000 ms
    [Sun Oct 22 02:50:30 2006][22855][memory ] 125771.699-125771.878: GC 708432K->61368K (786432K), 179.000 ms
    So, I'm running with the default GC strategy which lets the GC pick the most suitable approach (single space or generational). It seems to switch to generational almost immediately and runs well - most GC runs are in the nursery, and only once in a while it goes through the older space.
    Now, if you look at [Sun Oct 22 02:50:27 2006], that's when everything changes. GC starts running every second (later on it's running 3 times a second) doing huge sweeps. It never goes through the nursery again, although the strategy is still generational.
    It's all downhill from this point on, and it's a matter of hours (maybe a day) before we restart the server.
    I guess my only question is: What would cause such GC behavior?
    I would appreciate your ideas/comments!
    Thanks,
    Tenyo

  • 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.

  • CPU usage for Image acquiring by using Imaq1411

    Hello,
    Running the IMAQ program makes the CPU usage almost 100%. I tested it out with my own program and the example program you provided. So far I haven't have any clue about this.
    I've tried to set the ROI as the help said (Left, Top, Right, Bottom), but failed. I had to set that in the order of Left, Bottom, Right and Top on my program.
    With the Snap.vi, I set up the ROI and step x, y. The original image size is 640X480. But I just want to see the center part (160X120) of whole image depending on the Zoom (1:1, 1:2, 1:4). To do that, I programmtically set the ROI and Step (x, y) to be like the followings, which I think makes the same image size (160X120) but a different zoom.
    (0, 480, 640,0) and (4, 4) for ZoomX1
    (1:1)
    (160, 360, 480, 120) and (2, 2) for ZoomX2 (1:2)
    (240, 300, 400, 180) and (1, 1) for ZoomX4 (1:4)
    Does it make sense?
    Thanks, GraceSun"

    Hello.
    After looking into your question a little more carefully, it seems that you are essentially trying to zoom in on the center of your image. To do this, you should not need to use the Step X, Step Y inputs at all, you should simply have to setup the ROI descriptor to get the selected part of the image. If you would like all images to be the same size, despite the zoom, you should use the horizontal and vertical scaling parameters. See the following KnowledgeBase for more info on these parameters.
    Again, I would like to reiterate that the correct order for the ROI should be Left, Top, Right, Bottom. That being said, however, 'If it aint broke, don't fix it
    You are definitely on the right track to getting the zooming feature you want down.
    Regards,
    Colin C.
    Applications Engineering
    Colin Christofferson
    Community Web Marketing
    Blog

Maybe you are looking for