Java Process Consuming 100% of Server CPU

Hi,
We have a new instance of CQ5 (version 5.4) running on a Windows 2003 SP2 Server. For some reason, which we can't determine, after a period of time a Java process on the system begins to consume 100% of the CPU and the system becomes totally unresponsive. Has anyone seen this before? Is there a fix for this?
RK         

Does the it eventually recover on it's own? It's possible that the JVM is doing full garbage collection.  How big is your max heap size?  I suggest to add some garbage collection debugging in the JVM_OPTS to see if it is Java's garbage collection or not.  Might as well check the heap too, to see if it's running our of memory.
Example;
-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintTenuringDistribution -Xloggc:/tmp/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp
Ron

Similar Messages

  • Java process consuming 100% CPU

    I have two JVM running on my Application tier and both of them consuming 50% each of CPY resources. I searched and found some inactive sessions under them. Even after release those inactive sessions nothing has come down. Still 100% is there. Is there anything else I can check
    PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
    22018 oracle 46 10 10 783M 709M cpu0 303.8H 51.92% java
    22014 oracle 48 1 10 685M 613M run 233.3H 39.95% java

    Hi,
    Can you confirm your version of JDK and ATG patchlevel ? I've seen this as a problem which was partially addressed by moving to ATG RUP 5.
    Rgds,
    Rakesh

  • Clouds process consuming 100% of cpu

    Whenever MBP is not able to connect to internet, the cloudd process consumes 100% cpu.
    This is draining the battery in a very short time.
    Internet connectivity, either lack there of or because of corp. firewall rules send this process into 100% consumption.
    Only work around is to disable all items in iCloud control panel, which is painful for access and re-sync.
    Robert

    Does the it eventually recover on it's own? It's possible that the JVM is doing full garbage collection.  How big is your max heap size?  I suggest to add some garbage collection debugging in the JVM_OPTS to see if it is Java's garbage collection or not.  Might as well check the heap too, to see if it's running our of memory.
    Example;
    -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintTenuringDistribution -Xloggc:/tmp/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp
    Ron

  • Java process take 100% cpu

    Hello,
    I have a webapp running on Tomcat 5.0.28/RHEL 3.0. After some time (approximatively 1 hour), a java process take 100% cpu load and never stop, but the application do nothing.
    Some detail on my configuration :
    Distribution : Redhat Enterprise Linux 3.0 (updated)
    Kernel 2.4.21-37.0.1.ELsmp
    Glibc 2.3.2-95.37
    JVM : JRockit 1.4.2.08 (the last one)
    Tomcat : 5.0.28
    Server : 2*Xeon 3GHz HT, 2Go RAM
    JVM param : -Xmx:256m -Xms:256m
    Thanks for your answers ...

    Try taking thread dump (send a SIGQUIT to JRockit using "kill"). If you
    get a thread dump, the VM is alive, and it's probably your java program
    that's broken. In that case, make a JRA recording to see what's happening:
    http://e-docs.bea.com/jrockit/docs142/usingJRA/jra.html
    The methods pane is probably what you're looking for.
    If you don't get any thread dump when sending a SIGQUIT to JRockit,
    come back here.
    Regards //Johan
    Gr?goire Rolland wrote:
    Hello,
    I have a webapp running on Tomcat 5.0.28/RHEL 3.0. After some time (approximatively 1 hour), a java process take 100% cpu load and never stop, but the application do nothing.
    Some detail on my configuration :
    Distribution : Redhat Enterprise Linux 3.0 (updated)
    Kernel 2.4.21-37.0.1.ELsmp
    Glibc 2.3.2-95.37
    JVM : JRockit 1.4.2.08 (the last one)
    Tomcat : 5.0.28
    Server : 2*Xeon 3GHz HT, 2Go RAM
    JVM param : -Xmx:256m -Xms:256m
    Thanks for your answers ...

  • Firefox does not open when clicking on the icon, the firefox.exe process consumes 99 % of the CPU and my computer runs slowly.

    I have been a happy user of Firefox for many years. Around last April first I opened Firefox and was offered an update to v 4.42.0.0 which I accepted. Installation seemingly went well. I forget now exactly what happened but the result has been that ever since April 1 I haven’t been able to open the Firefox browser when clicking on the Firefox icon. My computer now was running very slowly. I tried to uninstall Firefox, but a popup told me I couldn’t because Firefox was in use. This confused me because I couldn’t see it being used. Only now I have found that on Task Manager processes that “firefox.exe” was consuming 99 % of the CPU. After removing firefox.exe by clicking End Process my computer ran better. I uninstalled Firefox I had on my computer and installed Firefox 5.0. Unfortunately I have the same problems: Firefox does not open when clicking on the icon, the firefox.exe process consumes 99 % of the CPU and my computer runs slowly.

    Born2die! Brilliant. I am a desktop clicker and never knew Firefox had a safe mode.
    Thank You!
    I was unable to start in safe mode initially. The second time I disabled all of the Add-Ons and she started up just fine. I enabled them one by one hoping to track down the culprit but the problem seems to have gone away.
    BTW I am running ver. 3.6.8 (in response to cor-el's earlier post) and
    Firefox is in the process of downloading 3.6.10 (which I am starting to think may have been what caused this whole problem to begin with)
    Incidentally, whats up with all of the Java Console Add Ons?
    I have:
    Java Console 6.0.11, Java Console 6.0.13, Java Console 6.0.15
    Java Console 6.0.17, Java Console 6.0.20, and Java Console 6.0.21
    What are they? Do I need them? Can I uninstall them? Is this due to using Open Office?
    Also, .NET Framework 0.0.0 Should I uninstall it?

  • Netstream consuming 100% of the CPU

    Hi friends,
    Netstream consuming 100% of the CPU of Mac OSX, and 55% of
    Linux
    Code:
    private function testInit():void
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var nsMict:NetStream = new NetStream(nc);
    nsMict.attachAudio(Microphone.getMicrophone());
    Someone sure how to solve it? I am using flash player 9.0.124
    Thank's!

    This is a bug:
    https://bugs.adobe.com/jira/browse/FP-259
    Thanks!

  • Java app. consuming 100% of PC resouces

    I have an application that works great with the exception that it comsumes all resouces on a PC running Windows 2000 or XP. When the application is running multitasking by the OS is nearly disabled. Looking at resouces consumed, the Java application is consuming nearly 100% of the CPU.
    Does it sound like a major problem with the application, i.e. memory leak? Are there any common mistakes in programming Java that causes this issue? How can I correct the problem?

    Memory leak is not likely.
    Sloppy programming could require too many resources - indeed occupying the PC unnecessarily:
    event handling etcetera. There you could look at changes to SwingUtilities.invokeLater.
    I would advise first to switch to the newest stable java, 1.4.
    First you might give the application a larger memory to start with:
    java -Xms100m -Xmx200m ....
    This would start the app with 100 MB and allow it to go to 200 MB.
    Start the app from command line, so you might see System.out and System.err.

  • Mail consumes 100% of my CPU power

    Thats at least my theory. Activity viewer shows that something called osascript takes 48% of the CPU and kernel_tasks takes the rest. system together ends up between 90-100% of the CPU. When I look for parent processes for osascript I end up in kernel_taskes so I think the osa is responsibel for the hole ting. When I start up maill.app it looks like osascript starts up.
    This is a crosspost because I think this now is a mail problem. But I realy dont know.
    Dont know what to do and this makes computer pretty much useless. Fan full speed all the time.
    Hers is a crashlog
    powerbook   Mac OS X (10.4.7)   2 gig RAM

    That's my CPU and ram use with itunes running a live even,mail open and safari for right you,also i have opeb twitter,skype,ichat and activity monitor and connect a external drive..

  • Downloading app causes storeagent process to consume 100% of a CPU core

    This has happened twice now.  Just downloaded Xcode 4.0.2 through the Mac App Store.  This is a 4.59 GB download that took more than ten minutes.  About 15% into the download, the storeagent process pegged a CPU core, and remained that way for the rest of the download.  The CPU temperature shot up and the fans were going full blast.  This must be an app store defect; there is no reason for any additional processing while the file is just downloading.  Has anybody else experience this problem?  I don't think you would notice it for a typical size application, but it should be obvious once you get over 1 GB.

    I'm certian this is related to the speed of the connection (On the fly decryption, whatever...) as I'm sat on 1Gb link with zero contention and it (storeagent) makes my machine completely unuseable as all the cores are basically pegged to 100%.

  • Java Process consumes my CPU - Why??

    I'm confused. I have an application where you click a button and a thread is created which loads a web page and extracts some information from it. I've posted the code below. However, after I click my button, my system practically locks up while this job is running. Anyone have any ideas why? I'm running on a PC with WindowsXP. No matter what this thing is doing, and since there is no disk access, shouldn't windows do it's thing and give the proper cpu time slice and not bog my system?? What gives??
    Thanks
         public boolean update() {
              Object[] stationNames = JGToolConfig.getStations();
              ArrayList itemData = hts.getPage("http://jossh.com/database/inventory/inventory.txt");
              Object[] array = itemData.toArray();
              for(int i=1; i< array.length; i++) {
                   StringTokenizer tokenizer = new StringTokenizer((String)array, ",");
                   String[] tokens = new String[5];
                   for(int j=0; tokenizer.hasMoreTokens() && j<5; j++) {
                        String str = tokenizer.nextToken();
                        int x = str.lastIndexOf("\n");
                        if(x>0) str = str.substring(0,x);
                        tokens[j] = str;
                   updateStation(tokens[0], tokens);     
              return true;          

    Thanks all, but please don't reply. I found the problem. I won't go into details, but as usual, the problem was some left-over code I thought I removed that was reading a file from disk a few hundred times. :-)

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

  • Many processes consumed in  ECC server when executing infopackage in BW

    Hi,
    I know this question was asked many times but I can't figure out why it's not working.
    In fact, when i execute an infopackage, a lot of dialog process are used in the backend , making the system not accessible (windows server)
    I tried to make some changes in SMQS and RSA1_TRFC_OPTION_SET but it has no effect in the system.
    Can someone please, explain step by step what can I do to configure the 2 systems ?
    Thanks a lot,
    Regards,
    Chea-Lie

    HI,
    You can maintain the Control Parameters for Data Load in your ECC system.
    Goto Transaction SBIW
    General Settings->Maintain Control Parameters for Data Transfer
    Refer OSS Note : 417307
    This should help.
    Please check the following documents on Load Performance.
    [Performance Tuning Massive SAP BW Systems - Tips & Tricks|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94]
    Do go through the checklist in the below document.
    [BW Performance Tuning|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/701382b6-d41c-2a10-5f82-e780e546d3b6]
    Regards,
    Gaurav

  • Java process didn't stop.

    hello,
    i'm runing oas10gR with Forms services. i have 2 java processes consuming 100 % of the cpu time ( nice time ).
    when a stop the oas with "opmnctl stopall" the java processes hagings didn't end !
    i'm asking why these java processes are spending all the time in "nice time" and where they didn't end ?

    Sounds like the processes are waiting for something (check out the logfiles in $ORACLE_HOME/opmn/logs). If you want to shutdown them forcefully you can issue opmnctl shutdown instead of opmnctl stopall.

  • Java consuming 100% cpu  urgent

    hi
    Users are complaining about application slowness to login when i check the top process in linux it shows java process consuming 99.9% of cpu.how can i check which process is consuming and what its doing exactly and how to prevent it
    with rgds
    shyam

    The recommended setting for JVM is as follows:
    - No more than 100 active users per JVM
    - No more than 1 active JVM per CPU (Ideally 1 JVM per 2 CPUs)
    - Make sure you have enough memory so your JVMs will be running without swapping
    For the max.heap memory, Oracle recommends:
    -ms128m -mx256m if you have 512 MB memory
    -ms256m -mx512m if you have more than 512 MB memory
    In addition, verify that you do the following in jserv.properties:
    - Make sure you have 'wrapper.bin.parameters=-DLONG_RUNNING_JVM=true'
    - Make sure you comment out 'wrapper.bin.parameters=-DCACHEMODE=LOCAL'

  • Weblogic cluster consumes 100% CPU and bringing server to its knees.

    I have BEA Weblogic 10.3.1 clustering as part of FMW 11g clustering. This is two node cluster on "Oracle VM" running OEL 4.0 with 4GB Memory and 4GB swap. Install seems to go with little difficulties like 100%CPU for short period but during the configuration always the Java thread consumes 100%.
    Now I am at a point where shared drive is created (Chapter 5.20 of EDG) for HA FileAdapter and Persistence store. Hitting same 100% CPU problem. Looks like thread locking situation.
    ^-- Holding lock: java.io.InputStreamReader@6215c5d[thin lock]
    ^-- Holding lock: java.io.InputStreamReader@6215c5d[thin lock]
    Also noticed the SWAP space is never being used though it has 4GB swap space. It brings the VM to its knees. Thanks in advance for any response.
    Here is the error stack
    ========================
    <Feb 4, 2010 8:23:56 AM EST> <Error> <WebLogicServer> <BEA-000337>
    <[STUCK] ExecuteThread: '1' for queue:
    'weblogic.kernel.Default (self-tuning)' has been busy for "346" seconds working on the request
    "weblogic.kernel.WorkManagerWrapper$1@62171ee", which is more than the configured time (StuckThreadMaxTime) of "300" seconds.
    Stack trace: Thread-22 "[STUCK] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'
    " <alive, in native, suspended, priority=1, DAEMON>
    jrockit.net.SocketNativeIO.readBytesPinned(SocketNativeIO.java:???)
    jrockit.net.SocketNativeIO.socketRead(SocketNativeIO.java:31)
    java.net.SocketInputStream.socketRead0(SocketInputStream.java:???)
    java.net.SocketInputStream.read(SocketInputStream.java:107)
    weblogic.utils.io.ChunkedInputStream.read(ChunkedInputStream.java:149)
    java.io.InputStream.read(InputStream.java:85)
    com.certicom.tls.record.ReadHandler.readFragment(Unknown Source)
    com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
    com.certicom.tls.record.ReadHandler.read(Unknown Source)
    ^-- Holding lock: com.certicom.tls.record.ReadHandler@6254fe1[thin lock]
    com.certicom.io.InputSSLIOStreamWrapper.read(Unknown Source)
    sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:250)
    sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:289)
    sun.nio.cs.StreamDecoder.read(StreamDecoder.java:125)
    ^-- Holding lock: java.io.InputStreamReader@6215c5d[thin lock]
    java.io.InputStreamReader.read(InputStreamReader.java:167)
    java.io.BufferedReader.fill(BufferedReader.java:105)
    java.io.BufferedReader.readLine(BufferedReader.java:288)
    ^-- Holding lock: java.io.InputStreamReader@6215c5d[thin lock]
    java.io.BufferedReader.readLine(BufferedReader.java:362)
    weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClient.java:286)
    weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClient.java:311)
    weblogic.nodemanager.client.NMServerClient.start(NMServerClient.java:90)
    ^-- Holding lock: weblogic.nodemanager.client.SSLClient@62164a2[thin lock]
    weblogic.nodemanager.mbean.StartRequest.start(StartRequest.java:75)
    weblogic.nodemanager.mbean.StartRequest.execute(StartRequest.java:45)
    weblogic.kernel.WorkManagerWrapper$1.run(WorkManagerWrapper.java:63)
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:198)
    weblogic.work.ExecuteThread.run(ExecuteThread.java:165)
    }

    Few things that u can try first off
    1. Turn off Native IO
    2 Use this flag
    -DUseSunHttpHandler=true
    3. This stack seems to suggest communication wid NM
    weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClient.java:286)
    weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClient.java:311)
    Can you stop ur Node Manger and see if it helps..
    If these doesnt help, contact Oracle Support..

Maybe you are looking for

  • My iphone 4s says it can't sync my itunes because its full when its actually not

    hi,  i am trying to sync my iphone 4s to my itunes (essentially new phone, new computer, old library) (my phone was synced to my old computer before this), but it won't work because it says it is too full.  The bar along the bottom of itunes and the

  • Spry vertical menu problem with IE

    We implemented the spry vertical menu for showing the categories of a products catalog. It has almost 1800 categories organizad at about 5 levels, some categories have about 30 subcategories. These categories are extrated from a database. It works in

  • Internal Profit (Between Two Profit Centers)

    Dear friends, My client has nearly 30 profit Centers (Each product/line) and final product of one profit center sya X is an in put of production process of another profit center say Y. Here problem is that Profit Center X wanted to claim some interna

  • How do I stop the date format from changing to US format?

    I have an excel doc that I've converted to pdf.  In the process the date format changed to mm/dd/yyyy.  How do I stop this from happening?

  • Mail Message

    I want to recieve when the person I send an email, recieves the email and then I want to recieve an alert when the person reads the email. Is this possible in Mail?