Ruby Process using 80% or more CPU

Granted, I'm running Leopard Server on an old machine, but still. they Ruby process is keeping the CPU pretty well pinned, as it regularly uses more that 80% CPU.
Is it doing OS work, or can I disable it if I am not using it? Any ideas on how?
CK

https://discussions.apple.com/message/23685234?tstart=0#23685234
Hope this helps you!!
Stuart

Similar Messages

  • Systemd-journal process using 100% of one cpu core after reboot

    journalctl -b showed
    "Process 2016 (virtuoso-t) dumped core."
    more than a few times and virtuoso-t would was using more cpu than it does most of the time.
    at 14 minutes of uptime systemd-journal stopped using 100% and went back to normal. Anyone know a way to figure out what happened here?
    update:
    systemd-coredump[3182]: Process 3133 (virtuoso-t) dumped core.
    systemd-journal[5407]: Permanent journal is using 2.6G (max allowed 4.0G, trying to leave 4.0G free of 50.7G available → current limit 4.0G).
    systemd[1]: systemd-journald.service watchdog timeout!
    systemd[1]: Starting Journal Service...
    systemd[1]: systemd-journald.service stop-sigterm timed out. Killing.
    systemd[1]: Starting Journal Service...
    systemd[1]: systemd-journald.service: main process exited, code=killed, status=9/KILL
    systemd[1]: Unit systemd-journald.service entered failed state.
    systemd[1]: systemd-journald.service has no holdoff time, scheduling restart.
    systemd[1]: Stopping Journal Service...
    systemd[1]: Starting Journal Service...
    systemd[1]: Started Journal Service.
    systemd-journal[5407]: Journal started
    dbus[365]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
    dbus[365]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
    systemd-coredump[3289]: Process 3235 (virtuoso-t) dumped core.
    it happened again here is what the journal was saying while it was happening (i removed lots of (virtuoso-t) dumped core that happened ... 10 or more times)
    Thanks in advance,
    Wolf Larson
    Last edited by wolflarson (2014-03-22 15:36:37)

    In the Newbie Corner of the forums, there are a few stickied threads that are recommended reads.  One of which is this one.
    If the logs are not too too much, then it can be posted here with code tags. If it is crazy big, pastebin it and then post the link.
    If this is really all the information it gives about the journal being nuts, then you might want to enable debug levels of logging for the journal and then see if you can gather more information that way.  This can either by done by using a drop-in snippet to the unit file, or by turning on debug levels for the entire system from the kernel command line.
    The journal is not designed in such a way that it can be continously written to.  There are safeguards in place to ensure that masively spamming services are cut off after a certain number of log messages in a given timeframe.  Additionally, even the flush from the journal in RAM to the disk is only done periodically.

  • Screen Sharing and WindowServer processes using 35-45% of CPU!!

    I have recently relocated and reconfigured my Apple network and computers in the house :1) MacBook Air dual display MBA with 20" cinema screen in the office, and 2) and Mac Mini connected to a large LCD TV in the living room.
    The plan now is to use the MBA as a primary computer and connect via wireless screen sharing to the MM so that I can monitor that system, run more intensive apps, watch EyeTV, file server tasks, etc.
    But now this has increased CPU and fan activity on the MBA beyond what I would expect. The activity monitor indicates that the Screen Sharing and WindowServer processes are using combined between 35-45% of the CPU (screen share process is a constant 25%!!).
    This is not good, and I wonder if it will be fixed in a future release. Any ideas or suggestions on how to limit the impact of screen sharing on CPU?

    It seems to be running better with system update, and use of a faster computer (now using the higher end mac book air)

  • Solaris 9: Xsun process using over 47% of CPU

    Anyone else having this problem?
    The /usr/openwin/bin/Xsun process is consistently using over 47% of the CPU
    on a Sun Fire V240 running Solaris 9. This system was just built last week
    with all recommended patches. In the past 24 hours it has accumulated 1341:35
    of execution time according to ps. It is now up to 1350:08 in the time it took me
    to finish this message.

    I had a similar problem with my v240 with my XVR-100 frame buffer, and was told that there is an incident that is not closed in a security patch for this, and that the work around was as follows:
    mkdir /etc/dt/config
    cp /usr/dt/config/Xconfig /etc/dt/config
    cp /usr/dt/config/Xsetup /etc/dt/config
    add "/usr/openwin/bin/xset -fbpm" to the end of /etc/dt/config/Xsetup
    edit /etc/dt/config/Xconfig and change
    Dtlogin*setup: Xsetup
    to
    Dtlogin*setup: /etc/dt/config/Xsetup

  • Long running processes using a lot of CPU

    Hi all,
    We have a clustered environment and on both the DB nodes there are processes that is taking a lot of CPU and runs a really long time. The load of the servers get really high and performance degrades drastically.
    I've traced the processes and the module is usually a combination of the following:
    icx.por.rcv.server.ReceiveItemsAM
    icx.por.reqmgmt.server.ReqMgmtAM
    I know it has something to do with Purchase Orders.
    Can someone please give me more info on this processes and what I can do about them?
    Thanks in advance.

    ..Step by Step to fix your Mac
    They will just say it's a software problem you need to fix most likely.
    However if you have exhausted your software fixes and/or Hardware Test gives something, it could be a hardware problem, but likely it's software for what your mentioning.

  • Sockd process uses a lot of CPU time

    Hi,
    I'm running the Sun Java System Web Proxy Server version 4.02 on a SunFire V210 dual processor box running Solaris 10 with the default socks5.conf for testing.
    Just browsing a few web pages in Firefox or IE using the socks proxy boosts CPU usage from the sockd process to a staggering 50% and stay there for several minutes.
    Comparing with the old NEC reference Socks5 daemon the Sun version is really performing badly.
    The system is pretty standard though I have tuned /etc/system and the tcp stack using recommendations in the proxy administration manual. All Solaris 10 patches are installed.
    prstat output:
       PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
    24519 proxy    6664K 4384K cpu1     0   10   0:11:18  50% sockd/43Any ideas what's wrong or do I have to stick with the old NEC reference daemon?
    Regards
    Kasper L�vschall

    Using:
    truss -dlfo truss.out ./sockd-wdog
    Where things begin to happen:
    5259/1:          11.2858     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
    5259/1:          12.2958     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
    5259/1:          13.3058     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
    5259/1:          14.3158     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
    5259/2:          15.1858     pollsys(0xFEAEFDC8, 1, 0xFEAEFD58, 0x00000000)     = 0
    5259/1:          15.3258     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
    5259/2:          pollsys(0xFEAEFDC8, 1, 0xFEAEFD58, 0x00000000) (sleeping...)
    5259/1:          lwp_park(0xFFBFF290, 0)          (sleeping...)
    5259/1:          16.3359     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
    5259/1:          lwp_park(0xFFBFF290, 0)          (sleeping...)
    5259/1:          17.3459     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
    5259/2:          18.2382     pollsys(0xFEAEFDC8, 1, 0xFEAEFD58, 0x00000000)     = 1
    5259/2:          18.2385     accept(3, 0xFEAEFEC8, 0xFEAEFE64, SOV_DEFAULT)     = 5
    5259/2:          18.2386     lwp_unpark(43)                         = 0
    5259/43:     18.2386     lwp_park(0x00000000, 0)                    = 0
    5259/2:          18.2388     accept(3, 0xFEAEFEC8, 0xFEAEFE64, SOV_DEFAULT)     Err#11 EAGAIN
    5259/43:     18.2389     getsockname(5, 0xFE5AFEA8, 0xFE5AFDA4, SOV_DEFAULT) = 0
    5259/43:     18.2391     getpeername(5, 0xFE5AFE38, 0xFE5AFDA4, SOV_DEFAULT) = 0
    5259/43:     18.2391     read(5, 0x00063B7E, 1)                    Err#11 EAGAIN
    5259/43:     18.2407     pollsys(0xFE5AFD08, 1, 0xFE5AFCA0, 0x00000000)     = 1
    5259/43:     18.2408     read(5, "04", 1)                    = 1
    5259/43:     18.2409     read(5, "01\0 P BF9 ] c", 7)               = 7
    5259/43:     18.2411     read(5, " k l\0", 255)                    = 3
    5259/43:     18.2412     write(4, " [ 0 1 / M a r / 2 0 0 6".., 88)     = 88
    5259/43:     18.2413     so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, "", SOV_DEFAULT) = 6
    5259/43:     18.2414     fcntl(6, F_GETFL)                    = 2
    5259/43:     18.2415     fcntl(6, F_SETFL, FWRITE|FNONBLOCK)          = 0
    5259/43:     18.2416     bind(6, 0xFE5AF980, 16, SOV_SOCKBSD)          = 0
    5259/43:     18.2418     connect(6, 0xFE5AF910, 16, SOV_DEFAULT)          Err#150 EINPROGRESS
    5259/43:     18.2970     pollsys(0xFE5AF798, 1, 0xFE5AF730, 0x00000000)     = 1
    5259/43:     18.2971     getsockopt(6, SOL_SOCKET, SO_ERROR, 0xFE5AF6D0, 0xFE5AF6D4, SOV_DEFAULT) = 0
    5259/43:     18.2972     getsockname(6, 0xFE5AF980, 0xFE5AF8A4, SOV_DEFAULT) = 0
    5259/43:     18.2973     write(5, "\0 Z918782E1 511", 8)               = 8
    5259/43:     18.2974     lwp_unpark(3)                         = 0
    5259/3:          18.2974     lwp_park(0x00000000, 0)                    = 0
    5259/3:          18.2977     brk(0x00064850)                         = 0
    5259/3:          18.2977     brk(0x00078850)                         = 0
    5259/3:          18.2981     pollsys(0xFEACF458, 50, 0xFEACF3E8, 0x00000000)     = 0
    5259/3:          18.2982     pollsys(0xFEACF458, 50, 0xFEACF3E8, 0x00000000)     = 0
    5259/3:          18.2983     pollsys(0xFEACF458, 50, 0xFEACF3E8, 0x00000000)     = 0Then loades of pollsys(0xFEACF458, 50, 0xFEACF3E8, 0x00000000)     = 0 until I kill the daemon - seems like they are killing the server?
    Thanks,
    Kasper

  • Safari using 100% or more CPU

    Safari Web Content is hammering my CPU (usually over 100%) on certain web pages - for example:
    http://www.tigerdirect.com/sectors/campaigns/include/events/2013/marchmania/inde x.asp
    The above link is to TigerDirect website March madness sweeps.  I typically visit to put in my entry into the sweeps and you can "vote" on items to get them into the next round.
    My equipment: MacBook 3.1, 2.2Ghz dual processor, recently upgraded to 4GB (thinking more RAM may help), I've previously replaced my hard drive so have plenty of space (I'm using maybe just over 25% of disk space), I am running Snow Leopard 10.6.8 and using Safari 5.1.8
    Flash Player is updated.  I have also run the software update and nothing needs updating.  In addition I have tried disabling Java to see if that helps and it does not.  As mentioned above I even tried a RAM upgrade and although the computer seems to run faster now, the Safari web browser still lags at times and then completely locks up on pages like the one above.  I also have tried changing DNS settings and that sometimes seems to help but not always.
    The above is just an example as it seems to appear quite a bit on other pages as well - my wife uses Safari to access her college studies and she is always complaining how slow the computer is.
    What I have noticed is that Safari will jump to over 100% CPU and then as it comes down a bit I also notice kernel_task using a high amount of CPU but not over 100%.  When I run Firefox it doesn't get that high, even on the above page.
    I'm hoping by showing an example someone with a bit more knowledge can shed some light on why Safari just seems to be stuck looping when I navigate to that page.
    Thanks in advance!

    https://discussions.apple.com/message/23685234?tstart=0#23685234
    Hope this helps you!!
    Stuart

  • CSCsi78581 - Hulc LED Process uses 10-15 percent CPU on Catalyst 3750/3560 - 10

    I have the same issue, but now is in 3750E with IOS
    15.0(1)SE3 does anybody see this bug in this version of IOS ?
          345433434433338833333333444433353433343334433433333533796763
          829698281199793397776998091576799099908973089099999499163527
      100                                                        * 
       90                                                        * 
       80               **                                       * *
       70               **                                      ** *
       60   *           **               *                      ****
       50   **          **         * *   *                   *  *##*
       40 *###**#******###*********###****###**#***##*##*###########
       30 ##########################################################
       20 ##########################################################
       10 ##########################################################
         0....5....1....1....2....2....3....3....4....4....5....5....6
                   0    5    0    5    0    5    0    5    0    5    0
                   CPU% per minute (last 60 minutes)
                  * = maximum CPU%   # = average CPU%
    173  1360214457   674705267       2016 19.68% 19.77% 19.76%   0 Hulc LED Process

    I see this issue on a Catalyst 3560X-48P running IOS 15.0(2)SE2.
    switch#show proc cpu sorted
    CPU utilization for five seconds: 44%/0%; one minute: 42%; five minutes: 41%
    PID Runtime(ms)     Invoked      uSecs   5Sec   1Min   5Min TTY Process
    171  3074931895   362854359       8474 20.31% 20.10% 20.00%   0 Hulc LED Process

  • Plugin-container process using 50+% CPU

    There is some process called plugin-container initiated by firefox/thunderbird that sometimes uses 50% or more CPU.
    Someone has this problem too?
    Thanks in advance.

    You can also try a Firefox plugin called flashblock.  I think it's also available in the AUR.  It requires a single click to allow flash, and you can whitelist certain sites.
    You might also look at Adblock Plus.

  • While being idle online for a few minutes, why does Firefox start cyclically using 50% to 5% CPU resources, with a 10 to 1, hi to lo ratio

    This behavior became apparent after the last couple of Firefox version updates. Current Firefox version is 21.0. My PC is an IBM ThinkCentre running @ 3.0 Ghz Intel CPU with 1.5 Gigs PC3200 DDR ram. With or without any other Windows apps open, whether I'm on line just idling on my home page (Google) or any other web page or entering / receiving data, several minutes into a session, the MS XP pro SP3 task manager shows Firefox cyclically using 50% (and more) CPU resources for 8-10 seconds then 1-5% CPU resources for 1-2 seconds. Closing & restarting Firefox, allows me a few minutes of speedy surfing. My ISP is AT&T 2nd tier DSL with a download thruput of 300 (+) MB (not Mb) / second (altho, most of the time I'm just viewing a web page or idling, without downloading or uploading any data).
    What has changed? My PC & all of its software have remained the same with the exception of MS security updates, Adobe Reader updates, & Firefox updates (without adding any additional plug ins, add ons, etc., with each update).
    What the...! For the past several minutes that I've been inputting data here, the task manager showed a jump of only 13% cpu usage (ever so briefly) by Firefox & only then when I switched between the task manager & Firefox. Intermittent anomalies are gonna be the death of me...
    Well, this is an annoyance, albeit an intermittent one. Ah, I pine for the days when I heard about & believed in "seamless integration"...any thots that might help resolve this issue sure would be appreciated.

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • How to kill Forms Runaway Process using 95% CPU and running for 2 hours.

    We had a situation at E-Business Suite customer (using Oracle VM server) where some of Form processes were not being cleared by form timeout settings automatically.
    Also when user exits the form session from front end, the linux form process (PID) and DB session did not exit properly, so they got hung.
    They were spiking CPU and memory usage and causing e-business suite to perform slowely and ultimately causing VM host to reboot the production VM guest (running on Linux).
    We could see the form processes (PIDs) using almost 100% cpu with "top" command and running for a long time.
    Also we verified those Form Sessions did not exist in the application itself.
    ie. Using from Grid Control -> OAM-> Site Map -> Monitoring (tab) -> "Form Sessions".
    It means that we could safely kill that form process from Linux using "kill -9 <PID>" command.
    But that required a continuous monitoring and manual DBA intervention as customer is 24x7 customer.
    So, I wrote a shell script to do the following;
    •     Cron job runs every half an hour 7 days a week which calls this shell script.
    •     Shell script runs and tries to find "top two" f60webmx processes (form sessions) using over 95% cpu with 2 minutes interval.
    •     If no process is found or CPU% is less than 95%, it exits and does nothing.
    •     If top process is found, it searches for its DB session using apps login (with hidden apps password file - /home/applmgr/.pwd).
    a.     If DB session is NOT found (which means form process is hung), it kills the process from unix and emails results to <[email protected]>
    b.     If DB session is found, it waits for 2 hours so that form process times automatically via form session timeout setting.
    It also emails the SQL to check the DB session for that form process.
    c.     If DB session is found and it does not timeout after 2 hours,
    it kills the process from unix (which in turn kills the DB session). Output is emailed.
    This are the files required for this;
    1. Cron job which calls the shell script looks like this;
    # Kill form runaway process, using over 95% cpu having no DB session or DB session for > 2hrs
    00,30 * * * * /home/applmgr/forms_runaway.sh 2>&1
    2. SQL that this script calls is /home/applmgr/frm_runaway.sql and looks like;
    set head off
    set verify off
    set feedback off
    set pagesize 0
    define form_client_PID = &1
    select count(*) from v$session s , v$process p, FND_FORM_SESSIONS_V f where S.AUDSID=f.audsid and p.addr=s.paddr and s.process='&form_client_PID';
    3. Actual shell script is /home/applmgr/forms_runaway.sh and looks like;
    # Author : Amandeep Singh
    # Description : Kills runaway form processes using more than 95% cpu
    # and Form Session with no DB session or DB session > 2hrs
    # Dated : 11-April-2012
    #!/bin/bash
    . /home/applmgr/.bash_profile
    PWD=`cat ~/.pwd`
    export PWD
    echo "`date`">/tmp/runaway_forms.log
    echo "----------------------------------">>/tmp/runaway_forms.log
    VAR1=`top -b -u applmgr -n 1|grep f60webmx|grep -v sh|grep -v awk|grep -v top|sort -nrk9|head -2|sed 's/^[ \t]*//;s/[ \t]*$//'| awk '{ if ($9 > 95 && $12 = "f60webmx") print $1 " "$9 " "$11 " "$12; }'`
    PID1=`echo $VAR1|awk '{print $1}'`
    CPU1=`echo $VAR1|awk '{print $2}'`
    TIME1=`echo $VAR1|awk '{print $3}'`
    PROG1=`echo $VAR1|awk '{print $4}'`
    PID_1=`echo $VAR1|awk '{print $5}'`
    CPU_1=`echo $VAR1|awk '{print $6}'`
    TIME_1=`echo $VAR1|awk '{print $7}'`
    PROG_1=`echo $VAR1|awk '{print $8}'`
    echo "PID1="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    echo "PID_1="$PID_1", CPU%="$CPU_1", Running Time="$TIME_1", Program="$PROG_1>>/tmp/runaway_forms.log
    echo " ">>/tmp/runaway_forms.log
    sleep 120
    echo "`date`">>/tmp/runaway_forms.log
    echo "----------------------------------">>/tmp/runaway_forms.log
    VAR2=`top -b -u applmgr -n 1|grep f60webmx|grep -v sh|grep -v awk|grep -v top|sort -nrk9|head -2|sed 's/^[ \t]*//;s/[ \t]*$//'| awk '{ if ($9 > 95 && $12 = "f60webmx") print $1 " "$9 " "$11 " "$12; }'`
    PID2=`echo $VAR2|awk '{print $1}'`
    CPU2=`echo $VAR2|awk '{print $2}'`
    TIME2=`echo $VAR2|awk '{print $3}'`
    PROG2=`echo $VAR2|awk '{print $4}'`
    PID_2=`echo $VAR2|awk '{print $5}'`
    CPU_2=`echo $VAR2|awk '{print $6}'`
    TIME_2=`echo $VAR2|awk '{print $7}'`
    PROG_2=`echo $VAR2|awk '{print $8}'`
    HRS=`echo $TIME1|cut -d: -f1`
    exprHRS=`expr "$HRS"`
    echo "PID2="$PID2", CPU%="$CPU2", Running Time="$TIME2", Program="$PROG2>>/tmp/runaway_forms.log
    echo "PID_2="$PID_2", CPU%="$CPU_2", Running Time="$TIME_2", Program="$PROG_2>>/tmp/runaway_forms.log
    echo " ">>/tmp/runaway_forms.log
    # If PID1 or PID2 is NULL
    if [ -z ${PID1} ] || [ -z ${PID2} ]
    then
    echo "no top processes found. Either PID is NULL OR CPU% is less than 95%. Exiting...">>/tmp/runaway_forms.log
    elif
    # If PID1 is equal to PID2 or PID1=PID_2 or PID_1=PID2 or PID_1=PID_2
    [ ${PID1} -eq ${PID2} ] || [ ${PID1} -eq ${PID_2} ] || [ ${PID_1} -eq ${PID2} ] || [ ${PID_1} -eq ${PID_2} ];
    then
    DB_SESSION=`$ORACLE_HOME/bin/sqlplus -S apps/$PWD @/home/applmgr/frm_runaway.sql $PID1 << EOF
    EOF`
    echo " ">>/tmp/runaway_forms.log
    echo "DB_SESSION ="$DB_SESSION >>/tmp/runaway_forms.log
    # if no DB session found for PID
    if [ $DB_SESSION -eq 0 ] then
    echo " ">>/tmp/runaway_forms.log
    echo "Killed Following Runaway Forms Process:">>/tmp/runaway_forms.log
    echo "-------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "PID="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    kill -9 $PID1
    #Email the output
    mailx -s "Killed: `hostname -a` Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    else
    # If DB session exists for PID
    if [ ${exprHRS} -gt 120 ]; then
    echo $DB_SESSION "of Database sessions exist for this forms process-PID="$PID1". But its running for more than 2 hours. ">>/tmp/runaway_forms.log
    echo "Process running time is "$exprHRS" minutes.">>/tmp/runaway_forms.log
    echo "Killed Following Runaway Forms Process:">>/tmp/runaway_forms.log
    echo "-------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "PID="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    kill -9 $PID1
    #Email the output
    mailx -s "`hostname -a`: Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    else
    echo "Process running time is "$exprHRS" minutes.">>/tmp/runaway_forms.log
    echo $DB_SESSION "of Database sessions exist for PID="$PID1" and is less than 2 hours old. Not killing...">>/tmp/runaway_forms.log
    echo "For more details on this PID, run following SQL query;">>/tmp/runaway_forms.log
    echo "-----------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "set pages 9999 lines 150">>/tmp/runaway_forms.log
    echo "select f.user_form_name, f.user_name, p.spid DB_OS_ID , s.process client_os_id,, s.audsid, f.PROCESS_SPID Forms_SPID,">>/tmp/runaway_forms.log
    echo "to_char(s.logon_time,'DD-Mon-YY hh:mi:ss'), s.seconds_in_wait">>/tmp/runaway_forms.log
    echo "from v\$session s , v\$process p, FND_FORM_SESSIONS_V f">>/tmp/runaway_forms.log
    echo "where S.AUDSID=f.audsid and p.addr=s.paddr and s.process='"$PID1"' order by p.spid;">>/tmp/runaway_forms.log
    mailx -s "`hostname -a`: Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    fi
    fi
    else
    #if PID1 and PID2 are not equal or CPU% is less than 95%.
    echo "No unique CPU hogging form processes found. Exiting...">>/tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    fi
    If you have the same problem with some other unix and DB processes, the script can be easily modified and used.
    But use this with thorough testing first (by commenting out <kill -9 $PID1> lines.
    Good luck.
    Edited by: R12_AppsDBA on 19/04/2012 13:10

    Thanks for sharing the script!
    Hussein

  • Query to find out which process consuming more cpu?

    Hi All,
    some one please tell me the query to find out which process is consuming more
    cpu resources?
    Thanks and Regards
    Srikanth

    Use V$SESSTAT to determine which sessions are using most CPU, and investigate what SQL these users/sessions are executing:
    SQL> select ss.sid, se.command, ss.value CPU, se.username, se.program
    from v$sesstat ss, v$session se
    where ss.statistic# in
    (select statistic#
    from v$statname
    where name = 'CPU used by this session')
    and se.sid=ss.sid
    order by ss.value desc;

  • "airport" process uses all of the memory an cpu

    After I reinstalled my MacBook and updated to the latest version of Tiger (10.4.8) my airport network behaves very strange. When I boot my MacBook or disconnect/connect my Airport network a process called "airport" is consuming all the CPU and memory. It uses one core exclusivly and gows to 1,2 GByte of RAM (even more virtual Memory). This slows down the macbook to almost still and heats up the CPU.
    The only thing I can do is to kill the process. Then everything works fine. But this is annoying.
    It seems to make no difference if I use a wireless LAN or not. When airport is enabled then this bug occurs.

    On this thread,
    http://discussions.apple.com/thread.jspa?messageID=349
    2852, people that have Check Point Software's
    SecureClient are reporting the airport process using
    ~95% of CPU time.
    I had SecureClient installed and I can confirm that
    if you uninstall SecureClient, the airport process
    works normally again. I don't know if this is the
    only source of this problem, but if you happen to
    have SecureClient, then you might want to uninstall
    and confirm if this solves your problem.
    Also I would be curious if anyone is having this
    problem that has never had SecureClient, or any 3rd
    party VPN software.
    I can confirm that at least some of my problem with the "airport" process was related to VPN software. After uninstalling the Cisco VPN client, problems dramatically reduced. Interestingly, I still have the Checkpoint client installed, but only rarely see problems with "airport".
    MBP 2.0 GHz   Mac OS X (10.4.8)  

  • Nmbd process using up 80+% of my CPU

    Since upgrading to 10.5.5 my MacBook pro's fans have been going wild running at 5,000+ rpm. Looking in Activity monitor I see nmbd process hogging all my CPU. Can I safely kill this?
    thanks.

    Ok it started doing it again so the Samba install wasn't the real fix, must have just been lucky at the time.
    I manually quit the process using Activity Monitor and immediately the fans slowed right down. But within about 1.5mins the process restarts automatically and the fans go full speed again.
    This is really bugging me now, and killing my battery time when the fans are maxed out. Any more ideas?
    Can I stop the service restarting? Do I need this service?
    Message was edited by: FlatDog

  • Using threads in a process of two or more tasks concurrently?

    Dear,
    I need to develop through a Java application in a process that allows the same process using Threads on two or more tasks can be executed concurrently. The goal is to optimize the runtime of a program.
    Then, through a program, display the behavior of a producer and two consumers at runtime!
    Below is the code and problem description.
    Could anyone help me on this issue?
    Sincerely,
    Sérgio Pitta
    The producer-consumer problem
    Known as the problem of limited buffer. The two processes share a common buffer of fixed size. One, the producer puts information into the buffer and the other the consumer to pull off.
    The problem arises when the producer wants to put a new item in the buffer, but it is already full. The solution is to put the producer to sleep and wake it up only when the consumer to remove one or more items. Likewise, if the consumer wants to remove an item from the buffer and realize that it is empty, he will sleep until the producer put something in the buffer and awake.
    To keep track of the number of items in the buffer, we need a variable, "count". If the maximum number of items that may contain the buffer is N, the producer code first checks whether the value of the variable "count" is N. If the producer sleep, otherwise, the producer adds an item and increment the variable "count".
    The consumer code is similar: first checks if the value of the variable "count" is 0. If so, go to sleep if not zero, removes an item and decreases the counter by one. Each case also tests whether the other should be agreed and, if so, awakens. The code for both producer and consumer, is shown in the code below:
    #define N 100                     / * number of posts in the buffer * /
    int count = 0,                     / * number of items in buffer * /
    void producer(void)
    int item;
    while (TRUE) {                    / * number of items in buffer * /
    produce_item item = ()           / * generates the next item * /
    if (count == N) sleep ()           / * if the buffer is full, go to sleep * /
    insert_item (item)                / * put an item in the buffer * /
    count = count + 1                / * increment the count of items in buffer * /
    if (count == 1) wakeup (consumer);      / * buffer empty? * /
    void consumer(void)
    int item;
    while (TRUE) {                    / * repeat forever * /
    if (count == 0) sleep ()           / * if the buffer is full, go to sleep * /
    remove_item item = ()           / * generates the next item * /
    count = count - 1                / * decrement a counter of items in buffer * /
    if (count == N - 1) wakeup (producer)      / * buffer empty? * /
    consume_item (item)      / * print the item * /
    To express system calls such as sleep and wakeup in C, they are shown how to call library routines. They are not part of standard C library, but presumably would be available on any system that actually have those system calls. Procedures "insert_item and remove_item" which are not shown, they register themselves on the insertion and removal of the item buffer.
    Now back to the race condition. It can occur because the variable "count" unfettered access. Could the following scenario occurs: the buffer is empty and the consumer just read the variable "count" to check if its value is 0. In that instant, the scheduler decides to stop running temporarily and the consumer starting to run the producer. The producer inserts an item in the buffer, increment the variable "count" and realizes that its value is now 1. Inferring the value of "count" was 0 and that the consumer should go to bed, the producer calls "wakeup" to wake up the consumer.
    Unfortunately, the consumer is not logically asleep, so the signal is lost to agree. The next time the consumer to run, test the value of "count" previously read by him, shall verify that the value is 0, and sleep. Sooner or later the producer fills the whole buffer and also sleep. Both sleep forever.
    The essence of the problem is that you lose sending a signal to wake up a process that (still) not sleeping. If he were not lost, everything would work. A quick solution is to modify the rules, adding context to a "bit of waiting for the signal to wake up (wakeup waiting bit)." When a signal is sent to wake up a process that is still awake, this bit is turned on. Then, when the process trying to sleep, if the bit waiting for the signal to wake up is on, it will shut down, but the process will remain awake. The bit waiting for the signal to wake up is actually a piggy bank that holds signs of waking.
    Even the bit waiting for the signal to wake the nation have saved in this simple example, it is easy to think of cases with three or more cases in which a bit of waiting for the signal to wake up is insufficient. We could do another improvisation and add a second bit of waiting for the signal to wake up or maybe eight or 32 of them, but in principle, the problem still exists.

    user12284350 wrote:
    Hi!
    Thanks for the feedback!
    I need a program to provide through an interface with the user behavior of a producer and two consumers at runtime, using Threads!So hire somebody to write one.
    Or, if what you really mean is that you need to write such a program, as part of your course work, then write one.
    You can't just dump your requirements here and expect someone to do your work for you though. If this is your assignment, then you need to do it. If you get stuck, ask a specific question about the part that's giving you trouble. "How do I write a producer/consumer program?" is not a valid question.

Maybe you are looking for

  • (Need Help) how to clear the recently opened file list on Flash Player 11?

    excuse me pals, may i ask how to clear recently opened file list under "File" tab on Flash Player 11 (the standalone player) ? i've tried to browse my registry but i can't find the solution (and i can't find the .mru files containg the list). my OS i

  • IE displays differently than on browserlab

    A specific page oon a site I am building is not rendering correctly in EI, EI is not seeing the Javascripts mycarousel or lightbox. In browserlab the carousel is correct. Just wondering if there is some adjustment i need to make on my EI program for

  • Different Footnote Styles within one document

    I work in InDesign 5.5. Currently I'm working on a project that requires different footnote styles within one document (1, 2, 3, . . . and a, b, c, . . .). How can I set them up as different styles? If I make a change in the Document Footnote Style s

  • BB Curve 8520 : Too many files per directory ?

    Hello, I recently bought a 16 GB micro-SD card, and formatted it for my BlackBerry Curve 8520, but when I try to copy the entire content of my music folder (about 2000 files) in the card, my BlackBerry tells me the card contains some errors and i nee

  • Cannot connect C3548XL to CNA community.

    Hello, I have a WS-C3548-XL-EN switch running ios v12.0(5)WC17 (fc1) that I can not get to connect into a community in CNA v6.1. I have reset the switch to 'factory defaults', set the IP, SNM, and Default gateway. From other posts I saw that from the