ParNew long pauses in Tomcat 6 on T5120.

I am running some simmulated user load for 50 concurent users on a Java application running inside Tomcat 6 on Sun's T5120 (8 processor 8G RAM) on Solaris 10. The utilization of the application seens to be ok (90-95%), but sometimes JVM goes into long GC pauses that are not acceptable for in my case. The longest pauses I can afford is about 10 seconds. The only other thing that's running on the machine is apache (mod_jk) that forwards the requests to the Tomcat process.
My GC Settings:
GC_VERBOSE_OPTS="-XX:+PrintTenuringDistribution -Xloggc:${CATALINA_HOME}/logs/gc_${TSTAMP}.log"
GC_VERBOSE="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime $GC_VERBOSE_OPTS"
MEMORY_SETTINGS="-Xms6912m -Xmx6912m -XX:NewSize=1728m -XX:MaxNewSize=1728m -XX:SurvivorRatio=8 -Xss256k -d64 -XX:PermSize=192M -XX:MaxPermSize=192M"
GC_SETTINGS=" -XX:+DisableExplicitGC -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -X:ParallelGCThreads=6
The output of verbose GC just before it goes into very long 55 second pause:
76824.094: [GC 76824.094: [ParNew
Desired survivor size 163027352 bytes, new threshold 16 (max 31)
- age   1:   28658536 bytes,   28658536 total
- age   2:   78258856 bytes,  106917392 total
- age   3:   47935016 bytes,  154852408 total
: 1592576K->152602K(1592576K), 0.7859117 secs] 4605449K->3213877K(6900992K), 0.7864152 secs]
Total time for which application threads were stopped: 0.7876342 seconds
Application time: 17.9823540 seconds
Total time for which application threads were stopped: 0.0037981 seconds
Application time: 0.0002300 seconds
76842.868: [Full GC 76842.868: [ParNew
Desired survivor size 163027352 bytes, new threshold 16 (max 31)
- age   1:   16586944 bytes,   16586944 total
- age   2:   24580024 bytes,   41166968 total
- age   3:   77453264 bytes,  118620232 total
- age   4:   41331496 bytes,  159951728 total
: 1568283K->157516K(1592576K), 0.5095165 secs] 4629559K->3218791K(6900992K), 0.5099791 secs]
Total time for which application threads were stopped: 0.5109060 seconds
Application time: 21.7442444 seconds
76865.132: [GC 76865.132: [ParNew
Desired survivor size 163027352 bytes, new threshold 5 (max 31)
- age   1:   70949544 bytes,   70949544 total
- age   2:     325496 bytes,   71275040 total
- age   3:   16995328 bytes,   88270368 total
- age   4:   51961024 bytes,  140231392 total
- age   5:   39539328 bytes,  179770720 total
: 1573196K->176896K(1592576K), 4.8568739 secs] 4634471K->3402338K(6900992K), 4.8573679 secs]
Total time for which application threads were stopped: 4.8667158 seconds
Application time: 0.0000997 seconds
76870.002: [GC [1 CMS-initial-mark: 3225442K(5308416K)] 3425594K(6900992K), 1.2304280 secs]
Total time for which application threads were stopped: 1.2421993 seconds
76871.233: [CMS-concurrent-mark-start]
Application time: 3.9732836 seconds
76875.212: [GC 76875.212: [ParNew
Desired survivor size 163027352 bytes, new threshold 5 (max 31)
- age   1:   89811184 bytes,   89811184 total
- age   2:   47431856 bytes,  137243040 total
- age   3:     229704 bytes,  137472744 total
- age   4:   10895976 bytes,  148368720 total
- age   5:   31371840 bytes,  179740560 total
: 1592576K->176896K(1592576K), 19.5701529 secs] 4818018K->3616356K(6900992K), 19.6394327 secs]
*Total time for which application threads were stopped: 19.6456021 seconds*
Application time: 5.3914509 seconds
76900.622: [GC 76900.622: [ParNew
Desired survivor size 163027352 bytes, new threshold 3 (max 31)
- age   1:   73583152 bytes,   73583152 total
- age   2:   73057080 bytes,  146640232 total
- age   3:   32981616 bytes,  179621848 total
- age   4:      98336 bytes,  179720184 total
- age   5:      12880 bytes,  179733064 total
: 1592576K->176896K(1592576K), 54.7521974 secs] 5032036K->3921814K(6900992K), 54.7527833 secs]
*Total time for which application threads were stopped: 55.1387374 seconds*
Application time: 5.3171414 seconds
76960.700: [GC 76960.700: [ParNew
Desired survivor size 163027352 bytes, new threshold 3 (max 31)
- age   1:   66359848 bytes,   66359848 total
- age   2:   62758584 bytes,  129118432 total
- age   3:   50477568 bytes,  179596000 total
: 1592576K->176896K(1592576K), 7.1058428 secs] 5337494K->4095887K(6900992K), 7.1063802 secs]
*Total time for which application threads were stopped: 7.1077796 seconds*
Application time: 12.7908379 seconds
Total time for which application threads were stopped: 0.0042312 seconds
Application time: 0.3358069 seconds
76980.938: [GC 76980.939: [ParNew
Desired survivor size 163027352 bytes, new threshold 3 (max 31)
- age   1:   69012896 bytes,   69012896 total
- age   2:   56309432 bytes,  125322328 total
- age   3:   54304696 bytes,  179627024 total
: 1592576K->176896K(1592576K), 2.5164799 secs] 5512702K->4233158K(6900992K), 2.5169843 secs]
Total time for which application threads were stopped: 2.5178621 seconds
Application time: 14.8490191 seconds
Total time for which application threads were stopped: 0.0070005 seconds
Application time: 0.0003056 seconds
76998.312: [Full GC 76998.313: [ParNew
Desired survivor size 163027352 bytes, new threshold 16 (max 31)
- age   1:   38875304 bytes,   38875304 total
- age   2:   63941104 bytes,  102816408 total
- age   3:   56090408 bytes,  158906816 total
: 1592576K->156275K(1592576K), 1.1885482 secs] 5648848K->4265573K(6900992K), 1.1891583 secs]
Total time for which application threads were stopped: 1.1899499 seconds
Application time: 8.8337996 seconds
I would appreciate some help tunning GC patameters to eliminate the long pauses.
Edited by: MikhailPDX on May 6, 2008 11:53 AM

I saw this posting before about pauses and I don't think I am having the same issue since I am using Java(TM) 2 Runtime Environment, Standard Edition 1.5.0_15-b04 Java HotSpot(TM) 64-Bit Server VM) where the mentioned pauses bug was supposedly fixed.
Edited by: MikhailPDX on May 7, 2008 10:30 AM

