JVM CPU USAGE

I am working on load tests for c to jni to java. While doing these tests, it appears as if the first or initial instantiation of a class hits the jvm the hardest & uses any where from 25 % to 15 % of the cpu. This number eventually goes down, dropping to around 8.7% in the first few seconds then slowing dropping to .6 after 2 minutes. It takes ruffly 45 minutes for it to drop to 0.0 & stay there. Subsequent hits do not appear to affect this number greatly once it has leveled out, so after the initial hit, we are good to go.
The issue is that we have 300 users on unix. Approximately 2/3 of those users will login approximately the same time. I can drop the number to .8 if I delay 60 seconds prior to instantiating the first class. Is there anyway to get around this issue. Are there some settings in the jvm that I could utilize to drop this number? I have searched the internet & not found anything useful. Is this just typical of the jvm? Any help or insights would be greatly appreciated!
Thanks, Janet.

I am working on load tests for c to jni to java.
While doing these tests, it appears as if the first
or initial instantiation of a class hits the jvm the
hardest & uses any where from 25 % to 15 % of theDo you mean that you've observed that the initial instantiation of any class takes more time than the subsequent ones? It might be class load (in many cases, a class would be loaded when a first instance of this class is created). Or if you include in "instantiation" the execution of the constructor code, and for some classes constructors are large enough, then what you see may be initial interpreted execution of the constructor (maybe combined with class loading), that takes much time. Then this constructor and/or the code it calls gets compiled into machine code, which reduces execution time.
BTW, how (which tool/method) do you measure that class instantiation uses 25% of CPU time? Percentage of CPU time seems like not the most appropriate metrics for such a (normally short) event.
cpu. This number eventually goes down, dropping to
around 8.7% in the first few seconds then slowing
dropping to .6 after 2 minutes. It takes ruffly 45
minutes for it to drop to 0.0 & stay there.
Subsequent hits do not appear to affect this number
greatly once it has leveled out, so after the initial
hit, we are good to go.
The issue is that we have 300 users on unix.
Approximately 2/3 of those users will login
approximately the same time. I can drop the number^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Each starting his/her own JVM or what? Why long first instantiation time affects each of them, not just the first one?
to .8 if I delay 60 seconds prior to instantiating
the first class. Is there anyway to get around this
issue. Are there some settings in the jvm that IIf you have multiple JVMs indeed, an ideal solution would be a "multitasking JVM" like the experimental one called MVM, once developed at Sun, but still not productized after a few years. It works as kind of a Java-level OS, capable of starting multiple applications, well isolated from each other, within a single JVM. Otherwise, I can only suggest to look at your code and check why this instantiation takes that much time, and how the code can be improved. Perhaps some things can be delayed or done later on demand, etc.
could utilize to drop this number? I have searched
the internet & not found anything useful. Is this
just typical of the jvm? Any help or insights would
be greatly appreciated!
Thanks, Janet.

