Agent CPU consumption is 13.5%

Hi, my database some times throw this warning:
EM Alert: Warning: myhost.mydomain.dom:3938 - Agent CPU consumption is 13.5%
with this information:
Name=myhost.mydomain.dom:3938
Type=Agent
Host=myhost.mydomain.dom
Metric=CPU Usage (%)
Timestamp=Aug 21, 2009 8:57:58 PM CEST
Severity=Warning
Message=Agent CPU consumption is 13.5%
Rule Name=Agents Unreachable
Rule Owner=SYSMANLater throw this:
EM Alert: Clear: myhost.mydomain.dom:3938 - CLEARED - Agent CPU consumption is 3%
with this information:
Name=myhost.mydomain.dom:3938
Type=Agent
Host=myhost.mydomain.dom
Metric=CPU Usage (%)
Timestamp=Aug 21, 2009 10:24:28 PM CEST
Severity=Clear
Message=CLEARED - Agent CPU consumption is 3%
Rule Name=Agents Unreachable
Rule Owner=SYSMANAnyone can help me and explain what dit it say?

Hi, I have an oracle RAC of 3 nodes, with Standard Edition of 10G R2, and I don't use Grid Control. I only use Database Control.
Here are the output of emctl status agent
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
Agent Version     : 10.1.0.5.1
OMS Version       : 10.1.0.5.0
Protocol Version  : 10.1.0.2.0
Agent Home        : /u01/oracle/app/product/102_64_rac/app/myhost_XXX31
Agent binaries    : /u01/oracle/app/product/102_64_rac/app
Agent Process ID  : 28209
Parent Process ID : 20872
Agent URL         : http://myhost.MyDomain.dom:3938/emd/main
Started at        : 2009-07-10 09:59:10
Started by user   : oracle
Last Reload       : 2009-07-10 09:59:25
Last successful upload                       : 2009-08-28 08:18:13
Total Megabytes of XML files uploaded so far :   485.22
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    26.27%
Agent is Running and Ready