Similar Messages

  • Long pause of ParNew without Promotion failed.

    I encounter a same problem like " [Long pauses |http://forums.sun.com/thread.jspa?threadID=5240437] ", no "promotion failed" tip but ParNew cost more than 20s, the following is the gc log's snapshot:
    my jdk version is the latest JDK6u21 on RHEL5.1/IBM x3850 with 16core.
    I try to use -X::+UseMemBar, but no effect. anybody could help me?
    1913.579: [GC 1913.579: [ParNew
    Desired survivor size 33554432 bytes, new threshold 2 (max 2)
    - age 1: 15459032 bytes, 15459032 total
    - age 2: 10545904 bytes, 26004936 total
    : 433430K->35393K(458752K), 0.1056850 secs] 6509320K->6122752K(10420224K), 0.1061990 secs] [Times: user=0.83 sys=0.01, real=0.11 secs]
    Heap after GC invocations=3850 (full 10):
    par new generation total 458752K, used 35393K [0x000000057a000000, 0x000000059a000000, 0x000000059a000000)
    eden space 393216K, 0% used [0x000000057a000000, 0x000000057a000000, 0x0000000592000000)
    from space 65536K, 54% used [0x0000000596000000, 0x00000005982905c8, 0x000000059a000000)
    to space 65536K, 0% used [0x0000000592000000, 0x0000000592000000, 0x0000000596000000)
    concurrent mark-sweep generation total 9961472K, used 6087358K [0x000000059a000000, 0x00000007fa000000, 0x00000007fa000000)
    concurrent-mark-sweep perm gen total 63128K, used 37802K [0x00000007fa000000, 0x00000007fdda6000, 0x0000000800000000)
    Total time for which application threads were stopped: 0.1082700 seconds
    CMSCollector shouldConcurrentCollect: 1913.685
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.3237750 seconds
    CMSCollector shouldConcurrentCollect: 1935.690
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    CMSCollector shouldConcurrentCollect: 1937.692
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Total time for which application threads were stopped: 23.8250250 seconds
    CMSCollector shouldConcurrentCollect: 1937.834
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.0000880 seconds
    Total time for which application threads were stopped: 0.0016130 seconds
    CMSCollector shouldConcurrentCollect: 1937.836
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.0000580 seconds
    Total time for which application threads were stopped: 0.0004200 seconds
    CMSCollector shouldConcurrentCollect: 1937.837
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.0019560 seconds
    {Heap before GC invocations=3850 (full 10):
    par new generation total 458752K, used 428609K [0x000000057a000000, 0x000000059a000000, 0x000000059a000000)
    eden space 393216K, 100% used [0x000000057a000000, 0x0000000592000000, 0x0000000592000000)
    from space 65536K, 54% used [0x0000000596000000, 0x00000005982905c8, 0x000000059a000000)
    to space 65536K, 0% used [0x0000000592000000, 0x0000000592000000, 0x0000000596000000)
    concurrent mark-sweep generation total 9961472K, used 6087358K [0x000000059a000000, 0x00000007fa000000, 0x00000007fa000000)
    concurrent-mark-sweep perm gen total 63128K, used 37802K [0x00000007fa000000, 0x00000007fdda6000, 0x0000000800000000)
    1937.839: [GC 1937.839: [ParNew
    Desired survivor size 33554432 bytes, new threshold 2 (max 2)
    - age 1: 15389248 bytes, 15389248 total
    - age 2: 10280752 bytes, 25670000 total
    : 428609K->33832K(458752K), 0.0985530 secs] 6515968K->6131457K(10420224K), 0.0990430 secs] [Times: user=0.77 sys=0.01, real=0.10 secs]
    Heap after GC invocations=3851 (full 10):
    par new generation total 458752K, used 33832K [0x000000057a000000, 0x000000059a000000, 0x000000059a000000)
    eden space 393216K, 0% used [0x000000057a000000, 0x000000057a000000, 0x0000000592000000)
    from space 65536K, 51% used [0x0000000592000000, 0x000000059410a2c8, 0x0000000596000000)
    to space 65536K, 0% used [0x0000000596000000, 0x0000000596000000, 0x000000059a000000)
    concurrent mark-sweep generation total 9961472K, used 6097624K [0x000000059a000000, 0x00000007fa000000, 0x00000007fa000000)
    concurrent-mark-sweep perm gen total 63128K, used 37802K [0x00000007fa000000, 0x00000007fdda6000, 0x0000000800000000)
    Total time for which application threads were stopped: 0.0999980 seconds
    CMSCollector shouldConcurrentCollect: 1937.939
    time_until_cms_gen_full 4007.5147760
    free=3956579920
    contiguous_available=2070817568
    promotion_rate=885817
    cms_allocation_rate=0
    occupancy=0.6121208
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.0446810 seconds
    Total time for which application threads were stopped: 0.0048440 seconds
    CMSCollector shouldConcurrentCollect: 1937.988
    time_until_cms_gen_full 4007.5147760
    free=3956579920
    contiguous_available=2070817568
    promotion_rate=885817
    cms_allocation_rate=0
    occupancy=0.6121208
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.1273720 seconds
    {Heap before GC invocations=3851 (full 10):
    {Heap before GC invocations=3851 (full 10):
    par new generation total 458752K, used 427048K [0x000000057a000000, 0x000000059a000000, 0x000000059a000000)
    eden space 393216K, 100% used [0x000000057a000000, 0x0000000592000000, 0x0000000592000000)
    from space 65536K, 51% used [0x0000000592000000, 0x000000059410a2c8, 0x0000000596000000)
    to space 65536K, 0% used [0x0000000596000000, 0x0000000596000000, 0x000000059a000000)
    concurrent mark-sweep generation total 9961472K, used 6097624K [0x000000059a000000, 0x00000007fa000000, 0x00000007fa000000)
    concurrent-mark-sweep perm gen total 63128K, used 37808K [0x00000007fa000000, 0x00000007fdda6000, 0x0000000800000000)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Same problems occur with some of our server instances of a large server backend with huge heapsizes. Hardware is 16 x86 cores on Windows at one site. Although we dont't see "promotion failed" messages.
    -Djava.awt.headless=true
    -Djava.rmi.dgc.leaseValue=3600000
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Dfile.encoding=UTF-8
    -Xmx11000m
    -Xms7000m
    -Xmn3500m
    -XX:PermSize=768m
    -XX:MaxPermSize=768m
    -XX:+UseParNewGC
    -XX:+DisableExplicitGC
    -XX:+UseConcMarkSweepGC
    -XX:+CMSParallelRemarkEnabled
    -XX:-UseLargePages
    -XX:SoftRefLRUPolicyMSPerMB=1
    -XX:SurvivorRatio=1
    -XX:InitialTenuringThreshold=15
    -Xshare:off
    -verbose:class
    -verbose:gc
    -Xloggc:gc.log
    -XX:+PrintGCTimeStamps
    -XX:+PrintGCDateStamps
    -XX:+PrintGCDetails
    -XX:+PrintCMSInitiationStatistics
    -XX:PrintCMSStatistics=1
    -XX:+PrintGCTaskTimeStamps
    -XX:+PrintTenuringDistribution
    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.ssl=false
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.port=1234
    The following two options are currently disabled to exclude problems with concurrent CMS perm size collections:
    -XX:+CMSClassUnloadingEnabled
    -XX:+CMSIncrementalMode
    This extract of the GC log shows one pause of 40 seconds at 2010/11/19 08:35:30 during the ParNew phase which normally runs for only 0.05 to 0.1 seconds.
    INFO | jvm 1 | 2010/11/19 08:34:45 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:34:47 | CMSCollector shouldConcurrentCollect: 143805.306
    INFO | jvm 1 | 2010/11/19 08:34:47 | time_until_cms_gen_full 1857957.8130999
    INFO | jvm 1 | 2010/11/19 08:34:47 | free=425866008
    INFO | jvm 1 | 2010/11/19 08:34:47 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:34:47 | promotion_rate=203.795
    INFO | jvm 1 | 2010/11/19 08:34:47 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:34:47 | occupancy=0.8942350
    INFO | jvm 1 | 2010/11/19 08:34:47 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:34:47 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:34:49 | 2010-11-19T08:34:49.332+0100: 143807.135: [GC 143807.135: [ParNew
    INFO   | jvm 1    | 2010/11/19 08:35:30 | Desired survivor size 671088640 bytes, new threshold 15 (max 15)
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   1:  102644048 bytes,  102644048 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   2:   30772776 bytes,  133416824 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   3:   27784600 bytes,  161201424 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   4:   10277736 bytes,  171479160 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   5:       1696 bytes,  171480856 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   6:      60584 bytes,  171541440 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   7:       1968 bytes,  171543408 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   8:       2200 bytes,  171545608 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age   9:      81752 bytes,  171627360 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age  10:     153928 bytes,  171781288 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age  11:         48 bytes,  171781336 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age  12:        136 bytes,  171781472 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age  13:      10104 bytes,  171791576 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age  14:      41344 bytes,  171832920 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | - age  15:         96 bytes,  171833016 total
    INFO   | jvm 1    | 2010/11/19 08:35:30 | : 1410396K->197458K(2621440K), 40.7184593 secs] 4926671K->3713735K(6553600K), 40.7185248 secs]CMSCollector shouldConcurrentCollect: 143847.854
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620
    INFO | jvm 1 | 2010/11/19 08:35:30 | [Times: user=1.25 sys=0.36, real=40.71 secs]
    INFO | jvm 1 | 2010/11/19 08:35:30 | free=425864592
    INFO | jvm 1 | 2010/11/19 08:35:30 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:35:30 | promotion_rate=195.733
    INFO | jvm 1 | 2010/11/19 08:35:30 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:35:30 | occupancy=0.8942354
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | CMSCollector shouldConcurrentCollect: 143847.854
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620
    INFO | jvm 1 | 2010/11/19 08:35:30 | free=425864592
    INFO | jvm 1 | 2010/11/19 08:35:30 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:35:30 | promotion_rate=195.733
    INFO | jvm 1 | 2010/11/19 08:35:30 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:35:30 | occupancy=0.8942354
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | WrapperManager: The timer fell behind the system clock by 40700ms.
    INFO | jvm 1 | 2010/11/19 08:35:30 | CMSCollector shouldConcurrentCollect: 143847.865
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620
    INFO | jvm 1 | 2010/11/19 08:35:30 | free=425864592
    INFO | jvm 1 | 2010/11/19 08:35:30 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:35:30 | promotion_rate=195.733
    INFO | jvm 1 | 2010/11/19 08:35:30 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:35:30 | occupancy=0.8942354
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | CMSCollector shouldConcurrentCollect: 143847.865
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620
    INFO | jvm 1 | 2010/11/19 08:35:30 | free=425864592
    INFO | jvm 1 | 2010/11/19 08:35:30 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:35:30 | promotion_rate=195.733
    INFO | jvm 1 | 2010/11/19 08:35:30 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:35:30 | occupancy=0.8942354
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | CMSCollector shouldConcurrentCollect: 143847.866
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620
    INFO | jvm 1 | 2010/11/19 08:35:30 | free=425864592
    INFO | jvm 1 | 2010/11/19 08:35:30 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:35:30 | promotion_rate=195.733
    INFO | jvm 1 | 2010/11/19 08:35:30 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:35:30 | occupancy=0.8942354
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | CMSCollector shouldConcurrentCollect: 143847.866
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620
    INFO | jvm 1 | 2010/11/19 08:35:30 | free=425864592
    INFO | jvm 1 | 2010/11/19 08:35:30 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:35:30 | promotion_rate=195.733
    INFO | jvm 1 | 2010/11/19 08:35:30 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:35:30 | occupancy=0.8942354
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | CMSCollector shouldConcurrentCollect: 143847.866
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620
    INFO | jvm 1 | 2010/11/19 08:35:30 | free=425864592
    INFO | jvm 1 | 2010/11/19 08:35:30 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:35:30 | promotion_rate=195.733
    INFO | jvm 1 | 2010/11/19 08:35:30 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:35:30 | occupancy=0.8942354
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | CMSCollector shouldConcurrentCollect: 143847.866
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620
    INFO | jvm 1 | 2010/11/19 08:35:30 | free=425864592
    INFO | jvm 1 | 2010/11/19 08:35:30 | contiguous_available=2684354560
    INFO | jvm 1 | 2010/11/19 08:35:30 | promotion_rate=195.733
    INFO | jvm 1 | 2010/11/19 08:35:30 | cms_allocation_rate=0
    INFO | jvm 1 | 2010/11/19 08:35:30 | occupancy=0.8942354
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | initiatingPermOccupancy=0.9200000
    INFO | jvm 1 | 2010/11/19 08:35:30 | CMSCollector shouldConcurrentCollect: 143847.871
    INFO | jvm 1 | 2010/11/19 08:35:30 | time_until_cms_gen_full 1939631.4029620

  • Long pauses

    Hi,
    I'm trying to tune the JVM options for a JAVA app that requires low pauses. After playing around with several diferent combinations I still can not get a setup that will not give an occasional very long pause.
    Here's an example of a long pause from the stdout log:
    2007-11-24 07:44:29| occupancy=0.6494621
    2007-11-24 07:44:29| initiatingOccupancy=0.6800000
    2007-11-24 07:44:32| CMSCollector shouldConcurrentCollect: 64459.941
    2007-11-24 07:44:32| time_until_cms_gen_full 1986.2853957
    2007-11-24 07:44:32| free=4410787008
    2007-11-24 07:44:32| contiguous_available=1888036816
    2007-11-24 07:44:32| promotion_rate=1.98556e+06
    2007-11-24 07:44:32| cms_allocation_rate=0
    2007-11-24 07:44:32| occupancy=0.6494621
    2007-11-24 07:44:32| initiatingOccupancy=0.6800000
    2007-11-24 07:44:32| Total time for which application threads were stopped: *46.1601130 seconds*
    2007-11-24 07:44:32| CMSCollector shouldConcurrentCollect: 64461.180
    2007-11-24 07:44:32| time_until_cms_gen_full 1986.2853957
    2007-11-24 07:44:32| free=4410787008
    2007-11-24 07:44:32| contiguous_available=1888036816
    2007-11-24 07:44:32| promotion_rate=1.98556e+06
    2007-11-24 07:44:32| cms_allocation_rate=0
    2007-11-24 07:44:32| occupancy=0.6494621
    2007-11-24 07:44:32| initiatingOccupancy=0.6800000
    2007-11-24 07:44:32| CMSCollector shouldConcurrentCollect: Total time for which application threads were stopped: 0.0048
    4
    The pause of 46 seconds is not good for the application. It would be OK to have an occasional 5 sec pause but not 46 seconds.
    I've been through likely all JVM tunning papers, blogs and previus postings to this forum.
    BTW I know that some of the JVM options I'm setting are already the default but it helps me keep track of which options I tried.
    Can anyone help?
    Here are some details:
    Platform: Linux 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 09:40:21 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
    16GB of physical memory, 2 x dual core CPUs AMD 1.86GHz
    java version "1.6.0_02"
    Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
    Java HotSpot(TM) Server VM (build 1.6.0_02-b05, mixed mode)
    JVM options:
    -Xbatch -XX:-DontCompileHugeMethods -XX:CMSMaxAbortablePrecleanTime=10000
    -XX:+UseConcMarkSweepGC
    -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=68
    -XX:+UseParNewGC -XX:SurvivorRatio=15
    -XX:+CMSConcurrentMTEnabled -XX:ParallelGCThreads=4 -XX:+CMSParallelSurvivorRemarkEnabled -XX:InitialTenuringThreshold=1 -XX:MaxTenuringThreshold=8 -XX:TargetSurvivorRatio=90 -XX:ThreadPriorityPolicy=0 -XX:+AggressiveOpts -XX:CMSTriggerRatio=65 -XX:+AlwaysActAsServerClassMachine -XX:+UseCMSCompactAtFullCollection
    -XX:CMSFullGCsBeforeCompaction=0 -XX:+CMSPermGenSweepingEnabled
    -XX:+CMSClassUnloadingEnabled -XX:+CMSParallelRemarkEnabled -XX:PrintCMSStatistics=1 -XX:+PrintCMSInitiationStatistics
    -XX:+PrintGCApplicationStoppedTime -verbose:gc -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+UseTLAB
    -Xms13000m -Xmx13000m -XX:MaxNewSize=1000m -XX:NewSize=1000m -XX:ThreadStackSize=128

    I encounter same problem, no "promotion failed" tip but ParNew cost more than 20s, the following is the gc log's snapshot:
    my jdk version is the latest JDK6u21 on RHEL5.1/IBM x3850 with 16core.
    I try to use -X::+UseMemBar, but no effect.
    1913.579: [GC 1913.579: [ParNew
    Desired survivor size 33554432 bytes, new threshold 2 (max 2)
    - age   1:   15459032 bytes,   15459032 total
    - age   2:   10545904 bytes,   26004936 total
    : 433430K->35393K(458752K), 0.1056850 secs] 6509320K->6122752K(10420224K), 0.1061990 secs] [Times: user=0.83 sys=0.01, real=0.11 secs]
    Heap after GC invocations=3850 (full 10):
    par new generation total 458752K, used 35393K [0x000000057a000000, 0x000000059a000000, 0x000000059a000000)
    eden space 393216K, 0% used [0x000000057a000000, 0x000000057a000000, 0x0000000592000000)
    from space 65536K, 54% used [0x0000000596000000, 0x00000005982905c8, 0x000000059a000000)
    to space 65536K, 0% used [0x0000000592000000, 0x0000000592000000, 0x0000000596000000)
    concurrent mark-sweep generation total 9961472K, used 6087358K [0x000000059a000000, 0x00000007fa000000, 0x00000007fa000000)
    concurrent-mark-sweep perm gen total 63128K, used 37802K [0x00000007fa000000, 0x00000007fdda6000, 0x0000000800000000)
    Total time for which application threads were stopped: 0.1082700 seconds
    CMSCollector shouldConcurrentCollect: 1913.685
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.3237750 seconds
    CMSCollector shouldConcurrentCollect: 1935.690
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    CMSCollector shouldConcurrentCollect: 1937.692
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Total time for which application threads were stopped: 23.8250250 seconds
    CMSCollector shouldConcurrentCollect: 1937.834
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.0000880 seconds
    Total time for which application threads were stopped: 0.0016130 seconds
    CMSCollector shouldConcurrentCollect: 1937.836
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.0000580 seconds
    Total time for which application threads were stopped: 0.0004200 seconds
    CMSCollector shouldConcurrentCollect: 1937.837
    time_until_cms_gen_full 144.6930408
    free=3967091720
    contiguous_available=2076692424
    promotion_rate=2.45972e+07
    cms_allocation_rate=0
    occupancy=0.6110903
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.0019560 seconds
    {Heap before GC invocations=3850 (full 10):
    par new generation   total 458752K, used 428609K [0x000000057a000000, 0x000000059a000000, 0x000000059a000000)
      eden space 393216K, 100% used [0x000000057a000000, 0x0000000592000000, 0x0000000592000000)
      from space 65536K,  54% used [0x0000000596000000, 0x00000005982905c8, 0x000000059a000000)
      to   space 65536K,   0% used [0x0000000592000000, 0x0000000592000000, 0x0000000596000000)
    concurrent mark-sweep generation total 9961472K, used 6087358K [0x000000059a000000, 0x00000007fa000000, 0x00000007fa000000)
    concurrent-mark-sweep perm gen total 63128K, used 37802K [0x00000007fa000000, 0x00000007fdda6000, 0x0000000800000000)
    1937.839: [GC 1937.839: [ParNew
    Desired survivor size 33554432 bytes, new threshold 2 (max 2)
    - age   1:   15389248 bytes,   15389248 total
    - age   2:   10280752 bytes,   25670000 total
    : 428609K->33832K(458752K), 0.0985530 secs] 6515968K->6131457K(10420224K), 0.0990430 secs] [Times: user=0.77 sys=0.01, real=0.10 secs]
    Heap after GC invocations=3851 (full 10):
    par new generation total 458752K, used 33832K [0x000000057a000000, 0x000000059a000000, 0x000000059a000000)
    eden space 393216K, 0% used [0x000000057a000000, 0x000000057a000000, 0x0000000592000000)
    from space 65536K, 51% used [0x0000000592000000, 0x000000059410a2c8, 0x0000000596000000)
    to space 65536K, 0% used [0x0000000596000000, 0x0000000596000000, 0x000000059a000000)
    concurrent mark-sweep generation total 9961472K, used 6097624K [0x000000059a000000, 0x00000007fa000000, 0x00000007fa000000)
    concurrent-mark-sweep perm gen total 63128K, used 37802K [0x00000007fa000000, 0x00000007fdda6000, 0x0000000800000000)
    Total time for which application threads were stopped: 0.0999980 seconds
    CMSCollector shouldConcurrentCollect: 1937.939
    time_until_cms_gen_full 4007.5147760
    free=3956579920
    contiguous_available=2070817568
    promotion_rate=885817
    cms_allocation_rate=0
    occupancy=0.6121208
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.0446810 seconds
    Total time for which application threads were stopped: 0.0048440 seconds
    CMSCollector shouldConcurrentCollect: 1937.988
    time_until_cms_gen_full 4007.5147760
    free=3956579920
    contiguous_available=2070817568
    promotion_rate=885817
    cms_allocation_rate=0
    occupancy=0.6121208
    initiatingOccupancy=0.6500000
    initiatingPermOccupancy=0.9200000
    Application time: 0.1273720 seconds
    {Heap before GC invocations=3851 (full 10):
    {Heap before GC invocations=3851 (full 10):
    par new generation   total 458752K, used 427048K [0x000000057a000000, 0x000000059a000000, 0x000000059a000000)
      eden space 393216K, 100% used [0x000000057a000000, 0x0000000592000000, 0x0000000592000000)
      from space 65536K,  51% used [0x0000000592000000, 0x000000059410a2c8, 0x0000000596000000)
      to   space 65536K,   0% used [0x0000000596000000, 0x0000000596000000, 0x000000059a000000)
    concurrent mark-sweep generation total 9961472K, used 6097624K [0x000000059a000000, 0x00000007fa000000, 0x00000007fa000000)
    concurrent-mark-sweep perm gen total 63128K, used 37808K [0x00000007fa000000, 0x00000007fdda6000, 0x0000000800000000)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem with long pauses in Tenured collection

    We have a Swing application running on Windows XP, which gets long pauses when Tenured objects are collected after a running couple of days.
    System:
    Windows XP
    Intel Pentium M 1.8 ghz
    512 MB ram
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
    JVM Arguments:
    -XX:+ForceTimeHighResolution -Xloggc:gc.log -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xms16m -Xmx384m
    The first Tenured collections after 1 hour:
    3520.317: [GC 3520.317: [DefNew: 2414K->242K(2432K), 0.0035340 secs]3520.320: [Tenured: 32111K->15691K(32140K), 0.3034778 secs] 34405K->15691K(34572K), 0.3072704 secs]
    3673.867: [GC 3673.868: [DefNew: 2335K->125K(2432K), 0.0028552 secs]3673.870: [Tenured: 32042K->18786K(32140K), 0.2668128 secs] 34312K->18786K(34572K), 0.2699225 secs]
    3839.103: [GC 3839.103: [DefNew: 2423K->156K(2432K), 0.0028918 secs]3839.106: [Tenured: 32126K->22544K(32140K), 0.3026440 secs] 34341K->22544K(34572K), 0.3058143 secs]Pretty harmless so far.
    After 1 day:
    85332.923: [GC 85332.924: [DefNew: 6528K->703K(6528K), 0.0122671 secs]85332.936: [Tenured: 86929K->48880K(87032K), 0.6243351 secs] 92687K->48880K(93560K), 0.6369188 secs]
    97305.405: [GC 97305.405: [DefNew: 6493K->91K(6528K), 0.0041855 secs]97305.410: [Tenured: 86755K->55828K(86776K), 0.5189188 secs] 92662K->55828K(93304K), 0.5233905 secs]
    97844.653: [GC 97844.653: [DefNew: 7040K->768K(7040K), 0.0142342 secs]97844.668: [Tenured: 93393K->57002K(93432K), 0.5293686 secs] 99611K->57002K(100472K), 0.5438841 secs]The time between two Tenured collection just took a jump now to about 3 hours. The gc length is about half a second.
    After 3 days:
    256894.994: [GC 256894.994: [DefNew: 13938K->1166K(14720K), 0.0080440 secs]256895.002: [Tenured: 195455K->114421K(195696K), 0.8638032 secs] 208915K->114421K(210416K), 0.8721174 secs]
    258670.232: [GC 258670.232: [DefNew: 14327K->1600K(14720K), 0.0273586 secs]258670.259: [Tenured: 196045K->117861K(196104K), 0.9146393 secs] 209062K->117861K(210824K), 0.9422603 secs]
    261577.464: [GC 261577.464: [DefNew: 14144K->584K(14848K), 0.0078192 secs]261577.472: [Tenured: 196705K->121486K(196820K), 0.8976985 secs] 210412K->121486K(211668K), 0.9058215 secs]The Tenured collection interval is about 2-3 hours now. Each collection is about 1 second.
    Then we get some peaks after 4 days:
    413096.848: [GC 413096.848: [DefNew: 20126K->997K(21504K), 0.0067539 secs]413096.855: [Tenured: 285819K->160167K(285828K), 2.9034254 secs] 305888K->160167K(307332K), 2.9103817 secs]
    472214.414: [GC 472214.414: [DefNew: 22388K->1227K(23616K), 0.0095498 secs]472214.424: [Tenured: 313891K->178781K(313992K), 22.2893423 secs] 336110K->178781K(337608K), 22.3386254 secs]
    485465.045: [GC 485465.045: [DefNew: 23616K->2423K(23616K), 0.0404118 secs]485465.086: [Tenured: 315925K->203606K(316040K), 9.0069023 secs] 336994K->203606K(339656K), 9.0477205 secs]
    492248.783: [GC 492248.783: [DefNew: 24461K->24461K(25536K), 0.0000111 secs]492248.783: [Tenured: 338665K->201218K(339344K), 6.5526445 secs] 363126K->201218K(364880K), 6.5985010 secs]
    533898.023: [GC 533898.023: [DefNew: 25913K->25913K(27200K), 0.0000150 secs]533898.024: [Tenured: 337387K->205940K(363008K), 3.2169493 secs] 363301K->205940K(390208K), 3.2172333 secs]
    546566.675: [GC 546566.675: [DefNew: 27199K->27199K(27200K), 0.0000103 secs]546566.675: [Tenured: 338319K->227086K(363008K), 26.2682151 secs] 365519K->227086K(390208K), 26.2684060 secs]
    562738.779: [GC 562738.780: [DefNew: 26081K->26081K(27200K), 0.0000104 secs]562738.780: [Tenured: 336929K->230971K(363008K), 7.9569240 secs] 363010K->230971K(390208K), 7.9571524 secs]The average time between each young collection is approx. 20 seconds.
    7 full gc's have been performed:
    3.877: [Full GC 3.877: [Tenured: 1759K->1831K(15168K), 0.0801147 secs] 2351K->1831K(16320K), [Perm : 12287K->12287K(12288K)], 0.0802154 secs]
    6.281: [Full GC 6.281: [Tenured: 5071K->4056K(15168K), 0.1245083 secs] 6018K->4056K(16320K), [Perm : 16383K->16383K(16384K)], 0.1245978 secs]
    184.854: [Full GC 184.854: [Tenured: 12628K->10437K(15168K), 0.2133769 secs] 12995K->10437K(16320K), [Perm : 20480K->20480K(20480K)], 0.2135845 secs]
    5216.782: [Full GC 5216.782: [DefNew: 3008K->101K(3008K), 0.0044835 secs] 35049K->32886K(42340K), 0.0046464 secs]
    198022.892: [Full GC 198022.892: [DefNew: 11520K->790K(11520K), 0.0110744 secs] 117670K->108219K(164672K), 0.0112750 secs]
    254208.982: [Full GC 254208.982: [DefNew: 13765K->844K(14720K), 0.0059109 secs] 151946K->139025K(210056K), 0.0061115 secs]
    566774.751: [Full GC 566774.751: [DefNew: 25680K->1611K(27200K), 0.0103055 secs] 274385K->250385K(390208K), 0.0105140 secs]The long pauses are not acceptable at all. Only pauses under 1 second are tolerable.
    I know there is at least one memory leak in the logged software, where probably 50.000-100.000 ThreadGroups are produced each day and not collected (but only with some configurations).
    So, after browsing around, I have found out that UseConcMarkSweepGC could reduce the long pauses. I tried it together with CMSIncrementalMode, but the JVM running at one of our customers crashed after 2 hours while using both options together. Apparently there where some issues with the incremental collector, which was fixed in 1.6. I was forced to remove the VM arguments immediately, but will probably use UseConcMarkSweepGC later after some thorough testing.
    I have tried find out which other VM options I could use to tune the application, but I'm quite new to this and the amount of options are a bit overwhelming at the moment. I thought I could ask here if someone know some obvious option values (like NewRatio,SurvivorRatio etc.)

    >
    >
    Doesn't a "Full Collection" always collect all generations (i.e. also the perm generation)? It's always been my understanding, that a "Full Collection" is some kind of "irregular" collection which only occurs if the JVM has "really bad need" for memory (e.g. when the concurrent phase of a CMS collection fails, when perm runs full or if someone calls System.gc()). So, as you write earlier, the first 3 collections labeld "Full GC" are real full GCs since they collect all generations (including perm). The latter four collections shouldn't be labeld "Full GC" (as you write). Yes, a full collection collects all the generations including the
    perm generation.
    In a stop-the-world collector such as the one you're using, a full
    collection is not an unusual collection. They just happen less
    frequenctly. Objects that survive a minor collection (collection
    of the young gen) a few times will be promoted (copied to) the
    tenured generation. The idea is that such objects may be
    long lived so should be promoted to save the cost of handling
    them during a minor collection. Eventually the tenured
    generation gets full and then it gets collected.
    And yes and yes. The first 3 are full collections and the
    latter 4 are labelled incorrectly as full collections.
    >
    However, there are a lot of collections with "DefNew" followed by "Tenured" (the first three sections in the original post) which are regular collections where the promotion of objects from new to old caused the old generation to run full which triggers a "Tenured collection". But these collections (according to my understanding) are not full collections, but only regular tenured collections. (Sorry, I don't want to be picky about this. I guess that's even what you meant in your post...)I can see how this can be unclear. A "Tenured" collection
    is a full collection. It also collects the perm gen. And
    in fact it also collects the young gen again. This is how it
    is implemented in the hotspot JVM. It can be implemented
    differently in other JVM's.
    The situation where a "DefNew" is followed by a "Tenured"
    as in your logs is a bit unusual I think. The minor collection
    is reducing the amount of used space in young generation.
    DefNew: 13938K->1166K(14720K)
    The decrease from 13938K to 1166K. There is then a collection
    of the tenured gen.
    Tenured: 195455K->114421K(195696K)
    I've seen this when large objects (a significant fraction of
    the young gen) are being allocated. The allocation fails in
    the young gen, a minor collection is done but the space freed
    in the young gen is still not large enough to allocate the object
    so a collection of the tenured generation is done and the large
    object is allocated directly out of the tenured gen. In the numbers
    above after the minor collection about 13M of free space is
    available in the young gen. Are you allocating objects larger
    that 13M?

  • Long pauses in podcasts feature

    I have itunes 11.1.4. I download a lot of podcasts. Now when I try to go to podcasts, and refresh, or click on any podcast or its info, and sync to my ipod or iphone, there is a long pause for each of these steps, about 1-2 minutes each (spinning pinwheel). I had no problem for years. What's different?

    Some options you might find useful are
    -Xloggc:gc.log -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime
    This will show you when the application actually stops the world. Note: there are other reasons an application can stop and it shows you them all not just GCs.

  • Long pause when opening PDFs - v10.1.3 Win 7 64bit

    Hi all, when opening any PDF, most of the time I seem to get a long pause in Adobe Reader straight after the PDF document has loaded (around 10 to 20 seconds or so). This has only recently started happening. I'm running Windows 7 Pro 64bit, SP1, 8GB RAM, Intel Core i5 3.30GHz and a 256GB SSD drive.
    Re-installing Adobe Reader hasn't helped, but are there some other suggestions I could try? Thanks for any help.

    A good possibility is that the latest version of Photoshop is demanding things of your display driver that it hasn't been asked to do before.  Display driver updates do solve a LOT of issues...  I suggest you visit the web site of the maker of your video card and see if they offer an updated display driver you can download and install.
    Your mention of the type tool issues implies a possibly corrupted or badly formed font.   Chris Cox just the other day shared a neat link to a handy font troubleshooting page...  http://kb2.adobe.com/cps/843/cpsid_84363.html
    Lastly, it never hurts to set all Photoshop preferences back to defaults and then reconfigure only the things you know you need to change...  Do this by pressing and holding Control - Shift - Alt when cold-starting Photoshop.  You have to be very quick, and if you're quick enough Photoshop will prompt you to confirm the deletion of the current preferences.
    Good luck!
    -Noel
    P.S., At the moment, on my system Photoshop CS5 seems very stable.  I had some periods of instability, and display driver updates from ATI seem to have solved that completely.  Currently I'm using Catalyst 11.9, which may be interesting to you if you're using an ATI card.

  • I have OSX 10.6.8, running Quicktime Player 10, why don't the videos I play run continuously w/o long pauses?

    Why do I get long pauses in my videos with a symbol that appears to be reloading the video continuously? That doesn't make a lot of sense, but if You've had it happen to you, you'll know what I'm talking about.

    Hi Shirley,
    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    So we know more about it...
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • Diagnosing strange behaviour: Long pauses for dialogue boxes/slips

    I've been enduring this odd situation for some weeks now and it's getting quite annoying: when slips and dialogue boxes appear in all applications there is a long pause and the beach ball cursor appears. The pause can last between 5 and 15 seconds wherein the application is unresponsive. Strangely this only seems to happen the first time the slip appears: successive appearances present little or no delay and can be dismissed as soon as they appear.
    I have tried all the usual incantations and maintenance routines with no improvement. In my mind this behaviour commenced with the latest Software Update (10.4.6) but this may be coincidence.
    I'd be surprised if anyone has a ready solution for this problem so what I'd like instead is some suggestions on how to go about diagnosing such things. I've tried using Activity Manager but there are many processes that mean nothing to me. I wouldn't know if they were malignant if they reared up and bit me. Perhaps the Console and various log files may be useful but I don't know what to look for.
    I'd appreciate any suggestions, remedies or pointers to sources of further information.
    Thanks.
    1.25 GHz PowerBook G4 15", 512 MB DDR SDRAM   Mac OS X (10.4.3)   Shoe size: 11

    Hi, Andrew.
    Two further suggestions:
    1. Do you have a second user account defined on your system? If so, log in to it and see if the problem happens there. If it does, it is probably a system-wide problem. If not, it is something with your user account. If you don't have a second account on your system, you can create a new one using System Preferences > Accounts.
    2. See if a third-party Startup or Login Item may be causing the issue. My "Troubleshooting Startup and Login Items" FAQ can help you pin that down if such an item is causing the problem.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Experience long pauses loading sites

    In the last 2 weeks I have been experiencing long pauses when trying to load web sites. Sometimes I get firefox not responding then after several seconds the new site pops up. Sometimes the little circle stops spinning and goes solid then once again after several seconds the new site pops up. When streaming video the site will pop up with a blank screen and then after several seconds to more than a minute the video pops up and begins to stream. I have triied the same sites inIE and they load instanly

    No problems here.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • Long pauses and some crashes

    Hallo,
    I got my first macbook some days ago and I see some strange behavior that I hope somebody knows and could explain.
    The first boot out of the box was ok till I come to "user picture" setup window. From there, with camera active, the computer has started to take some long pauses: I often got the round rolling cursor and I just have to wait... but I don't know wait what. Anyway I have completed the setup and got OS X running. Unfortunally it was starting to do the same on the OS too; I have made a couple of restarts but nothing was changing.
    So I take the OS X dvd and I made a new fresh installation of the os.
    Things went much better from there...but not always.
    Sometimes the round rolling curson comes out and I have to "wait for something". I have tried to use the monitor utility but I didn't find any service wasting cpu or memory when that happens.
    I was thinking about hdd movement protection, but it happens when the notebook is on the desk too...
    I was thinking about power saving shuting down the hdd when not in use, but I cannot hear start/stop noise and it takes too much time.
    So I really don't understand what could be.
    A couple of times things went more badly: I start to see the "wait cursor", than all starts to become slower...and finally the cursor hangs too, I cannot do anything.. just listen the fan running faster. I have tried the key combination to kill services but it doesn't work. So I just had to press power button for some seconds
    Do anybody have some idea or suggestion about understanding this issue?
    By my side I could give these more datails:
    - I have installed the last version of parallels desktop;
    - I have upgraded the RAM from 1 GB to 2GB, but the problem was the same before and after;
    - I have run the hardware test form OS X DVD and no error was found.
    thank you

    I have moved some steps ahead:
    - I see that by changing network properties the locks frequency was changing, expecially when disabling wirelss connection;
    - I have removed the HDD and replaced it with another one where I have reinstalled OS X while the computer was connected to the network (and to the Internet) by a wired connection. Using this new installation and using basic wireless settings, leaving default values and a computer to computer ad hoc wireless connection all has worked well for more then one day. I was able to do all without any pause, or the only pauses were due to hdd heavy usage by virtual machine installation under Fusion. OS X update was not installed.
    After this "heavy" use of the notebook with this new hdd and no pauses at all, I have switched back to the original hdd: the computer have immediately started to slow down and leave me wait and wait...
    To be really sure I have now booted in XP using bootcamp partition and I have installed and executed the Fujitsu HDD Diagnostic Tool with Extended Drive test. No errors were found on the drive.
    I am now going to reinstall OS X on the original drive using wired network and default wireless setting to check if this will be enought to have the system work well like in the test hdd.
    If this happens like I suppose and hope I am going to think that there are heavy problems with the wireless software on OS X. I will let you know.
    Not really a very easy and fast start in using Mac computer and OS X... for now windows and pc are still better... macbook is nicer sure.

  • Long pauses during printing

    I have an HP C5550 all in one.  It workd fine for quite awhile, but now there are long pauses after it prints each line.  Tried unplugging the USB cable and doing a sef-test and got the same result

    Hello there! Welcome to the forums @rachp ,
    I read your post about how your printing is pausing after each line. As the printer is also pausing when you do the self test prints from the printer, this would point towards a hardware problem. I would suggest a power reset and ensure the printer is plugged in directly to the wall outlet, avoiding power bars.
    Press the Power button to turn on the product.
    With the product turned on, disconnect the power cord from the rear of the product.
    Unplug the power cord from the wall outlet.
    Wait at least 15 seconds.
    Plug the power cord back into the wall outlet.
    Reconnect the power cord to the rear of the product.
    If the product does not turn on by itself, press the Power button to turn it on.
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you, such as a replacement or trade in. If you are calling within North America, the number is 1-800-474-6836 and if you are calling outside of the US/Canada region,: click here.
    Best wishes
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • New "long pause" when I'm trying to select an item from a long menu?

    So, just in the past few days whenever I try to select an item out of a long menu, I'm unable to select it until after a long pause of approx 30 seconds. For example, in Handbrake if I scroll through chapters and want to pick a certain chapter, the program sits for about 30 seconds before it will select the chapter.
    This has also happened in Itunes when I'm trying to select a genre. It will allow me to scroll all the way down with no problem but when I try to select the genre it sits there for about 30 seconds before doing anything.
    Anybody else having this issue? Any fixes?
    Thanks.

    nobody else having this happen?

  • Long pause before a .pdf opens when right-clicking

    When opening a .pdf with Adobe Reader 9.3.2 in Windows XP Explorer by double-clicking it or by right-clicking then selecting Open with Adobe Reader 9, there is a long pause (22 seconds) before it opens.  If I disable then re-enable my local area network connection, these symptoms disappear for a while and the .pdf files seem to open normally (within a second or two). What could be causing this?  When opening a .pdf from within the Adobe Reader program itself, the .pdf files seem to open normally whether the local network connection is enabled or disabled.  

    Sometimes after a Microsoft Update, doc and xls files open slowly.  Apparently, Microsoft Update keeps resetting the DDE (Dynamic Data Exchange) in the doc and xls file types.  To fix this, I follow the instructions at the following Website:
    http://forums.techarena.in/ms-office-support/749154.htm
    Here are the instructions I follow for doc and xls.
    If the problem is ONLY when you double-click on a file to open it. the
    problem is likely due to DDE. It can be fixed by reinstalling, OR this
    workaround.
    Go to Control Panel, Folder Options, File Types, scroll down to and
    select XLS, click Advanced, select Open entry, click the edit Button.
    Now uncheck "Use DDE" and then put your cursor in the Application box,
    arrow all the way to the right and put in "%1" (include the quote
    marks), IF there is /dde remove it. Then OK you way out. Things should
    work quickly again.
    After doing this, doc and xls files open normally again.  But this does not work with pdf files, it has to be something else I haven’t figured out yet.  The Disk Defragmanter Analysis says I don’t have to defrag my C: drive, and the system idle process is at 98% when the file is being opened.

  • Long pause after login screen on Mountain Lion

    Here's some strange behaviour I noticed on a quite fresh and clean install of Mountain Lion:
    There's a long pause (around 10 sec) after I type my password in the login screen until the Desktop is actually shown. The funny part is: if I hit the key for Mission Control during that pause, the I'm able to see the Desktop and interact with it, while the login screen is moved to the side. The Finder is fully usable but as soon as I start an application, the login screen moves back in and covers all until finally the login animation is displayed.
    I never experienced that behaviour before and always had the whole boot process in less than 15 secs. Now it takes up to 30 secs until I see the desktop.
    I already tried a lot (HardDisk Utility, permissions, LaunchAgents, LaunchDemons, StartupItems etc) with no luck. Theres nothing in the Konsole for this pause.
    Any ideas? My world won't crumble about this but I'm curious what might cause this delay.
    Thanks in advance,
    Arroyodorado

    I had no luck with that one either. Maybe Mountain Lion is not longer accepting that particular command setting. Thanks for trying to help though. If you ever find out please give me a shout.
    To recap, the Terminal commands...
    sudo defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -int 1
    and
    # Enable tap to click on a Magic Trackpad
    defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
    # Enable tap to click for the active user
    defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
    # Enable tap to click on the login screen
    defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
    ... have not worked when using OSX Mountain Lion.
    Has anyone else got any other options we could try?

  • How can I play online videos without many long pauses during play?

    I have current flash and 7.  Lately, all online videos have many long pauses throughout play.  They used to play continuously through.  Flash is enabled.
    How can I solve this?

    To help troubleshoot we'll need the following system information:
    Operating   system  
    Browser  
    Flash   Player version
    When reporting issues with video or audio, it's also helpful to get your system hardware and driver details.  Instructions for finding this information can be found here:
    Windows  
    Mac
    Finally, sometimes video and audio problems are caused at a lower level and not directly related to Flash Player.  I recommend trying both of the links below to see how they perform.  If the problem exists with both, then Flash Player is most likely not the culprit as the HTML5 video link does not use Flash Player when playing.  You can verify the use of HTML5 by right clicking the HTML5 video and looking for the words "About HTML5" at the bottom of the context menu.
    HTML5   video  
    Non-HTML5 video

Maybe you are looking for

  • Seeburger EDI to IDoc

    Hi, The actual payload is not getting generated in the EDI to IDoc scenario. The acknowledgment is getting generated. What could be the possible error?

  • How can I get my itunes library into my Iphone?

    I have manged to sync my Iphone with macbook pro laptop, however, my Itunes library hasnt transferred from my laptop to my Iphone: iphone's itunes library only contains a few purchases.

  • Publish Aggregator flash file in version 8?

    I would like to use the aggregator in Captivate 4 as a menu to link several tutorials together.  However, my company uses Flash Player version 8 (PCs are locked down and NO ONE is allowed to upgrade anything).  This is no problem with the individual

  • What is the best scribe program for a Mac Book Pro?

    I am looking to purchase a scribe program for my new Mac Book Pro.  I need support as my arms/hands get numb.  I do a lot of writing.  What do you think would be the best for my Mac Book Pro? Many Thanks!!

  • WHY CAN'T i OPEN UP MY HTTPS PAGE

    I can only access my pay check from a computer. It is an https site. I was able to see my check on line, but now it will only just sit an spin. What do I need to do to correct this? Every person from my work place is supposed to be able to check our