Similar Messages

  • Determining where jvm.dll is + extensive CPU usage

    Hi,
    I am trying to create a JNI wrapper for my java application. I have reached the stage where I can launch the program, providing I have the path to jvm.dll in my path variable.
    I was wondering if there was any way to determine this path at runtime, seeming as it is highly unlikely anyone using this program would have it pre-set. I was thinking I could use run a command from within the program to set the path variable temporarily, however how would I determine where their javavm was installed?
    Is there no way of shipping the dll with the program?
    Also when running my java program through the JNI wrapper it uses about 85 - 90% of my CPU whereas when running it w/o the cpu usage is nominal (about 2 - 10%)
    Why is this?

    Sorry for the lack of response... Been doing other things and forgot about this post...
    First you can search for current version but if your Java >app has a mandatory min version
    that must be greater than the current version found then >you could search the keys for max version to see if it fits >to use.My program requires j1.6 though could be downgraded to req 1.5 with the removal of 1 class
    ]On Windows you read the registry database for this >information.
    Specifically you read the value of the string >CurrentVersion from the key >HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java >Runtime Environment.
    Then you use that value to read the value of the string >RuntimeLib
    from the key >HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java >Runtime Environment/{CurrentVersion value}.
    This value gives you the absolute path of the jvm.dll file.sorry I probably didn't explain how new I am at JNI. All I have is minimal C++ experience (command line hello world apps and the like), and amateur experimentation with java (only 15, not out of secondary education yet.) How does one go about reading the registry using C/C++, (although I'm sure I could find some documentation somewhere on the net.)
    Depends on what you want to do with multiple JREs >installed.get the newest one :)
    Basic wrapper code I am using at the moment...: (all I want to do is execute my java app from a .exe file rather than an executable jar)
    As you can probably see.. is just a bodge of an example from the internet.
    Currently my program searches for jvm.dll from the PATH variable.
    #include <stdio.h>
    #include <jni.h>
    void invoke_class(JNIEnv* env) {
         jclass helloWorldClass;
         jmethodID mainMethod;
         jobjectArray applicationArgs;
         jstring applicationArg0;
         helloWorldClass = (*env)->FindClass(env, "be/bavardage/vocab/VocabGUI");
         mainMethod = (*env)->GetStaticMethodID(env, helloWorldClass, "main", "([Ljava/lang/String;)V");
         applicationArgs = (*env)->NewObjectArray(env, 1, (*env)->FindClass(env, "java/lang/String"), NULL);
         applicationArg0 = (*env)->NewStringUTF(env, "From-C-program");
         (*env)->SetObjectArrayElement(env, applicationArgs, 0, applicationArg0);
         (*env)->CallStaticVoidMethod(env, helloWorldClass, mainMethod, applicationArgs);
    int main(int argc, char **argv) {
    JavaVM* jvm;
         JNIEnv* env;
         JavaVMInitArgs args;
         JavaVMOption options[1];
         /* There is a new JNI_VERSION_1_4, but it doesn't add anything for the purposes of our example. */
         args.version = JNI_VERSION_1_6;
         args.nOptions = 1;
         //options[0].optionString = "-Djava.class.path=c:\\package\\";
         options[0].optionString = "-Djava.class.path=vocab.jar";
         args.options = options;
         args.ignoreUnrecognized = JNI_FALSE;
         JNI_CreateJavaVM(&jvm, (void **)&env, &args);
         env;
         invoke_class( env );
         while (!(*env)->ExceptionCheck( env )) {
          //nothing
        (*env)->ExceptionCheck( env );
        (*env)->ExceptionDescribe( env );
        (*jvm)->DestroyJavaVM( jvm );
    }Message was edited by:
    bavardage - used tags...Message was edited by:
    bavardage

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

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

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

  • How can we analyze high CPU usage on JRockit ??

    Is it possible to analyze high cpu usage through JRA recording ??
    OS : Red Hat Linux
    Or is there any other way we can analyze it .
    Please let me know its urgent ....
    Thanks in Advance

    Hi!
    It is indeed possible to use JRA to find out where the time is spent! The hot methods table in JRA shows where the JVM is spending the most time executing.
    Kind regards,
    Marcus

  • Spreadsheet functions causing 100% CPU usage

    Running ColdFusion Enterprise 9,0,0,251028 with JVM 1.6.0_14 on a Windows 2003 server.   I am finding that when using <cfspreadsheet> and the spreadsheet functions to build a spreadsheet the server CPU maxes out at 100% while the spreadsheet object is being built.   The spreadsheet is not overly large or complex:  10-15 columns and 400-500 rows.   This behavior is consistent - it happens every time, even when building a simple spreadsheet with 1 column and a few rows.  Is anyone else experiencing this?    Is it a known problem with a fix?  Thank you.
    Michael Mongeau
    Stratus Technologies

    I was able to root cause the excessive CPU usage to a single-CPU virtual machine.  When I ran the same code on dual-CPU virtual machines the CPU usage went to 50-60% but never reached 100% and stayed there as it does on the single-CPU virtual machine.   So there appears to be an issue with JRun and Apache POI on single-CPU machines.  I simply had my system administrator add another CPU to the virtual machine and the problem no longer occurs.

  • Excesive CPU usage - java process OBI related

    Hola a todos,
    We have installed OBIEE 11.1.1.5 in a virtual machine (a clean one, just DB and OBI) and since a few weeks we've noticed perfomance issues. There is a java.exe process running with 30 - 50% CPU usage and if we stop it, OBIEE stops working as well, so we think it may be related, but we dont have any further clues.
    Has anybody dealt with something liket his before or does anyone know if there's a log where we could check this?
    Thanks in advance.

    Tuning
    Whether its a 64 bit or 32 bit of SUN or Jrocket ,
    Please increase the heap size parameters to Xms & Xmx to atleast2048 (min and max to atleast) 2GB
    Below were the comments from Oracle Support
    Best Practices Guide for Tuning Oracle® Business Intelligence Enterprise Edition
    In JRockit JVM (R28), the heap grows faster than before. The JVM also ensures that the heap size grows up to the maximum Java heap size (-Xmx) before an OutOfMemory error is thrown. In addition, the default value of the -Xmx option is changed from 1 GB to 3 GB on 64-bit OS. Note the JRockit JVM auto shrinks the heap if it is unused or if other applications require more physical memory.
    Note: It is recommended to use the default garbage collection mode i.e. -Xgc:throughput. Also
    large heap reduces the garbage collection frequency and fragmentation, improving the throughput
    of the application; however, a large heap increases the memory footprint of the Java process.
    *Warning: Make sure you have enough physical memory allocated / available on 64bit servers and then use the above settings as a starting point, and after load testing, adjust as needed. For a stable / an even performance over time, you should set the initial heap size (- Xms) to the same value as the maximum heap size (-Xmx).
    Common JRockit JVM issues seen with BI (i.e. bi_server1) managed
    servers:
    Startup Times Take Longer When Using JRockit JVM Versus Sun JVM: The Oracle® JRockit JVM is by default optimized for server use, which means that the startup times can be longer in favor of high performance as soon as the application is up and running. Moreover, as the application runs, the JRockit JVM optimizes frequently called methods, improving the performance further.
    When you run the JRockit JVM on a 64-bit system with a heap size less than 4 GB, if native OutOfMemory errors occurs despite memory being available only then add the parameter -XXcompressedRefs:size=32GB in JVM startup options to enable heap to grow up to 32 GB heap (practical limit of 25 GB). This will fix the issue native OutOfMemory errors. Moreover heap size still be restricted till the limits defined using -Xmx only benefit would be your heap will get the capability to grow beyond 4 GB up to 25 GB due to increase in size of pointer to
    32 bit address.
    On Oracle Solaris SPARC, due to the way classblock memory is reserved,Oracle® JRockit (R28) might occasionally run out of memory when a large number of classes are loaded (in the order of 100000).Workaround: The default value of -XX:MaxClassBlockMemory=50 MB, and a reasonable value is around 75 MB.
    By design Oracle® JRockit will often use more memory than Sun JVM because JRockit compiles everything and is optimized for being a server-side JVM. So if
    your customer have limited resources (i.e. CPU, memory) then it is recommended to experiment with switching to the Sun JVM which should save some system resources, but customer really should consider to do a performance tuning and sizing exercise, and determine if they have sufficient memory / CPU’s to support their requirements.
    It is important to keep Oracle® JRockit R28.1.x up to date with latest fix release because the latest release provide fixes for security vulnerabilities, performance,
    and other improvements of the Oracle® JRockit R28.1.x
    Tuning 64bit Sun JVM
    suggested
    Minimum heap -Xms2048m Maximum heap -Xmx2048m
    Minimum permanent generation heap -XX:PermSize=512m Maximum permanent generation heap -XX:MaxPermSize=512m
    I'm not sure from where I've copied but save the same in text file.
    This may help you.
    Or check this (since you pointed to java.exe) http://docs.oracle.com/cd/E18930_01/html/821-2431/abeic.html
    Edited by: veeravalli on Oct 25, 2012 7:38 AM

  • CPU usage spikes to 90%

    Dear all,
    I have 1 Pub, 2 Sub of version 8.0, when  I looked into RTMT, I found increase in the CPU usage to 90%
    Can any one guide how to solve and what is the reason for increase
    I have 2600 ip phones 

    thanks for your comment
    after entering the command 
    admin:show process using-most cpu
    PCPU PID CPU NICE STATE CPUTIME  ARGS
    %CPU   PID CPU  NI S     TIME COMMAND
     7.5 28399   -   0 S 7-15:34:03 /home/tomcat/tomcat /home/tomcat/tomcatJlauncher                                                                                                                     Config.xml -Djava.library.path=/usr/local/lib:/usr/local/thirdparty/java/j2sdk/j                                                                                                                     re/lib/i386:/usr/local/thirdparty/java/j2sdk/jre/lib/i386/server:/usr/lib/pgsql:                                                                                                                     /usr/lib:/usr/local/cm/lib::/usr/local/platform/lib -XX:ErrorFile=/usr/local/thi                                                                                                                     rdparty/jakarta-tomcat/logs/diagnostic-info.jvm-crash.<pid>.tomcat.txt -XX:OnOut                                                                                                                     OfMemoryError=/home/tomcat/tomcat_diagnostics.sh -XX:OnError=/home/tomcat/tomcat                                                                                                                     _diagnostics.sh -Djavax.net.ssl.trustStore=/usr/local/platform/.security/tomcat/                                                                                                                     trust-certs/tomcat-trust.keystore -Djavax.net.ssl.trustStorePassword=CFZLvtE9aAG                                                                                                                     PbFCD -Djavax.net.ssl.trustStoreType=PKCS12 -Djava.util.logging.manager=org.apac                                                                                                                     he.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/local/thirdpa                                                                                                                     rty/jakarta-tomcat/conf/logging.properties -Xmx640m -Xms256m -XX:MaxPermSize=256                                                                                                                     m -Djava.endorsed.dirs=/usr/local/thirdparty/jakarta-tomcat/endorsed -classpath                                                                                                                      :/usr/local/thirdparty/java/bcprov-jdk15-138.jar:/usr/local/platform/jar/xalan.j                                                                                                                     ar:/usr/local/platform/jar/certMgmt.jar:/usr/local/platform/jar/certMonitor.jar:                                                                                                                     /usr/local/platform/jar/Iproduct.jar:/usr/local/platform/jar/Ihardware.jar:/usr/                                                                                                                     local/platform/jar/CiscoIPSec.jar:/usr/local/platform/jar/ciscoCmd.jar:/usr/loca                                                                                                                     l/platform/jar/ciscoCommon.jar:/usr/local/platform/jar/platform-api.jar:/usr/loc                                                                                                                     al/platform/jar/maverick-all.jar:/common/download:/usr/local/platform/applicatio                                                                                                                     n_locale/platform-api:/usr/local/platform/application_locale/cmplatform:/usr/loc                                                                                                                     al/cm/jar/commons-logging.jar:/usr/local/platform/jar/xstream-1.1.2.jar:/usr/loc                                                                                                                     al/cm/jar/log4j-1.2.8.jar:/usr/local/cm/application_locale/cmservices:/usr/local                                                                                                                     /cm/application_locale/car:/usr/local/cm/application_locale/ccmadmin:/usr/local/                                                                                                                     cm/application_locale/ccmuser:/usr/local/cm/application_locale:/usr/local/thirdp                                                                                                                     arty/jakarta-tomcat/bin/bootstrap.jar -Djava.security.manager -Djava.security.po                                                                                                                     licy==/usr/local/thirdparty/jakarta-tomcat/conf/catalina.policy -Dcatalina.base=                                                                                                                     /usr/local/thirdparty/jakarta-tomcat -Dcatalina.home=/usr/local/thirdparty/jakar                                                                                                                     ta-tomcat -Djava.io.tmpdir=/usr/local/thirdparty/jakarta-tomcat/temp start
     7.0 16208   -  10 S 00:00:01 java -DConsoleRows=24 -DConsoleColumns=80 -DCommonFileSystem="disk_full=false,inode_full=false,no_write=false,internal_error=false" -DJvmStartTime=1407911931 sdMain name=ccmadmin priv=4 master
     1.2 18672   -   0 S 1-07:24:04 /usr/local/cm/bin/cmoninit -w
     1.1  1733   -   0 S 1-03:54:14 /usr/local/cm/bin/RisDC
     0.3  1755   -   0 S 09:12:08 /usr/local/cm/bin/amc /usr/local/cm/conf/amc/amcCfg.xml
    what does this mean

  • Can anybody help me to understand the CPU usage logs

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

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

  • CORBA connections not relinquished - CPU usage - 100%

    We have a session bean making a corba call, however after the call is susccessful,
    the connection doesn't relinquished. If We do a netstat , the number of established
    connections keep increasing as more calls are made to the CORBA server. We am
    facing issues of CPU usage goin upto 100% and never comes below 97% after a lot
    of such calls. Please suggest someway of fixing it.

    You should verify it within the product documentation.
    If you want to verify it by yourself, from wls, implementing the singleton pattern
    for your remote object, invoke a method on the remote object, implement a sleep
    in it (on the corba server), and after try to execute another method on the same
    remote object (singleton), which returns immediately (it is important that you
    run this test within the same wls instance, and the same ejb (ejb module) : the
    singleton is relative to the classloader).
    If the orb implementation does not multiplex the invokations, you will see the
    second call not returning until the first one has not returned (end of sleep time).
    (of course, I suppose the Corba server is multithreaded...)
    Sergi
    "Nishant" <[email protected]> wrote:
    >
    Perfect....thanks....but isnt using singleton going to harm the performance..coz
    this is old version of visibroker, and it prbably doesnt multiplex the
    threads??
    "Sergi Vaz" <[email protected]> wrote:
    Hello,
    use the ORB as a "singleton" object : do not invoke ORB.init many times,
    but only
    once, and after cache the corba object on a static variable.
    It's thread safe, the remote invocations will be multiplexed.
    So you will have only "one" reader thread for each corba object, and
    you will
    solve your problem.
    Some vendor are not fully compliant and do not implement the destroy
    method.
    So you do not release the ORB resources, but keep them (it's also more
    performant).
    At this point you will have a "dangling" reader thread only after aredeploy
    (unless
    you shut down the jvm).
    Sergi
    "Nishant" <[email protected]> wrote:
    Andy,
    I am using visibroker 3.2. , and WLS 7.0 , JSK 1.3.1_08 And I do not
    see a method
    called org.omg.CORBA.ORB.destroy.
    Is there an alternative way to achieve this??
    Unless I destroy the threads the connection with the CORBA server would
    remain,
    and this is driving up the CPU usage, for every new connection made.
    Thanks
    Nishant
    Andy Piper <[email protected]> wrote:
    "Nishant" <[email protected]> writes:
    We have a session bean making a corba call, however after the callis susccessful,
    the connection doesn't relinquished. If We do a netstat , the numberof established
    connections keep increasing as more calls are made to the CORBA
    server.
    We am
    facing issues of CPU usage goin upto 100% and never comes below
    97%
    after a lot
    of such calls. Please suggest someway of fixing it.This is most likely because you are using the JDK 1.3 ORB. It doesnot
    release threads until the system exits. This is one reason why using
    the BEA ORB in 8.1 is preferrable.
    If you are using WLS 7.0 then Sun did make a fix in JDK 1.3.1_09 which
    adds a special property to allow ORB.destroy() to release the
    threads. You would have to go through support to find out what this
    property is. If you are using 8.1 then you can use the BEA ORB or
    if
    you need to use the JDK ORB I think that calling ORB.destroy() will
    release the threads for you.
    Hope this helps.
    andy

  • /sbin/init high CPU usage (80%)

    My PC run slowly, I viewed the processes by htop utility and it revealed that /sbin/init has a constantly high CPU usage, around 70-80%. I scanned it with clamscan virus scanner, but not infected. What can I do to fix this problem?

    Did you mean "ps -ef" ? Then:
    UID PID PPID C STIME TTY TIME CMD
    root 1 0 8 Sep22 ? 08:27:41 /usr/lib/systemd/systemd --system --deserialize 131
    root 2 0 0 Sep22 ? 00:00:00 [kthreadd]
    root 3 2 0 Sep22 ? 00:45:38 [ksoftirqd/0]
    root 5 2 0 Sep22 ? 00:00:00 [kworker/0:0H]
    root 7 2 0 Sep22 ? 00:05:10 [rcu_preempt]
    root 8 2 0 Sep22 ? 00:00:03 [rcu_sched]
    root 9 2 0 Sep22 ? 00:00:00 [rcu_bh]
    root 10 2 0 Sep22 ? 00:00:02 [migration/0]
    root 11 2 0 Sep22 ? 00:00:01 [watchdog/0]
    root 12 2 0 Sep22 ? 00:00:01 [watchdog/1]
    root 13 2 0 Sep22 ? 00:00:02 [migration/1]
    root 14 2 0 Sep22 ? 00:54:35 [ksoftirqd/1]
    root 16 2 0 Sep22 ? 00:00:00 [kworker/1:0H]
    root 17 2 0 Sep22 ? 00:00:00 [khelper]
    root 18 2 0 Sep22 ? 00:00:00 [kdevtmpfs]
    root 19 2 0 Sep22 ? 00:00:00 [netns]
    root 20 2 0 Sep22 ? 00:00:00 [khungtaskd]
    root 21 2 0 Sep22 ? 00:00:00 [writeback]
    root 22 2 0 Sep22 ? 00:00:00 [ksmd]
    root 23 2 0 Sep22 ? 00:00:52 [khugepaged]
    root 24 2 0 Sep22 ? 00:00:00 [crypto]
    root 25 2 0 Sep22 ? 00:00:00 [kintegrityd]
    root 26 2 0 Sep22 ? 00:00:00 [bioset]
    root 27 2 0 Sep22 ? 00:00:00 [kblockd]
    root 30 2 0 Sep22 ? 00:05:54 [kswapd0]
    root 31 2 0 Sep22 ? 00:00:00 [fsnotify_mark]
    root 35 2 0 Sep22 ? 00:00:00 [kthrotld]
    root 36 2 0 Sep22 ? 00:00:00 [ipv6_addrconf]
    root 37 2 0 Sep22 ? 00:00:00 [deferwq]
    root 63 2 0 Sep22 ? 00:00:00 [khubd]
    root 64 2 0 Sep22 ? 00:00:00 [firewire]
    root 65 2 0 Sep22 ? 00:00:00 [firewire_ohci]
    root 66 2 0 Sep22 ? 00:00:00 [ata_sff]
    root 68 2 0 Sep22 ? 00:00:00 [scsi_eh_0]
    root 69 2 0 Sep22 ? 00:00:00 [scsi_tmf_0]
    root 70 2 0 Sep22 ? 00:00:00 [scsi_eh_1]
    root 71 2 0 Sep22 ? 00:00:00 [scsi_tmf_1]
    root 74 2 0 Sep22 ? 00:00:00 [scsi_eh_2]
    root 75 2 0 Sep22 ? 00:00:00 [scsi_tmf_2]
    root 76 2 0 Sep22 ? 00:00:00 [scsi_eh_3]
    root 77 2 0 Sep22 ? 00:00:00 [scsi_tmf_3]
    root 88 2 0 Sep22 ? 00:01:22 [kworker/0:1H]
    root 89 2 0 Sep22 ? 00:00:00 [scsi_eh_4]
    root 90 2 0 Sep22 ? 00:00:00 [scsi_tmf_4]
    root 91 2 0 Sep22 ? 00:00:07 [usb-storage]
    root 99 2 0 Sep22 ? 00:00:00 [kworker/1:1H]
    root 101 2 0 Sep22 ? 00:00:27 [jbd2/sda1-8]
    root 102 2 0 Sep22 ? 00:00:00 [ext4-rsv-conver]
    root 130 1 0 Sep22 ? 00:08:22 /usr/lib/systemd/systemd-journald
    root 145 2 0 Sep22 ? 00:00:00 [rpciod]
    root 147 2 0 Sep22 ? 00:00:00 [nfsiod]
    root 163 1 0 Sep22 ? 00:00:00 /usr/lib/systemd/systemd-udevd
    root 221 2 0 Sep22 ? 00:00:00 [kpsmoused]
    root 243 1 1 Sep22 ? 01:39:24 /sbin/mount.ntfs-3g /dev/sda2 /mnt/ntfs -n -o rw,uid=1000,gid=100,dmask=022,fmask=133
    root 251 1 0 Sep22 ? 00:00:34 /usr/lib/systemd/systemd-logind
    dbus 253 1 0 Sep22 ? 00:02:38 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    root 254 1 0 Sep22 ? 00:02:32 /usr/bin/haveged -w 1024 -v 1
    root 255 1 0 Sep22 ? 00:00:00 /usr/bin/dhcpcd -q -b
    rpc 258 1 0 Sep22 ? 00:00:00 /usr/bin/rpcbind -w
    root 288 1 0 Sep22 ? 00:00:13 /usr/bin/NetworkManager --no-daemon
    root 295 1 0 Sep22 ? 00:00:00 /usr/sbin/rpc.idmapd
    root 330 2 0 Sep22 ? 00:00:00 [cfg80211]
    polkitd 333 1 0 Sep22 ? 00:00:09 /usr/lib/polkit-1/polkitd --no-debug
    tor 436 1 0 Sep22 ? 00:03:27 /usr/bin/tor -f /etc/tor/torrc
    privoxy 438 1 0 Sep22 ? 00:00:00 /usr/bin/privoxy --pidfile /run/privoxy.pid --user privoxy.privoxy /etc/privoxy/config
    root 445 1 0 Sep22 ? 00:00:00 /usr/sbin/rpc.statd --no-notify
    root 449 1 0 Sep22 ? 00:00:00 /usr/sbin/rpc.mountd
    root 466 2 0 Sep22 ? 00:00:00 [nfsv4.0-svc]
    root 500 1 0 Sep22 ? 00:00:00 /usr/sbin/lxdm-binary
    root 503 500 6 Sep22 tty7 06:37:07 /usr/bin/Xorg.bin :0 vt07 -nolisten tcp -novtswitch
    root 1755 500 0 Sep22 ? 00:00:00 /usr/lib/lxdm/lxdm-session
    walaki 1756 1 0 Sep22 ? 00:00:00 /usr/lib/systemd/systemd --user
    walaki 1757 1756 0 Sep22 ? 00:00:00 (sd-pam)
    walaki 1763 1755 0 Sep22 ? 00:00:00 /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
    walaki 1773 1 0 Sep22 ? 00:00:00 dbus-launch --sh-syntax --exit-with-session
    walaki 1774 1 0 Sep22 ? 00:00:21 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    walaki 1781 1763 0 Sep22 ? 00:00:46 xfce4-session
    walaki 1784 1 0 Sep22 ? 00:00:00 /usr/lib/xfce4/xfconf/xfconfd
    walaki 1789 1 0 Sep22 ? 00:00:16 /usr/bin/gpg-agent --sh --daemon --enable-ssh-support --write-env-file /home/walaki/.cache/gpg-agent-info
    walaki 1792 1781 0 Sep22 ? 00:01:54 xfwm4 --display :0.0 --sm-client-id 23fec2b63-e849-4a72-8ded-64b47902bd41
    walaki 1795 1781 0 Sep22 ? 00:00:35 Thunar --sm-client-id 2d0147b28-0a91-4a3b-a669-064fc26ae553 --daemon
    walaki 1797 1781 0 Sep22 ? 00:09:43 xfce4-panel --display :0.0 --sm-client-id 247d7309b-f81b-4064-adbd-0875fed923d4
    walaki 1798 1781 0 Sep22 ? 00:00:18 xfdesktop --display :0.0 --sm-client-id 2e572e480-670a-4c6f-af62-2339f19929ef
    walaki 1799 1 0 Sep22 ? 00:00:36 xfsettingsd --display :0.0 --sm-client-id 26269b48e-af0b-4399-b385-5305502e24f1
    walaki 1802 1781 1 Sep22 ? 01:24:09 /usr/lib/skype/skype -session 21d1f7d38-8c0a-41de-98b7-021e4f2a5bd7_1410900031_251500
    walaki 1803 1781 0 Sep22 ? 00:00:06 kruler -session 20c051002-8d7b-4c2c-bf0b-c384f149b9b5_1410900031_629257
    walaki 1806 1 0 Sep22 ? 00:00:01 xfce4-power-manager --restart --sm-client-id 2154ad16d-be90-40bc-8354-c2647728cf16
    walaki 1810 1 0 Sep22 ? 00:00:00 /usr/lib/gvfs/gvfsd
    walaki 1823 1 0 Sep22 ? 00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
    walaki 1825 1797 0 Sep22 ? 00:00:02 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libsystray.so 6 14680094 systray Notification Area Area where notification icons appear
    walaki 1833 1797 0 Sep22 ? 00:00:07 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libmixer.so 15 14680095 mixer Audio Mixer Adjust volume levels
    walaki 1834 1797 0 Sep22 ? 00:44:27 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libweather.so 16 14680096 weather Weather Update Show current weather conditions
    walaki 1835 1797 0 Sep22 ? 00:46:02 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libsystemload.so 17 14680097 systemload System Load Monitor Monitor CPU load, swap usage and memory footprint
    walaki 1836 1797 0 Sep22 ? 00:00:03 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libactions.so 2 14680098 actions Action Buttons Log out, lock or other system actions
    walaki 1841 1797 0 Sep22 ? 00:00:03 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libthunar-tpa.so 8 14680102 thunar-tpa Trash Applet Display the trash can
    walaki 1843 1 0 Sep22 ? 00:00:04 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
    walaki 1846 1 0 Sep22 ? 00:00:03 /usr/lib/gvfs/gvfsd-trash --spawner :1.9 /org/gtk/gvfs/exec_spaw/0
    root 1856 1 0 Sep22 ? 00:00:00 /usr/lib/upower/upowerd
    root 1857 1 0 Sep22 ? 00:02:10 /usr/lib/udisks2/udisksd --no-debug
    walaki 1862 1 0 Sep22 ? 00:09:10 kwooty -session 2fc05dbf4-9492-4cf1-bd80-efe7e47dfb90_1410900031_251208
    walaki 1895 1 0 Sep22 ? 00:00:00 /usr/lib/GConf/gconfd-2
    walaki 1904 1 0 Sep22 ? 00:00:05 /usr/bin/python2 /usr/bin/glipper
    walaki 1907 1 0 Sep22 ? 00:00:06 nm-applet
    walaki 1922 1 0 Sep22 ? 00:00:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
    walaki 1926 1922 0 Sep22 ? 00:00:25 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
    walaki 1930 1 0 Sep22 ? 00:00:03 /usr/lib/evolution/3.12/evolution-alarm-notify
    walaki 1936 1 1 Sep22 ? 01:59:26 firefox
    walaki 1938 1 0 Sep22 ? 00:01:08 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
    walaki 2023 1 0 Sep22 ? 00:00:00 /usr/lib/evolution-data-server/evolution-source-registry
    walaki 2043 1 0 Sep22 ? 00:00:25 /usr/lib/gnome-online-accounts/goa-daemon
    walaki 2058 1 0 Sep22 ? 00:00:01 /usr/lib/evolution-data-server/evolution-calendar-factory
    walaki 2084 1 0 Sep22 ? 00:00:00 kdeinit4: kdeinit4 Runnin e
    walaki 2089 2084 0 Sep22 ? 00:00:00 kdeinit4: klauncher [kdei e
    walaki 2101 1 0 Sep22 ? 00:00:06 kdeinit4: kded4 [kdeinit]
    walaki 5752 1 0 Sep22 ? 00:00:01 /usr/bin/gnome-keyring-daemon --start --foreground --components=secrets
    walaki 5887 1789 0 Sep22 ? 00:01:01 scdaemon --multi-server
    walaki 7557 11505 0 11:19 pts/8 00:00:00 /bin/bash
    walaki 8876 19571 0 12:04 pts/4 00:00:03 mc
    walaki 8878 8876 0 12:04 pts/9 00:00:00 bash -rcfile .bashrc
    root 10950 2 0 18:10 ? 00:00:02 [kworker/u4:1]
    walaki 10953 18727 0 18:10 pts/6 00:00:04 mc
    walaki 10955 10953 0 18:10 pts/7 00:00:00 bash -rcfile .bashrc
    walaki 11492 1797 0 Sep23 ? 00:02:06 /usr/bin/python2 /usr/bin/terminator
    walaki 11504 11492 0 Sep23 ? 00:00:00 gnome-pty-helper
    walaki 11505 11492 0 Sep23 pts/8 00:00:00 /bin/bash
    walaki 12283 1797 0 13:19 ? 00:00:26 /usr/bin/python2 /usr/bin/terminator
    walaki 12299 12283 0 13:19 ? 00:00:00 gnome-pty-helper
    walaki 12300 12283 0 13:19 pts/1 00:00:00 /bin/bash
    walaki 12707 1797 0 13:23 ? 00:02:59 geany
    walaki 12713 12707 0 13:23 ? 00:00:00 gnome-pty-helper
    walaki 12714 12707 0 13:23 pts/11 00:00:00 /bin/bash
    walaki 13471 1797 0 18:31 ? 00:00:18 /usr/bin/python2 /usr/bin/terminator
    walaki 13487 13471 0 18:31 ? 00:00:00 gnome-pty-helper
    walaki 13488 13471 0 18:31 pts/3 00:00:00 /bin/bash
    walaki 13751 13488 0 18:33 pts/3 00:00:00 /bin/bash
    walaki 16906 1797 46 13:59 ? 04:12:08 /usr/lib/opera-next/opera-next
    walaki 18711 1797 0 Sep23 ? 00:05:05 /usr/bin/python2 /usr/bin/terminator
    walaki 18726 18711 0 Sep23 ? 00:00:00 gnome-pty-helper
    walaki 18727 18711 0 Sep23 pts/6 00:00:00 /bin/bash
    walaki 19550 1797 0 Sep22 ? 00:01:48 /usr/bin/python2 /usr/bin/terminator
    walaki 19570 19550 0 Sep22 ? 00:00:00 gnome-pty-helper
    walaki 19571 19550 0 Sep22 pts/4 00:00:00 /bin/bash
    walaki 21931 23464 3 20:17 ? 00:04:59 /opt/google/chrome/chrome --type=renderer --lang=en-US --force-fieldtrials=AutoReloadExperiment/Enabled/ChromeSuggestions/Most Likely with Kodachrome/ExtensionInstallVerification/None/OmniboxBundledExperimentV1/StandardR4/Prerender/PrerenderEnabled/PrerenderFromOmnibox/OmniboxPrerenderEnabled/PrerenderLocalPredictorSpec/LocalPredictor=Disabled/SPDY/SpdyDisabled/SettingsEnforcement/no_enforcement/Test0PercentDefault/group_01/UMA-Dynamic-Binary-Uniformity-Trial/default/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Population-Restrict/normal/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-1-Percent/group_22/UMA-Uniformity-Trial-10-Percent/group_05/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_03/UMA-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-50-Percent/default/VoiceTrigger/Install/ --renderer-print-preview --enable-offline-auto-reload --enable-threaded-compositing --enable-delegated-renderer --disable-accelerated-video-decode --disable-webrtc-hw-encoding --disable-gpu-compositing --channel=23445.24.769536197
    walaki 22985 23464 0 20:39 ? 00:00:55 /opt/google/chrome/chrome --type=renderer --lang=en-US --force-fieldtrials=AutoReloadExperiment/Enabled/ChromeSuggestions/Most Likely with Kodachrome/ExtensionInstallVerification/None/OmniboxBundledExperimentV1/StandardR4/Prerender/PrerenderEnabled/PrerenderFromOmnibox/OmniboxPrerenderEnabled/PrerenderLocalPredictorSpec/LocalPredictor=Disabled/SPDY/SpdyDisabled/SettingsEnforcement/no_enforcement/Test0PercentDefault/group_01/UMA-Dynamic-Binary-Uniformity-Trial/default/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Population-Restrict/normal/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-1-Percent/group_22/UMA-Uniformity-Trial-10-Percent/group_05/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_03/UMA-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-50-Percent/default/VoiceTrigger/Install/ --renderer-print-preview --enable-offline-auto-reload --enable-threaded-compositing --enable-delegated-renderer --disable-accelerated-video-decode --disable-webrtc-hw-encoding --disable-gpu-compositing --channel=23445.25.841939391
    walaki 23052 23464 2 20:40 ? 00:03:57 /opt/google/chrome/chrome --type=ppapi --channel=23445.26.1843768387 --ppapi-flash-args --lang=en-US
    walaki 23445 1 3 15:02 ? 00:16:57 /opt/google/chrome/chrome
    walaki 23453 23445 0 15:02 ? 00:00:05 /opt/google/chrome/chrome --type=sandbox-ipc
    walaki 23454 23445 0 15:02 ? 00:00:00 /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --type=zygote
    walaki 23455 23454 0 15:02 ? 00:00:00 /opt/google/chrome/chrome --type=zygote
    walaki 23461 23455 0 15:02 ? 00:00:00 /opt/google/chrome/chrome-sandbox /opt/google/chrome/nacl_helper
    walaki 23462 23461 0 15:02 ? 00:00:00 /opt/google/chrome/nacl_helper
    walaki 23464 23455 0 15:02 ? 00:00:00 /opt/google/chrome/chrome --type=zygote
    walaki 23484 23445 0 15:03 ? 00:00:04 /opt/google/chrome/chrome --type=gpu-process --channel=23445.0.587379006 --supports-dual-gpus=false --gpu-driver-bug-workarounds=1,14,20,23,43 --disable-accelerated-video-decode --gpu-vendor-id=0x10de --gpu-device-id=0x0322 --gpu-driver-vendor --gpu-driver-version
    walaki 23672 23464 0 15:04 ? 00:01:06 /opt/google/chrome/chrome --type=renderer --lang=en-US --force-fieldtrials=AutoReloadExperiment/Enabled/ChromeSuggestions/Most Likely with Kodachrome/ExtensionInstallVerification/None/OmniboxBundledExperimentV1/StandardR4/Prerender/PrerenderEnabled/PrerenderFromOmnibox/OmniboxPrerenderEnabled/PrerenderLocalPredictorSpec/LocalPredictor=Disabled/SPDY/SpdyDisabled/SettingsEnforcement/no_enforcement/Test0PercentDefault/group_01/UMA-Dynamic-Binary-Uniformity-Trial/default/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Population-Restrict/normal/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-1-Percent/group_22/UMA-Uniformity-Trial-10-Percent/group_05/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_03/UMA-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-50-Percent/default/VoiceTrigger/Install/ --renderer-print-preview --enable-offline-auto-reload --enable-threaded-compositing --enable-delegated-renderer --disable-accelerated-video-decode --disable-webrtc-hw-encoding --disable-gpu-compositing --channel=23445.5.858801638
    root 23962 288 0 Sep25 ? 00:00:00 /usr/bin/dhclient -d -sf /usr/lib/networkmanager/nm-dhcp-helper -pf /var/run/dhclient-enp2s8.pid -lf /var/lib/NetworkManager/dhclient-a8966a98-c9d9-4425-9e4d-459c41d83921-enp2s8.lease -cf /var/lib/NetworkManager/dhclient-enp2s8.conf enp2s8
    root 24159 1 0 15:08 tty2 00:00:00 /sbin/agetty --noclear tty2 linux
    root 24165 1 0 15:08 tty3 00:00:00 /sbin/agetty --noclear tty3 linux
    root 24169 1 0 15:08 tty5 00:00:00 /sbin/agetty --noclear tty5 linux
    root 24174 1 0 15:08 tty6 00:00:00 /sbin/agetty --noclear tty6 linux
    walaki 25161 1 2 Sep23 ? 02:22:03 audacious
    root 25840 2 0 21:32 ? 00:00:01 [kworker/1:1]
    walaki 27082 23464 4 21:51 ? 00:02:56 /opt/google/chrome/chrome --type=renderer --lang=en-US --force-fieldtrials=AutoReloadExperiment/Enabled/ChromeSuggestions/Most Likely with Kodachrome/ExtensionInstallVerification/None/OmniboxBundledExperimentV1/StandardR4/Prerender/PrerenderEnabled/PrerenderFromOmnibox/OmniboxPrerenderEnabled/PrerenderLocalPredictorSpec/LocalPredictor=Disabled/SPDY/SpdyDisabled/SettingsEnforcement/no_enforcement/Test0PercentDefault/group_01/UMA-Dynamic-Binary-Uniformity-Trial/default/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Population-Restrict/normal/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-1-Percent/group_22/UMA-Uniformity-Trial-10-Percent/group_05/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_03/UMA-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-50-Percent/default/VoiceTrigger/Install/ --renderer-print-preview --enable-offline-auto-reload --enable-threaded-compositing --enable-delegated-renderer --disable-accelerated-video-decode --disable-webrtc-hw-encoding --disable-gpu-compositing --channel=23445.29.1207326524
    root 27424 2 0 22:00 ? 00:00:00 [kworker/0:1]
    root 27664 2 0 15:42 ? 00:00:04 [kworker/u4:2]
    root 27769 2 0 22:07 ? 00:00:00 [kworker/1:2]
    walaki 28865 1 0 Sep25 ? 00:00:00 /usr/lib/gvfs/gvfsd-http --spawner :1.9 /org/gtk/gvfs/exec_spaw/1
    walaki 29628 8878 0 22:54 pts/9 00:00:02 /usr/bin/ruby /home/walaki/util/mr1 Nekem az ég - hazafutás
    walaki 29652 23464 0 22:54 ? 00:00:00 /opt/google/chrome/chrome --type=renderer --lang=en-US --force-fieldtrials=AutoReloadExperiment/Enabled/ChromeSuggestions/Most Likely with Kodachrome/ExtensionInstallVerification/None/OmniboxBundledExperimentV1/StandardR4/Prerender/PrerenderEnabled/PrerenderFromOmnibox/OmniboxPrerenderEnabled/PrerenderLocalPredictorSpec/LocalPredictor=Disabled/SPDY/SpdyDisabled/SettingsEnforcement/no_enforcement/Test0PercentDefault/group_01/UMA-Dynamic-Binary-Uniformity-Trial/default/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Population-Restrict/normal/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-1-Percent/group_22/UMA-Uniformity-Trial-10-Percent/group_05/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_03/UMA-Uniformity-Trial-5-Percent/group_14/UMA-Uniformity-Trial-50-Percent/default/VoiceTrigger/Install/ --renderer-print-preview --enable-offline-auto-reload --enable-threaded-compositing --enable-delegated-renderer --disable-accelerated-video-decode --disable-webrtc-hw-encoding --disable-gpu-compositing --channel=23445.30.161699173
    root 29693 2 0 22:55 ? 00:00:00 [kworker/0:2]
    root 29915 2 0 23:00 ? 00:00:00 [kworker/0:0]
    root 29930 27664 89 23:00 ? 00:00:31 /usr/lib/systemd/systemd-coredump 29431 1000 100 6 1411765249 wavparse1374:si
    walaki 29946 10955 0 23:01 pts/7 00:00:00 ps -ef
    walaki 29948 10955 0 23:01 pts/7 00:00:00 leafpad
    walaki 30148 1 0 Sep23 ? 00:00:00 /usr/lib/dconf/dconf-service
    walaki 30523 1 0 Sep25 ? 00:00:00 /bin/sh /home/walaki/jdownloader/JDLauncher
    walaki 30544 30523 0 Sep25 ? 00:04:54 /usr/lib/jvm/java-default-runtime/bin/java -Dinstall4j.jvmDir=/usr -Dexe4j.moduleName=/home/walaki/jdownloader/JDLauncher -Xmx512m -Xms64m -Dinstall4j.launcherId=26 -Dinstall4j.swt=false -Di4j.vmov=true -Di4j.vmov=true -Di4j.vmov=true -Di4j.vmov=true -Di4j.vmov=true -Di4j.vpt=true -classpath /home/walaki/jdownloader/.install4j/i4jruntime.jar:/home/walaki/jdownloader/JDownloader.jar com.install4j.runtime.launcher.Launcher launch jd.Main true false true true false true true 0 0 20 20 Arial 0,0,0 8 500 version 0.9 20 40 Arial 0,0,0 8 500 -1

  • Measure Java CPU usage

    Hi,
    I'm not sure whether this is the right forum to post this message.
    I have a java application and basically it takes lots of CPU time and memory. What my concern right now is the CPU usage. Basically I reduced the number of CPUs from 8 to 4 (Solaris v1280 box) and the CPU usage got increased from 30% to 90% :(
    My requirement: Is there anyway that I can measure the CPU usage using Java code itself, so that I can insert those "set of APIs" (for measuring CPU usage), between APIs to collect the CPU usage data?
    Thanks,
    Siva

    The comparison would be unfair (by your definition of unfair) in Java, too, since the JVMs for both platforms are different.
    If you are dealing with time, though, 500 milliseconds is 500 milliseconds, no matter what language you write it on or what platform you run it on. If you use VC++ for the Windows stuff, make sure you disable Microsoft extensions so you have some ANSI standard code that will compile with gcc.
    Since you are trying to compare operating systems, make sure both machines are using the same processors (and motherboards with the same PCI bus architecture), too. And have the same amount of memory, which is the same speed and architecture on both. Their hard drives should be roughly the same speed, too. The PCI bus usage could vary with network cards, so having the same network cards will be a plus. What it seems to come down to is that you are going to end up measuring the performance of the socket library implementations on both machines.
    As far as JNI goes, all it is is a way to write native code and use it in your Java application. I don't know much about it, search around for some examples. There's a tutorial, somewhere, too. Some dude on here, tpritchet, seems to know a lot about it.
    Jason

  • Tarantella EE 4 - CPU usage goes 80%

    Hi,
    i\'ve a secure global desktop 4.0 installed and working fine almost time,
    but randomly a single ttaxpe process goes out of control and get
    60-70-80% CPU blocking all other activity. I\'ve to kill the process andall come back to normality. This happens about one a day. Is there a fix
    for this problem?
    Thank you
    bye
    m.piaggesi ----at--- teamsystem.com

    On 2005-08-09, mirko <[email protected]> wrote:
    Hi barrie, thank you for your help.
    I've got a server with 1.8GB ram; my JVM memory settings was: 58-150%-512.
    Now i've changed them to 512-150%-1024. What do you suggest for these
    settings considering that i've about 150 webtop session open simultanely?
    Either of these settings is probably okay. The whole tuning thing is
    less of an issue with the 1.5 JVM anyway. If you only have this number
    of sessions I don't think this can be the problem.
    By real, the xpe process doesn't block the entire server, but only
    tarantella; i still can connect using ssh/telnet and access any other
    service, but not to tarantella.This makes more sense but it may mean that the rogue process is keeping
    the rest of the system busy or vice versa. Can you access SGD as another
    user? The PE manager (ttauxserv) utilises a namespace that is user
    based, so it is more likely that the rogue process has deadlocked part of
    this namespace making it impossible to log in as the user of that xpe
    process. I can think of two ways to get a handle on this rogue process:
    1. gather the ouput of truss (strace on Linux) -- this may show nothing
    but that would indicate a tight CPU loop so would be useful info.
    2. generate a core file by sending the process a signal; this would not
    produce very useful information unless the binary was unstripped.
    Support should be able to provide you with this form of binary; I
    can't distribute them via the newsgroup unfortunately.
    >
    I try to upgrade a local copy of tarantella 4 to 4.1; the entire process
    has gone fine without trouble and i don't lost my settings/object. Do you
    suggest to me to upgrade or to leave the 4.0 in out server?
    4.0 was a technology change from 3.x, although 4.0 is stable and should
    run fine, 4.1 fixes problems that were discovered in the field with the
    new webtop infrastructure etc. Since it doesn't radically alter the
    footprint of 4.0 I think it is worth having. I can't promise it fixes this
    problem though we would need to get more information to work on.
    Regards
    Barrie
    Thanks again
    Hi Mirko
    I don't think 606003 is your problem, that could only occur very rarely,
    if at all. It was never reproduced in-house, or shown to be an actualproblem,
    but was proved to be a logical flaw in how telnet connections were managed
    internally.
    I'm not sure how a protocol engine process, even one consuming an entire
    CPU, could manage to stop a server from responding, that doesn't make a
    lot of sense as a cause on it's own.
    I'm still inclined to think that either this rate of CPU usage is normal
    or is a consequence of some other issue. Have you managed to make a
    truss file of the system calls made by the ttaxpe process in this state?
    I would also check the JVM tuning values you have for this system i.e.
    the size of JVM you require. The most common cause of unavailablity,
    other than networking problems, is when the JVM in the Jserver fails to
    respond because it has grown to a maximum size and is severely
    constrained by the garbage collector.
    4.1 is mostly bug fixes to 4.0 so I would not consider it a major change
    to upgrade.
    Barrie
    On 2005-08-05, mirko <[email protected]> wrote:
    Yes, I'm sure because it stays at about 80% too much time. When this
    happens, i can't neither get to tarantella login form, all tarantella
    commands stop respondig (ex. tarantella status never return), who are
    alredy logged in a webtop session works very slowly ecc ecc.
    In the fix list of 4.1 there is this:
    606003 Fixed the problem that causes ttaexecpe to spin in some
    circunstance.
    I think it could solve my problem but i'd like not reinstalling/upgrading
    my system because i've just upgraded from 3.32 to 4.0.
    At the moment, i've written a bash script that every 5 mins check if there
    is a ttaxpe pid uses more than 70% cpu and kill it.
    thank you
    bye
    Hi Mirko
    Are you certain this is not normal behaviour, i.e. the work is being
    driven
    by the client application? If you run truss on this process it might
    tell us whether it is responding to requests or in some sort of internalspin?
    When you say "blocking all other activity", can you be more precise in
    saying what you can and can't do?
    I would upgrade to 4.1 in any case. There was a similar incident in 4.0
    but I can't say whether or not it is anything to do with what you are
    seeing
    with just this information though.
    Thanks
    Barrie
    On 2005-08-05, Mirko <[email protected]> wrote:
    Hi,
    i\'ve a secure global desktop 4.0 installed and working fine almost
    time,
    but randomly a single ttaxpe process goes out of control and get
    60-70-80% CPU blocking all other activity. I\'ve to kill the process andall come back to normality. This happens about one a day. Is there a fix
    for this problem?
    Thank you
    bye
    m.piaggesi ----at--- teamsystem.com

  • High Cpu Usage - help

    Hi,
    I have 2 solaris2.7(2 cpu 4GB) boxes with WLS5.1 (each box one)in a cluster with in-memory replication.
    The general clustering setup is fine, and the system runs fine for stress testing..
    The vmstat says lot of things are in runnable state.
    There is not much of swapping or paging or out of memory problems.
    Threads are at default of 15.
    jvm memory is (.5GB/1.5GB)
    When i try to vary jvm/thread or any parameter to improve performance it has little effect.
    But we see the cpu usage at 95-98% every time from start of testing to finishing?
    Is it still a good idea to put one more instance of weblogic instance or will i be overloading the CPU again?
    thanks for any inputs

    thanks guys
    will try it out...
    "Cameron Purdy" <[email protected]> wrote:
    You need to figure out what the servers are doing. You could have the
    execute threads set too high or too low. Also make sure you are running the
    performance pack. Use a Java profiler if possible to see what is going on,
    and even without a profiler take an occasional snapshot of what the threads
    are doing while the cpu utilization is so high. Some stress testing
    programs are pretty silly (not real world at all); try some "human" stress
    testing if possible.
    Cameron Purdy
    [email protected]
    http://www.tangosol.com
    WebLogic Consulting Available
    "shivu" <[email protected]> wrote in message
    news:39e3408e$[email protected]..
    Hi,
    I have 2 solaris2.7(2 cpu 4GB) boxes with WLS5.1 (each box one)in acluster with in-memory replication.
    The general clustering setup is fine, and the system runs fine for stresstesting..
    The vmstat says lot of things are in runnable state.
    There is not much of swapping or paging or out of memory problems.
    Threads are at default of 15.
    jvm memory is (.5GB/1.5GB)
    When i try to vary jvm/thread or any parameter to improve performance ithas little effect.
    But we see the cpu usage at 95-98% every time from start of testing tofinishing?
    Is it still a good idea to put one more instance of weblogic instance orwill i be overloading the CPU again?
    thanks for any inputs

  • High CPU usage of 2 methods

    Hi forum,
    Using the new version of library I noted that the CPU is used at 100% during the execution of the program
    on a Intel Core 2 duo T8100 @2.10GHz with 2,00Gb of RAM..
    For investigate about the causes I made a bit of debug using some long sleeps...and the results are that
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(nomeFilein, 0);
    use the 55% of the CPU and the generation of the pdf document another 35%...
    The program that I'm creating will receive several simultaneous calls...so I trying to make it as light as possible.
    There is a way to reduce the CPU usage for that 2 fase of execution?
    Best regards,
    Andrea
    Edited by: Andrea Bonf on Mar 16, 2009 4:02 PM

    Hi Akshara,
    Could you please tell me which JVM version you are using?
    Is your report based on any type of connectivity?
         I use jdk1.6.0_12 and for some report a JDBC connection for other ODBC.
    How much time does it take approximately to export the report from the designer? Also, is there a noticeable difference while exporting from the designer and from the SDK point of view?
         The time(in sec) that it take to create the pdf is similar in both case...but the problem
            is the CPU usage(%)..if I use directly CrystalReport the CPU usage is minimal but using JAVA
            or the designer in Eclipse the CPU is stressed for some sec...
            Given that the print requests will be many I need to reduce the system usage (if one print
            use the 100% of CPU, 50 print request risk to block the system)
    Lastly, are you experiencing this issue for a particular report or several reports?
         several reports
    Andrea

  • IcedTea High CPU usage and multiple jobs created

    High CPU usage and multiple jobs created while streaming data via a java applet from a secure/certified website.  CPU usage is normal for a few minutes then suddenly jobs multiply and CPU usage climbs on one of the jobs. 
    Jobs with the following command begin to multiply in my job queue with one job showing CPU usage at 368% and staying resident in memory (yeah, a long one):
    /usr/lib/jvm/java-7-openjdk/jre/bin/java -Xbootclasspath/a:/usr/share/icedtea-web/netx.jar:/usr/share/icedtea-web/plugin.jar:/usr/share/java/js.jar: -classpath /usr/lib/jvm/java-7-openjdk/jre/lib/rt.jar sun.applet.PluginMain /run/user/1000/icedteaplugin-tbattist-SZ3xKO/7160-icedteanp-plugin-to-appletviewer /run/user/1000/icedteaplugin-tbattist-SZ3xKO/7160-icedteanp-appletviewer-to-plugin /run/user/1000/icedteaplugin-tbattist-SZ3xKO/7160-icedteanp-plugin-debug-to-appletviewer
    I have the following java packages installed on my system:
    local/icedtea-web-java7 1.5-1
    local/jdk7-openjdk 7.u51_2.4.6-1
    local/jre7-openjdk 7.u51_2.4.6-1
    local/jre7-openjdk-headless 7.u51_2.4.6-1
    I also get the following message in my system log when starting to stream:
    Apr 11 12:26:18 saturn logger[7872]: IcedTea-Web java error manual log:
    Apr 11 12:26:18 saturn logger[7873]: Application title was not found in manifest. Check with application vendor
    Apr 11 12:26:37 saturn logger[7883]: IcedTea-Web java error - for more info see itweb-settings debug options or console. See http://icedtea.classpath.org/wiki/IcedTea-Web#Filing_bugs for help.
    Anybody having this issue or clue on what to do?  I am wondering if recent changes to openssl (heartbleed) might have java change ramifications?  Should I submit bug to Icedtea?
    FYI - My system:
    Processor : 4x AMD A8-3870 APU with Radeon(tm) HD Graphics
    Memory : 7646MB (2518MB used)
    Operating System : Arch Linux 3.14.0-4
    OpenGL Renderer : Gallium 0.4 on AMD SUMO
    X11 Vendor : The X.Org Foundation

    ...further research and learning. 
    Here is a good tutorial on Java.  Evidently, what I called "jobs" is referred to as processes and threads in this tutorial.  The tutorial states that multithreaded execution is an essential feature of the Java platform which explains the avalanche of threads I observe.  However, I am still stumped at what causes the avalanche of threads and excessive CPU consumption for such a mediocre task.  Also the system log says that IcedTea has an error stating "Application title was not found in manifest. Check with application vendor".   I interpret this to mean that IcedTea does not recognized some application.  What application?  .....the applet?

Maybe you are looking for

  • How do I cut out imported objects and make background transparent?

    Illustrator CS3. I have embedded a jpeg picture which I need to cut out and make the background transparent. How do I do this? An opacity mask? How do I create a mask the same shape as the object I need to cut out? The object needs central pieces cut

  • FF not responding I have tried everything.

    I have tried clean install and disable of addons .I even had AT&T connect tech try to fix the problem.I hope you can help. Thanks

  • Career as Oracle Collaboration Suite DBA

    I am getting an opportunity to work on Oracle Collaboration Suite DBA in same company. If you have few mins then please can you guide me how is it to work on OCS. Will it be helpful for me if i learn this application also ? How is the market value of

  • Ads and tab pop-ups in random places all of a sudden?

    Before today, i started getting these Ads in random places; google homepage, under youtube videos, etc. Also on when i click on a website that are least likely to have popups such as this website, a new tab opens with random websites such as dominos

  • Are ServerSocketFactory backlog settings ignored on Fedora 8

    Hi all, Is there someone out there who met problems on setting backlog size of a server socket? In an application of mine I use the instructions ServerSocketFactory myServerSocketFactory = (ServerSocketFactory)ServerSocketFactory.getDefault(); myList