Similar Messages

  • CPU consumption 100%: How do I see which SQL is consuming?

    Hi,
    I need help badly with this because I cannot get my head around the problem. I have a Windows server 2003 Enterprise 64-bit running Oracle 10.2.0.3 and last night it started consuming 100% CPU. The Windows performance monitor shows 100% CPU in any case, and it was difficult to even login via remote desktop.
    It is Oracle.exe that is consuming, and there is only one database on this server. It is an Opteron 875 2.2Ghz with 8GB ram.
    I want to see which SQL statement is responsible for the CPU consumption. I know exactly which user/programapplication is using it... it is useless to kick the session because the application connects immediately again from the app. server and runs the same thing. Restarting the database also has the same effect: session reconnects and CPU goes through the roof. Customer says that they are running the same stuff as always, and app. has not been updated recently. 100 % CPU to them, means something is wrong.
    Incidently, I tried to CPU patch this database a couple of days beforehand, but there was not enough space on disk (needed 1.6GB) so opatch complained and would not continue. I simply restarted the database without having run opatch. I cannot imagine that this is the cause of this problem.
    Anyhoo...
    I have a script from Kyle Haileys web site to get the CPU for each sql_id using ash tables:
    -- (c) Kyle Hailey 2007
    col type for a10
    select * from (
    select
    ash.SQL_ID , ash.SQL_PLAN_HASH_VALUE Plan_hash, aud.name type,
    sum(decode(ash.session_state,'ON CPU',1,0)) "CPU",
    sum(decode(ash.session_state,'WAITING',1,0)) -
    sum(decode(ash.session_state,'WAITING', decode(wait_class, 'User I/O',1,0),0)) "WAIT" ,
    sum(decode(ash.session_state,'WAITING', decode(wait_class, 'User I/O',1,0),0)) "IO" ,
    sum(decode(ash.session_state,'ON CPU',1,1)) "TOTAL"
    from v$active_session_history ash,
    audit_actions aud
    where SQL_ID is not NULL
    and ash.sql_opcode=aud.action
    and ash.sample_time > sysdate - &minutes /( 60*24)
    group by sql_id, SQL_PLAN_HASH_VALUE , aud.name
    order by sum(decode(session_state,'ON CPU',1,1)) desc
    ) where rownum < 10
    This give following output:
    SQL_ID PLAN_HASH TYPE CPU WAIT IO TOTAL
    cxk376gut06wn 3831248992 SELECT 12 145 5855 6012
    4ffvdt72n46yt 4094592372 SELECT 0 3 1131 1134
    dnxgm7bg8wqg1 4025412530 SELECT 3 13 337 353
    3y0dyvkc9sx69 1764840833 SELECT 18 169 56 243
    abz05715h08ct 1967470119 SELECT 0 7 175 182
    4gd6b1r53yt88 0 UNKNOWN 0 92 4 96
    9phhuzxpqwsgc 2662599208 SELECT 0 67 0 67
    275bbj5czbrwp 629013258 SELECT 0 2 64 66
    1dvrrg3aah2mu 75914095 SELECT 0 6 57 63
    My assumption is that this gives the average CPU usage over the last x minutes and the total cpu usage for this sql_id. There are no sql running that show a very high average CPU, but the total is up in 6000 for the longest running sql, so I get the statement for the top sql_id that has highest total, and it is this:
    SQL_ID cxk376gut06wn, child number 2
    SELECT NVL(MIN(ID),0) FROM TABLE_OBFUSCATED WHERE TASK = :B1 AND
    STATUS='JobQueue' AND MESSAGE_ID IS NULL
    Plan hash value: 3831248992
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 3231 (100)| |
    | 1 | SORT AGGREGATE | | 1 | 42 | | |
    |* 2 | TABLE ACCESS FULL| TABLE_OBFUSCATED | 3 | 126 | 3231 (1)| 00:00:39 |
    Predicate Information (identified by operation id):
    2 - filter(("TASK"=:B1 AND "STATUS"='JobQueue' AND "MESSAGE_ID" IS NULL))
    It doesn't seem to fit! It's such a simple statement, but according to ash this is the sql using the most total cpu over the last 30 minutes?? So I create a temp index on the filter and check the plan for the statement again, and it uses the index, but I need to kill the session or bounce the database for the new plan to be used because the currently running session is still using the old plan. Customer was desperate to get it down so I even tried flushing the shared pool but new plan does not get used. I did not want to restart the database. Do I have to kill all sessions using that plan for the new one to take effect?
    Now im stuck. I don't really know how else to get an accurate picture of which sql is currently consuming CPU. I need to know this to try to fix the SQL because stopping the application is not an option, even if it is throwing too much at the database. The only other option I can think of is setting up profile limits for cpu consumption in oracle, but then the job will likely take an unacceptable amount of time for the customer.
    So my questions are:
    1. How else can I check which SQL is using CPU accurately?
    2. Does the SQL I show above accuratlely display current average CPU over x minutes with ASH? Why is it so low for the top consumer but my CPU is still at 100% on the OS?
    Thankyou for your help.

    Yeah, OK, I can see an arbitary number for CPU used since session startup (what does that refer to by the way? It can't be percent), and I can see that one user has consumed massive amounts of CPU compared to all other sessions, but he is currently not running anything, so how can I see which SQL he ran in the past day that cuased all that CPU consumption? Can I do this without AWR?
    By the way, do you need a Diagnostic Pack license for simply viewing the Performance tab of dbconsole? I Can go into dbconsole and see history for 2 days back and see the massive espike that caused CPU consumption, but when dbconsole displays the list of top SQL and top sessions under the graph, is it the top listed SQL that consumed the most cpu or do you need to correlate the colours, i.e. find the SQL listed in top SQL that has the same colour as CPU usage on the graph (green) even if it is not listed as the top "consumer" (which I assume means top AAS consumer: overall consumption of all resources)?

  • Exchange server 2010 SP3 CPU consumption keep growing

    Hi, 
    I'm using an Exchange server 2010 SP3 14.3.123.4 version.
    We are currently experiencing CPU consumption growth on this server.
    It appears that the msexchangerepl process could be a good candidate for this CPU overconsumption.
    Any clue for this issue.

    Hi,
    In your posting, the MSExchangeRepl.exe process keeps increasing on the server. The Microsoft Exchange Replication service provides replication functionality for mailbox databases on Mailbox servers in a database availability group. Please check whether
    there is any back up program in your Exchange server. Also confirm if there is any Anti-virus program installed in your Exchange server.
    In Event Viewer, please check the event log for the MSExchangeRepl source and collect any further information for troubleshooting.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Java SP - ResultSet.updateRow causes 100x CPU consumption

    Oracle 11 Enterprise on Windows, with an out-of-the-box installation.
    I select from a table. No where clause. No order by. If I use ResultSet.updateRow to change any column, the CPU consumption of oracle.exe jumps 100x. Here is the code.
    Connection con = DriverManager.getConnection("jdbc:default:connection");
    Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = stmt.executeQuery("select cola,colb from tab");
    while (rs.next()) {
    rs.updateString(1, "qwerd"); // comment out to save 99% of your CPU*
    rs.updateRow();
    rs.close();
    stmt.close();
    con.commit();
    For my test case, against 10,000 rows, removing that one line changes the CPU consumption from roughly 7 CPU seconds to 0.07 CPU seconds. I do mean CPU time - not elapsed time. The CPU measurement come from v$sesstat.value. Task manager confirms oracle.exe using 100% of a cpu for the duration of the call.
    I know that this example can be replaced with a single update statement. It is a gross simplification of a much larger proc, to replicate the problem.
    Help?

    Hi. For each row (when really updated), the DBMS is probably having to re-iterate
    through the table in the same unqualified way your query does, to position itself
    to the row you want to update. This whole thing is extremely inefficient, and I
    understand that you've reduced the issue to the simple example, but this does
    expose the critical fault of the algorithm. It breaks the number-one performance+
    rule for DBMS applications+: Don't move the data. Don't bring whole swaths of
    raw rows one-by-one to the client, just to find what you want to modify. Do the
    work where the data is, in the DBMS, using stored procedures. Build your saw mills
    where the trees are.
    Joe Weinstein

  • Oracle10g CPU Consumption

    I just upgraded one of my W2K development servers from 9.2.0.1.0 to 10.0.2.1.0. After upgrading I noticed that the CPU consumption is constantly at 50%, even though the database is completely idle. Has anyone had similar experiences? What's eating up the CPU?

    This might not help you but...
    I installed 10g on my WinXP desktop last year. I saw one of the Oracle processes (I don't remember if it was oracle.exe or something else) consume exactly 50% of CPU. The problem turned out to be that my firewall, which was in auto-disallow mode, was preventing something from connecting.
    I started the installation over (this time with my firewall on notify mode) and during installation the firewall would popup a message about a new connection which I would allow.
    Everything proceeded fine and now oracle.exe takes very little CPU when idle.
    Of course, it can consume 100% when busy.

  • High cpu consumption with GRE over IPSEC

    Hi all,
         After applying a gre over ipsec tunnel on one of our branch office, we get high cpu consumption (average 90%).
    Tunnel is applied between Cisco 2851 (C2800NM-ADVIPSERVICESK9-M), Version 12.4(24)T2, (fc2) and
    Cisco CISCO2921/K9 Version 15.0(1)M3.
    Config of the tunnet is as follow :
    - authentication pre-share
    - encryption aes 256
    - hash : sha
    - transform set : esp-aes esp-sha-hmac mode transport
    Routing process is eigrp.
    Could anyone please help me on solving this issue?

    Cool, good start.
    Check "show ip traffic" on both sides, it would be interesting to see what's going on.
    BTW the CPU usage of top process doesn't add up to 90%, there's a possibility it's traffic rate/pattern + features (IP input and pool manager would suggest that).

  • CPU consumption is quite high

    Hi All,
    I have created one Flash application which reads the rss
    feeds from the specific url and displays the data into datagrid.
    Also It has two tickers scrolling right to left. If I run the
    application from flash then it works fine with CPU consumption of
    around 5. But I I make exe using Macromedia Zinc 2.5 and run that
    exe, CPU consumption goes to 30-40. What could be the reason.
    Please any one can tell me the cause....
    Thanks in Advance.............

    how do you measure CPU utilisation? iostat, top, looking for LA?
    if your network management system runs OK and everybody is satisfied, then you should not care much about load.
    what you should do is to estimate your capacites, make a test run, to determine at what point (io, cpu) users will start to experience problems,
    i suppose NMS is a vital application for your network, so you server should be able to cope with at least 30% immediate increase of load.

  • What does com.apple.cts.plugin do? It seems to be causing high CPU consumption by UserEventAgent

    I have been having some trouble over the last couple of days with UserEventAgent process. It constantly consumes over 100% CPU. This of course results in obvious problems of the unit getting really hot, high CPU fan speed and faster battery drain.
    While investigating the root cause, I removed each of the plugins (located at /System/Library/UserEventPlugins/) one by one and restarted the UserEventAgent process (if you force quit the process, it restarts) and each time, observed the impact on CPU consumption.
    After a while, I was able to zero down on "com.apple.cts.plugin". If I removed this file from the plugins folder and forced UserEventAgent to restart, my CPU usage went back to normal with no excess heat or high-speed fan.
    While it seems to solve my problem, I am left wondering what this plugin really does and if by not having it I am putting my system at risk.
    Any help would be appreciated.

    I learnt this the hard-way as well. I am not too sure but probably it has something to do with cerification authority or something like that. BTW I am looking for the answer as well.

  • High cpu consumption

    Hello,
    in a Confluence installation, running on cluster of WebLogic Servers 8.1.4, HP-UX, Java 1.4.2, we observe very often the app server processes keeping quite high levels of CPU consumption.
    Each process can fully steadily occupy two/three CPUs or more.
    We managed to isolate the threads that seem to be responsible for this, the thread stacks look like the following:
    "ReplicatedCache" daemon prio=10 tid=018e5a30 nid=163 lwp_id=9303762 runnable [8ce00000..8ce00dc0]
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.validatePollArray(Service.CDB:15)
    - waiting to lock <a8964a20> (a com.tangosol.coherence.component.util.WindowedArray)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:22)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onNotify(ReplicatedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
    at java.lang.Thread.run(Thread.java:534)
    These threads seem to be waiting to lock an object, but they are constantly in "runnable" state.
    Waiting AND Runnable at the same time. Not surprisingly, the eat up CPU clocks.
    Any help is appreciated.
    Thanks
    F.Costa

    Unfortunately I don't have the full dump anymore.
    Anyway, this is another case (Runnable AND waiting for a lock)
    "PacketReceiver" daemon prio=2 tid=0126a3e8 nid=154 lwp_id=1009037 runnable [13b00000..13b00530]
    at com.tangosol.util.SafeLinkedList.add(SafeLinkedList.java:91)
    - waiting to lock <2e8a4288> (a com.tangosol.util.RecyclingLinkedList)
    at com.tangosol.coherence.component.util.queue.ConcurrentQueue.add(ConcurrentQueue.CDB:6)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketReceiver.onMessage(PacketReceiver.CDB:7)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketReceiver.checkReadyMessages(PacketReceiver.CDB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketReceiver.onPacketDirected(PacketReceiver.CDB:63)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketReceiver.onPacket(PacketReceiver.CDB:44)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketReceiver.onNotify(PacketReceiver.CDB:31)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
    at java.lang.Thread.run(Thread.java:534)
    Thanks
    Franco

  • Memory and CPU consumption very high after OS X10.7.5 upgrade.

    Hi,
    I am new to Mac world (just couple of months and still getting used to mac).
    After upgrade to OS X 10.7.5, I am seeing gradual memory consumption upon normal bootup and login. loginwindow, systemUIServer and systemUIAgent processes are using almost all the remaining RAM. Also, _coreaudiod process is consuming maximum CPU.
    System Preferences is not responding.
    I don't have TimeMachine setup. No backup is available.
    Any remedy?

    Disable your Extensis / Suitcase font plugins until they can get a patch out.

  • High GNOME CPU consumption

    For me gnome-shell+Xorg are always at 20-30%, or even more, especially when alt+tabbing between windows. This means high power consumption, laptop temperature is always high, slowness...
    I don't remember this happening in 3.6, am I the only one having this problem?
    00:02.1 Display controller: Intel Corporation Mobile GME965/GLE960 Integrated Graphics Controller (rev 0c)

    Hmm this is getting to be more tricky.  Are gnome and kde installed on the same Arch setup? They could be somehow conflicting with each other, though I don't know why; they shouldn't.  I don't use gnome myself so I'm not too sure what a probable cause would be other than LLVM forcing itself to be used.  Apparently you're not alone with this problem, here's a topic on the fedora forums:
    http://forums.fedoraforum.org/showthread.php?t=285415
    According to that, it seems the OP has intel drivers and they're not being used.  Just doing a google search on "gnome high cpu usage", there's a lot of relevant results.  I could look deeper into it but I figure you'd be faster at it than me at this point.

  • High CPU Consumption when Displaying Animated GIFs

    Hi -
    Within our application we utilize a lot of the standard AJAX loading icons to indiciate that data is downloading/loading. What we've noticed, however, is that when animated GIFs are being displayed they are consuming between 5 and 8 percent of the CPU. I've confirmed it's definitely the GIF that is causing the CPU usage to increase so dramatically.
    Has anyone else experienced this? Do you have work arounds? Does anyone have any idea why performance is so bad on this?
    Does using an SWF instead help?
    Thanks.

    Hello Steve.
    Although I'm not really sure what you mean by "content plugins dialogue", you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • High CPU consumption with repaint while dragging

    Hi! I certainly hope someone can help me with this. I am building a graphical user interface for a graph with custom nodes and edges, the nodes being draggable. I have tried making each network component (node or edge) a JComponent. Now, I'm trying using only one JPanel to paint all the components. Either way, I find that dragging takes up too much CPU % especially when using full screen graphics, usually around 92%. And that is on a machine with >1.9GHz.
    It does not really make much of a difference when I paint outlines of the components while dragging. Any ideas about this? Thanks.
    My runnable test code is rather long so I've uploaded it to : http://web.mit.edu/jabos/www/SyncTest/GUILoad2.java.
    -Bosun

    Comments about changes to your code:
    1 - trouble in rendering with setOpaque(false). Set this to true and add super.paintComponent(g) in paintComponent to take care of background paint updates
    2 - had to doctor your ConnComp class; the constructor was under construction...
    3 - I'm using j2se 1.4 so I converted your:
    ArrayList generics to the old Object casts and
    the JFrame setPreferredSize to setSize
    This runs okay now. The highest cpu usage numbers I saw were 52% in full screen and 37% in regular mode (2.6 GHz).
    The painting part seems okay; I think the trouble is in excessive data storage and manipulation. I would re&#8211;design your program to eliminate all the type checking with the instanceof operator. Specifically I would try to use only one ArrayList for the node objects and draw the connection lines between them inside paintComponent depending on how a boolean is set, eg if(showLines). As an aside, GradientPaint is for fill operations and will not benefit your line display.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.ArrayList;
    * This demo paints all network components in a single JComponent
    * @author jabos
    public class DragTest extends JPanel {
         * all components
        public ArrayList comps;
        public ArrayList compsDragged; // actually only RectComps
         * arraylist of all connection components
        public ArrayList conncomps;
        public boolean dragging = false, repaintWhileDragging = true;
        Point2D initp = null;
        public JLabel repaintDrag;
        public DragTest() {
            repaintDrag = new JLabel("repaintWhileDragging : " + repaintWhileDragging);
            repaintDrag.setForeground(Color.MAGENTA);
            add(repaintDrag);
            add(new JLabel("Press \"R\" to change repaint protocols during dragging"));
            comps = new ArrayList();
            compsDragged = new ArrayList();
            conncomps = new ArrayList();
            addMouseMotionListener(new MouseMotionAdapter() {
                public void mouseDragged(MouseEvent e) {
                    //* // Remove initial slash to disable repainting while dragging
                    if (repaintWhileDragging) {
                        Point2D pp = e.getPoint();
                        AffineTransform t = AffineTransform.getTranslateInstance(
                                                    pp.getX() - initp.getX(),
                                                    pp.getY() - initp.getY());
                        initp = pp; // reset initp
                        for (int j = 0; j < compsDragged.size(); j++) {
                            Comp comp = (Comp)compsDragged.get(j);
                            if (comp instanceof RectComp)
                                comp.updateCompLocation(t);
                        // and again to update ConnComps
                        for (int j = 0; j < conncomps.size(); j++) {
                            Comp comp = (Comp)conncomps.get(j);
                            if (comp instanceof ConnComp)
                                comp.updateCompLocation(t);
                        dragging = true;
                        repaint();
                    dragging = true;
            addMouseListener(new MouseAdapter() {
                // does final repaint if dragging just finished
                public void mouseReleased(MouseEvent e) {
                    if (dragging) {
                        Point2D pp = e.getPoint();
                        AffineTransform t = AffineTransform.getTranslateInstance(
                                                    pp.getX() - initp.getX(),
                                                    pp.getY() - initp.getY());
                        for (int j = 0; j < compsDragged.size(); j++) {
                            Comp comp = (Comp)compsDragged.get(j);
                            if (comp instanceof RectComp)
                                comp.updateCompLocation(t);
                        // and again to update ConnComps
                        for (int j = 0; j < conncomps.size(); j++) {
                            Comp comp = (Comp)conncomps.get(j);
                            if (comp instanceof ConnComp)
                                comp.updateCompLocation(t);
                    repaint();
                    dragging = false;
                    setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
                // Updates list of components being dragged
                public void mousePressed(MouseEvent e) {
                    compsDragged.clear();
                    initp = e.getPoint();
                    for (int j = 0; j < comps.size(); j++) {
                        Comp comp = (Comp)comps.get(j);
                        if (comp.graphic.contains(initp))
                            compsDragged.add(comp);
                    setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));
            addKeyListener(new KeyAdapter() {
                public void keyReleased(KeyEvent e) {
                    if(e.getKeyCode() == KeyEvent.VK_R) {
                        repaintWhileDragging = !repaintWhileDragging;
                        repaintDrag.setText("repaintWhileDragging : " +
                                             repaintWhileDragging);
    //        setOpaque(false);
            setFocusable(true);
            requestFocusInWindow();
        public static void main(String[] args) {
            GraphicsDevice device =
                GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
            JFrame f = new JFrame("GUILOAD2", device.getDefaultConfiguration());
            //* // remove initial slash to disable full screen
            device.setFullScreenWindow(SwingUtilities.getWindowAncestor(f));
            //needs to be set AFTER fullscreenmode so that the toolbar is NOT draggable!
            f.setExtendedState(JFrame.MAXIMIZED_BOTH);
                // enable use of Look and Feel
                f.setUndecorated(true);    // Set false, EE is still minimizable
                f.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
            f.setBounds(GraphicsEnvironment.getLocalGraphicsEnvironment().
                                getMaximumWindowBounds());
            DragTest p = new DragTest();
            p.setBackground(Color.WHITE);
            RectComp[] rc = new RectComp[100];
            int n = -1, x = 30, y = 30, b = 100, inc = 40;
            // add REctComps
            for (int i = 0; i < 10; i++) {
                p.add(rc[++n] = new RectComp(new Point2D.Double(x += inc, y += inc),
                                             new Color(x % 255, y % 255, (b += 10) % 255)));
            x = 34; y = 32; b = 32;
            // add ConnComps
            while (n > 0) {
                p.add(new ConnComp(rc[n--], rc[n],
                                   new Color((x += inc) % 255, (y += inc) % 255,
                                             (b += inc) % 255),
                                   new Color((x += inc) % 255, (y += inc) % 255,
                                             (b += inc) % 255)));
            f.setContentPane(p);
            f.setSize(700, 700);
            makeFramex(f, false);
            /* // remove initial slash to disable full screen; Also, uncomment above
            f.setResizable(false);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setIgnoreRepaint(true);
            f.setVisible(true);
        public static void makeFramex(JFrame frame, boolean resizable) {
            frame.setSize(frame.getSize());
    //        frame.setResizable(resizable);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //        frame.pack();
            frame.setVisible(true);
         * Adds network component c to this simulation
         * @param c
        public void add(Comp c) {
            comps.add(c);
            if (c instanceof ConnComp) {
                conncomps.add((ConnComp)c);
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2D = (Graphics2D) g;
            g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                 RenderingHints.VALUE_ANTIALIAS_ON);
            for (int j = 0; j < comps.size(); j++) {
                Comp comp = (Comp)comps.get(j);
                //for (Comp i : dragging ? compsDragged : comps) {
                try {
                    g2D.setPaint(comp.color);
                    if (comp instanceof ConnComp) {
                        g2D.setStroke(((ConnComp) comp).compStroke);
                        g2D.draw(comp.graphic);
                    if (comp instanceof RectComp)
                        g2D.fill(comp.graphic);
                } catch (Exception e) {
                    e.printStackTrace();  //To change body of catch statement
                                          // use File | Settings | File Templates.
         * A network component that simulates a node
        private static class RectComp extends Comp {
            RectComp(Point2D centero, Paint c) {
                super(c);
                center = centero;
                graphic = new Ellipse2D.Double(center.getX() - radius,
                                  center.getY() - radius, radius * 2 - 2, radius * 2 - 2);
            public void updateCompLocation(AffineTransform t) {
                graphic = t.createTransformedShape(graphic);
                Rectangle2D r = graphic.getBounds2D();
                center = new Point2D.Double(r.getCenterX(), r.getCenterY());
                //System.out.println("newCenterX=" + r.getCenterX());
         * A network component that simulates a connection between two nodes
        private static class ConnComp extends Comp {
            Stroke compStroke;
            RectComp origin, destination;
            Paint color;
            ConnComp(RectComp origino, RectComp desto, Color c1, Color c2) {
                super(c1);
                if (c2 != null)
                    color = new GradientPaint(origino.center, c1, desto.center, c2);
                else
                    color = c1;
                graphic = new Line2D.Double(origino.center, desto.center);
                this.origin = origino;
                this.destination = desto;
                compStroke = new BasicStroke(3);
    //            updateCompLocation(new AffineTransform());
            public void updateCompLocation(AffineTransform t) {
                ((Line2D)graphic).setLine(origin.center, destination.center);
                if(color instanceof GradientPaint)
                    color = new GradientPaint(((Line2D)graphic).getP1(),
                                              ((GradientPaint)color).getColor1(),
                                              ((Line2D)graphic).getP2(),
                                              ((GradientPaint)color).getColor2());
                //System.out.println("newLineX:" + ((Line2D) graphic).getX1() +
                //                     "---" + ((Line2D) graphic).getX2());
         * demo Superclass for all network components
        private abstract static class Comp {
            Point2D center;
            Shape graphic;
            int radius = 20;
            Paint color;
            Comp(Paint c) {
                color = c;
             * Updates internal parameters of Comp necessary for correct repaint
             * @param t
            public abstract void updateCompLocation(AffineTransform t);
    }

  • CPU Consumption Problem?

    Hello all,
    I have a 13-inch mb aluminum with snow leopard 10.6 and had a question with a problem that I've been having recently. After doing some searching, I couldn't find anyone with the same problem.
    So basically, what happens is that my computer will be working perfectly fine and the cpu will be idling at 1-3% capacity, which is what it's supposed to do when you're only checking websites/doing word processing ect. Then all of the sudden, my CPU % usage jumps to 50-60% capacity and my laptop starts getting really hot (I have smcfancontrol and it says it's 78C degrees and the fan's speed is 7000rpm). I then proceed to the activity monitor to see what program(s) are sucking the CPU power, but to no avail. All of the processes that are showing aren't taking any more than 4-5% CPU power combined. What gives? This has happened to me twice already in the past 4 days, so I feel that it'll happen again.
    The quick fix is restarting my computer... But I was wondering if there's a more serious problem? Has anybody else experienced this? If so, how did you fix it? I appreciate all of your feedback. Thank you in advance!

    Thank you for your help all! I do have a brother 2170w and did notice the other day that it wasn't working (the wireless part) and had to print elsewhere. So I guess snow leopard is to blame? It all makes sense now, because yeah, I did try to print something after upgrading to snow leopard to no avail.
    Jay,
    I did download and install the new drivers, so hopefully it'll work. I wasn't however, able to find the previous drivers while doing a search in finder (I tried brother, br, and other variations). I just downloaded the new ones and installed it... Think it'll be a problem? Computer's working fine now.

  • Firefox 6 has high cpu consumption

    Hi,
    I have just upgraded from Firefox 5.x to 6.0. I am using Windows 7 32-bit on a Dell Laptop, Core 2 duo, 4 GB RAM.
    I have observed that FF seems to consume a lot more CPU than before.
    Also, the memory footprint keeps changing rapidly. I don't have a physical memory issue.
    The worrying factor is intermittent but unpredictable recurrence of high cpu usage when i open a new site, etc.
    Adobe plugin does work but it is a bug CPU hog.
    Please help provide a resolution as it seems like going back to 5.x is a better option at the moment since i didn't have much of an issue with FF 5.x.
    Thanks,
    Anand

    Same symptoms as well. Have tried starting in safemode, disabling addons etc. as detailed in solutions elsewhere on this site, but the problem remains. Have completely uninstalled and reinstalled Firfox as well, but no good.
    The problem happens instantly whenever I open a link in a new tab or have multiple tabs. The high load (95-100%) does not reduce from this point on and the only solution is to kill Firefox. I'm running XP SP3 on AMD 64 platform.

Maybe you are looking for