Long *DEADLY* GC pauses with parallel collector

Hi everybody,
I am having a major problem with the Java garbage collector. My company runs a web server that processes an average of 17 requests per second (with peaks up to 50,000/sec). Normally this load is handled fine by the application. We have done a lot of work to make sure the memory used by our application does not grow over time (i.e. profiled for leaks), but we still have full GCs being done every 15 mins or so. --But all that is fine, and normal operation. Due to the nature of our server, responsiveness is important so we must keep the max pause and average pause as low as possible, and thus maximize throughput.
However, even though we're running the parallelGC, occasionally we run into a problem where the garbage collector pauses the whole JVM. This is deadly to our servers, and causes requests to queue up and the machine's system load to skyrocket. Sometimes this ends up taking down the whole machine. The strange part is that our reporting indicates that all other aspects of our systems (the Java app, the network, the database, etc.) are all running completely fine when these pauses happen --it seems that nothing triggers them.
Here is an illustration (taken straight from the GC viewer) of what happens:
http://www.darylbeattie.com/img/gc_high_load.jpg
And here are our JVM parameters (minus the GC log options, classpath and other common stuff):
-server -Xms1288m -Xmx1288m -Xss128k -XX:ThreadStackSize=128 -XX:+DisableExplicitGC -XX:+UseAdaptiveSizePolicy -XX:+UseParallelGC
We're using JDK 1.5.0_05, and we've tried to upgrade to 1.6 but found that the GC issues were still there. We don't want to upgrade until we're sure that we can live with the new GC.
We have fiddled with many different GC options over the years. We have tried the conc-mark-sweep GC and found it to be worse. We would be pleased with the parallel GC as long as we could get rid of these strange pauses.
My questions is: What can be done to alleviate these strange pauses?
Also, I didn't see a forum to post questions about tweaking the GC, so I'm posting to this one. Please direct me to the right forum if this is the wrong one. **X-post from "bigadmin" forum where I got no replies**

So with the Concurrent Low Pause collector things are far worse.
The server only runs for 45 minutes or so before there is a major collection that results in pausing our application for 18 seconds --this is almost 3 times worse than the deadly max pauses we were getting with the parallel GC, which were around 7 seconds at their worst.
The settings I was using for the GC were: -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 -XX:+PrintGCDetails -XX:-TraceClassUnloading
What advice can you folks give me to help wrestle these max pauses down to a smaller amount? 7 seconds is enough to take down our server under high load... we'd like it to be around 1 second max.

Similar Messages

  • Long full GC pauses, 1.4.2_02, single processor

    HotSpot 1.4.2_02, Solaris 9, single processor
    We've developed a telecom application which requires low latency in response to network events. I've been observing fairly long full GC pauses between 0.5 and 2.0 seconds, which is unacceptable for our application. Minor GC pauses are quite brief, and acceptable, but only rarely occur after the system is up and running for some time. Full GCs happen regularly at 1 minute intervals.
    I've read several web articles on tuning GC, which mostly focus on using the new GC algorithms available in 1.4, such as CMS. I've tried -XX:+UseConcMarkSweepGC, but haven't observed any reduction in GC pause times, probably because our application runs on a single processor server.
    I'm going to dig into young/tenured ratios next, but, before I do, any advice on how best to optimize full GC for low latency on a single processor? I'm willing to do more frequent full GCs, and accept a throughput penalty, in exchange for <200ms full GC latency.

    Hi
    Any chance u using RMI? This regular 1 min interval thing is seldom seem. Please add -XX:+DisableExplicitGC, other flags include the setting the rmi gc time to a large value, but you are good with disabling System.gc
    Did u use the -XX:+UseParNewGC too? Usually -XX:+UseParNewGC -XX:+UseConcMarkSweepGC goes together.
    Also, _08 is the latest. There is a number of fixes that went in GC.
    Tuning... the steps i usually take
    1. Use default GC, -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintTenuringDistribution
    2. Size the generations 1st.
    3. Choose collector, in this case shld be "Usually -XX:+UseParNewGC -XX:+UseConcMarkSweepGC" but u may be good with others too. It depends.
    Hope this helps.

  • Workbench Execution with Parallel Group Type

    I created a replication job in Workbench 4.1 to migrate 16 tables - ODBC sources (for AS400) and Microsoft SQL Server targets within a single replication group.  I can select Type to either Parallel or Sequential for the replication group:
    I set Type to Parallel and when executing, I observe that 8 of the 16 tables begin processing and as each completes another of the remaining begins so there are always 8 tables being processed until there are no longer tables to process.
    If I test with two separate replication jobs each with 8 of the 16 tables with Parallel set and execute at the same time, both jobs load 8 tables in parallel so that 16 are being loaded at once.
    I would like to understand how the number of source/target replications running in parallel within a Workbench replication job is determined and/or set (in my case, 8).  Is that within the tool at all or is it strictly from the database?

    Hi Robert,
    I hope that depends on the Job server's no. of engine processes.
    To see the no. of engine process assigned to your Job server,
    Go to 'Tools' Menu---> 'Options'--> Expand 'Job Sever'--> 'Environment', as shown in the attached pic.
    Hope this helps you.
    Regards,
    Abhi

  • Use of global data in transformation with parallel processing

    Hi,
    In an upgrade I have a global variable in a routine in 3.5 in a transfer rule. The global variable keeps count of an ID.
    The global variable is used in every data package,because the corrsponding infopackage is set to PSA only, where help says:
    "If you select this processing option and then request processing is done serially during loading, the global data are maintained as long as the process with which the data were processed remains.
    In 7.0 I also use a global variable to do the same thing, but an Infopackage is no longer available, because we use DTP´s now.
    How can I store my global variable so that all parallel processing of the data packages use the same global variable? or can I set an option so that the DTP does serial processing, similar to the infopackage setting in 3.5?
    As a workaround I increased the package size to a very large figure, but I would be more comfortable with a sounder solution.
    thanks

    Hi Max,
      Try to declare your global variable in start routine. Among the lines:
    $$ begin of global - insert your declaration only below this line  -
    $$ end of global - insert your declaration only before this line   -
    Best Regards.
    Javier Gómez

  • Moving boot camp to new machine with Parallels 10 or WinClone?

    i seem to have a ton of document here but have not been able to figure a way out of my dilemma.
    i have a 2006 mac pro that had two boot camp installs with one of windows 7 and one of XP. each of these are still intact on my hard drives in this computer. however, i can not see this computer on my display as there appears to be some issue with the converter that i am using for my cinema display mini display port (to get it to DVI display port on the 2006) so i cannot really DO anything with these installations other than see them when i put the disk in my new 2012.
    Parallels 10 appears to have a new "boot camp" mode and i am trying to figure out if there is a way to get the boot camp installs into my 2012 as "virtual boot camp" installations. i just put one of the 2006 disks into the 2012 machine and tried this and Parallels seems to have accepted this but i am not sure if i somehow need to leave the physical boot camp install in this bay 4 or if i can just pull the disk and now i have a "virtual boot camp" install of windows 7.
    ALSO, i DO have WinClone backups of both of these boot camp installations on the new machine but i believe i am supposed to run CHKDSK and Sysprep on the actual boot camp installs before trying to migrate them over to the new machine and since i cannot see anything in the old machine i can't try this. actually, i did try it back when i could see the 2006 but there was some error with the Sysprep and the thread proposing solutions was like 26 pages long.
    anyway, anyone done this and have any suggestions?
    THANKS
    http://kb.parallels.com/en/113658

    hotwheels 22 wrote:
    A. when you say you can boot from corresponding installation media - you are talking about my Windows 7 and Windows XP install disks?
    When you installed XP or W7, you would have used either an Install DVD or a USB, or both. This is what you would need. You can recreate the USB using Bootcamp Assistant, if necessary. The only caveat would be if you subsequently upgraded to later Service Packs, and the installer was built earlier than that.
    B. when you say "if your windows is already bootable" you are saying that i could put the disk in the new machine, set preferences to BOOT from the Boot Camp installation on the other disk and run the Safe Mode on this boot camp install and then manually remove drivers? also presumably i can compare the 2006 machine to the 2012 machine and see which drivers i don't have to remove? also, i am guessing here that i can try either of these (boot from media or boot into safe mode in the boot camp) despite the fact that yosemite does not support XP boot camp?
    It is possible that Windows may not boot at all, due to hardware changes and driver differences. Safe Mode is a minimal driver load boot. It should be bootable. If you end with a completely un-bootable system after you move disks, then Windows Startup Repair may be necessary first. You may also need to run chkdsk. I would also recommend uninstalling any third-party NTFS software. Once Windows is fully installed, there is no interaction with Yosemite, and a minimal interaction with firmware and Apple Bootmanager which recognizes a NTFS system.
    C. can you help me with the terminology here? you ask if any of my "W7/WXP" disks have a version of OS X co-resident". at one point i had what i understood to be JUST an XP install on my 2006 machine on a hard drive which i still have. i don't know if this was installed "under" some OS but as far as i know i /just/ had a boot camp installation of XP on this disk. is this possible? if so, what do i call it? ALSO, i /now/ have basically two disks with one containing a PARTITION of Snow Leopord or Mountain Lion and a PARTITION of Windows XP Boot Camp. then the /second/ disk contains a CLONE of the OS X install and a PARTITION of Windows 7 Boot Camp. Do you know what i call these?! are either of them what you consider "co-resident"? i guess i don't exactly understand the types of boot camps i can have (ignoring virtual machines).
    If the disk was formatted as an MBR disk and was fully dedicated to Windows, it will not have OS X. In some cases, a single physical disk can be partitioned to host both OSes. If the OS X part was on a separate physical disk, this is what is usually is done on a MacPro with multiple disks.
    D. can i /PLEASE/ ask you to help me understand the types of virtual machines i can create on the 2012 with Parallels 10? right now i just hooked up a Windows 7 virtual machine from Parallels 7. so this is a "true virtual machine". but i can somehow also now create a "boot camp virtual machine" where i can EITHER boot into the boot camp or into the virtual machine? i mean, i guess what we are discussing is a way to CLEAN the Windows 7 BOOT CAMP INSTALLATION on my 2006 by putting the hard drive into the 2012 and to then - well i guess i then create a WinClone of the Boot Camp install and i run the WinClone MIGRATION procedure to get this boot camp on the 2012? /then/ i run parallels and hook up this Boot Camp install in the new machine?
    Usually, BC installations can be imported as virtual machines. You can also install a VM using a virtual disk, which, to OS X, appears like a set of system files. You can as a test import the 2006 disk clone as a VM and test. The VM engines impose their own BIOS engine and can have  their own drivers in such a VM. For example, they will emulate SCSI to access the underlying virtual or physical disk. They may also provide their own file system drivers. For example, VMware Fusion can provide HGFS to share files between OS X and Windows. Your approach should work, but I have never tested Winclone with the VM layer in the middle. You should ask Wincloen support if they support VM as an in-between layer or not. I do not think so.
    E. can you remind me why i can't get a XP Boot Camp on the 2012 machine? was this due to the 2012 mac pro or was it yosemite or both i guess? i mean, for XP i am presumably going to run the TRANSFER procedure on the XP install /after/ putting the hard drive with XP boot camp from the 2006 into my 2012 and then i am going to run this VIRTUAL MACHINE FROM BOOT CAMP operation (link below)? if so, we are saying i can run this from the 2012 and then can i remove the XP Boot Camp drive from the 2012 and still have the virtual machine i guess? in this case i SHOULD ALSO run the XP through the procedure you explain? so in this case i will only have a virtualized XP Boot Camp install and with Windows 7 i will have both the BOOT CAMP install (which i presumably migrated to my OS X hard drive!) and i will be able to virtually boot to this boot camp install using Parallels 10?
    Apple deprecated XP support as they moved to BC version 5.x. A new XP installation is not possible, but an existing XP installation will continue to work across OS X version upgrades. This is a 'physical' machine from 2006 MP. Once you install BC drivers on the XP installation to work with 2012, you will need to reverse the migration procedure (uninstall drivers for 2012MP, install 2006 MP drivers). It is a very unusual direction to want to go back to 2006 MP, but it is still a method if the 2012 MP hardware failed, and you wanted to go back to a working 2006 MP. You should check if Parallels 10 supports XP.
    F. i guess if i want to make sure to retain a true boot camp install of the Windows XP install i have to repair the 2006 machine is that right?
    http://kb.parallels.com/en/113658
    Not necessarily. If you can migrate (simulating a SysPrep) to the 2012 MP machine, you do not need to resurrect the 2006 MP.

  • My Mac is a 2.8 GHz Intel Core i7 OS X 10.6.8 - wanting to download Mavericks but instal goes to pause with no status info.  Is my Mac too old for upgrade?

    My Mac is a 2.8 GHz Intel Core i7 OS X 10.6.8 - wanting to download Mavericks but install goes to pause with no status info.  Is my Mac too old for upgrade?

    If it were too old, the App Store wouldn't download it.
    Check that your computer is compatible with Mountain Lion/Mavericks.
    To check the model number hold down the option/alt key, go to the Apple menu and select System Information.
    iMac (Mid 2007 or newer) model number 7,1 or higher
    Check to make sure your applications are compatible. PowerPC applications are no longer supported after 10.6.      
    Application Compatibility
    Applications Compatibility (2)

  • Pausing with dynamic streaming causes multiple streams to playback

    I have the streaming server 3.5.3. The sample player page for the dynamic streaming is here: http://fms.acpe.org ....click on the dynamic sample. pause and wait a few minutes for disconnect from the server. When you hit play, it starts from that spot and also starts from the beginning in the background audio while showing the buffering orange circle the whole time.
    Is there an updated player? Is there a fix for this? My users are students watching long lectures, they pause all the time. when they come back, it is a mess.
    Thanx to whoever can help...:)
    - Marcus

    I took a look at this and what I can infer from the loading time and constant rebuffering is that your FMS doesn't have enough bandwidth to serve the stream without consistent rebuffering.  This could be for a number of reasons, but this sample works well under full flow scenarios.  Is it possible for you to evaluate your bandwdith capacity from your FMS installation and ensure that you're not exceeding your available channel.  Consider also debugging the scenario with wireshark or a similar tool to make sure that traffic is flowing in the path and protocol that you expect in this case.
    Asa

  • Installing OS10.6 with parallels 8 New iMac

    I installed windows 7 Pro on new 27in iMac with 1TB fusion drive. It runs great. Would like to install a second virtual machine running 10.6 Snow Leopard. I saw a few you tube videos of this configuration running . I have a regular Snow Leopard disc. I read an older discussion doing this with Parallels 7
    Thanks
    Med

    Did you carefully follow these directions including substep 9:
    4. Launch Terminal (/Applications/Utilities/); cut and paste or carefully type the following 4 commands into Terminal and, after each, hit Return/Enter:
    5. Change to the directory where the image is located.
    cd Desktop
    6. ...
    7. ..
    8. ... At this point you have two files - SuperDrive.cdr and SuperDrive.cdr.shadow on the Desktop.
    9. Create a new DVD/CD master disk image ’SuperDrive-Server.cdr’ which is the same as SuperDrive.cdr, but with the change included.
    hdiutil convert -format UDTO -o SuperDrive-Server.cdr SuperDrive.cdr -shadow
    10. Quit Terminal and continue with STEP TWO, using SuperDrive-Server.cdr in place of SuperDrive.cdr. If you wish you can now delete SuperDrive.cdr and SuperDrive.cdr.shadow - they are no longer needed.
    You must be using a new Mac OS X Snow Leopard Install DVD, freshly purchased from Apple for $19.99 and not a restore disc or other form of Snow Leopard disc.

  • Query0;Runtime error time limit exceeded,with parallel processing via RFC

    Dear experts,
    I have created a report on 0cca_c11 cube and while running my report when i give cost center group which contains many cost centers , my report executes for long time and at last gives message
    "Error while reading data;navigation is possible" and
    "Query0;Runtime error time limit exceeded,with parallel processing via RFC"
    please tell me what is the problem and how can i solve this
    Regards
    Shweta

    hI,
    Execute the Query in RSRT with Execute and Debug option.
    Select SQL statements toknow where exactly it's taking time.
    Let us know the details once you done.
    Reg
    Pra

  • Adobe creative cloud set up to install on a mac with parallels windows 8

    Unfortunately it is not possible to install the program it always displays an error message. how can you loess the problem?
    error message: This application can not be run from a network drive-. copy it to a local folder and strarten it again.

    I have just the regular version, not Professional.
    I mean "les integrated", in the sense that you really run Fusion "in a window". The more "integrated" approach means that Windows applications run as if they were for the Mac, and you do not see the Windows interface at all. I personnaly think tjat is too confusing. There is nothing wrong with it, just a bit more confusing. i like having it clear that Windows is in a seperate Window.
    Op 21 nov. 2013 om 12:57 heeft Krishnam <[email protected]> het volgende geschreven:
    Re: adobe creative cloud set up to install on a mac with parallels windows 8
    created by Krishnam in Adobe Creative Cloud - View the full discussion
    Hi MacLesNL,
    Which version of VM Ware should I go for?
    http://www.vmware.com/uk/products/fusion/
    http://www.vmware.com/uk/products/fusion-professional/
    So that I could install Adobe CC on Windows 7? Please advise.
    What do you mean ny "less integrated"? Is this must to run Adobe CC in VMWare on Mac?
    Please advise.
    Thanks, Krishnam
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5861525#5861525
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5861525#5861525
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5861525#5861525. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Creative Cloud at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Error when creating index with parallel option on very large table

    I am getting a
    "7:15:52 AM ORA-00600: internal error code, arguments: [kxfqupp_bad_cvl], [7940], [6], [0], [], [], [], []"
    error when creating an index with parallel option. Which is strange because this has not been a problem until now. We just hit 60 million rows in a 45 column table, and I wonder if we've hit a bug.
    Version 10.2.0.4
    O/S Linux
    As a test I removed the parallel option and several of the indexes were created with no problem, but many still threw the same error... Strange. Do I need a patch update of some kind?

    This is most certainly a bug.
    From metalink it looks like bug 4695511 - fixed in 10.2.0.4.1

  • Windows XP or Vista for use with Parallels on MacBook 2.16 GHz?

    As described in my earlier post, I'm currently switching from my G4 PowerBook to a new MacBook 13" 2.16 GHz.
    I'll have to use Windows parallel to OS X (plan to do that with Parallels Desktop) and would like to know what you recommend:
    Windows XP or Windows Vista?
    Vista should be better in security issues, however it should also consume much more ressources and thus run slower ... is that right?
    What's your experience?
    Martin
    MacBook 2.16 GHz, 2 GB RAM, 120 GB HD (white)   Mac OS X (10.4.9)  

    Hi Martin,
    personally I favour XP over Vista (at least for now and the near future), because as you mentioned Vista a much more hungrier than XP and also because there are still a lot of applications which do not work correctly or at all in Vista.
    Regards
    Stefan

  • Help with parallel arrays of different data types

    Hello all, I am having an issue with parallel arrays. My program requires me to read information from a text file into 4 parallel arrays (2 String and 2 double). My text file needs to look something like this:
    John Johnson
    0000004738294961
    502.67
    1000.000
    Jane Smith
    0000005296847913
    284.51
    1000.000
    ...and so on
    Where the first thing is the name (obviously), an account number, the balance in the account, and the credit limit. I just cant figure out how to read everything into the arrays. We havent learned anything too heavy, and this seems a little too advanced for my class, but I guess we will manage. Any help will be appreciated. Thanks guys.
    Casey

    Man this is a dumb homework assignment. The requirements scream out for a class along the lines of
    public class Account{
      private String name, number;
      private double balance,creditlimit;
       // more code here
    }and then to use a List of Account objects.
    Anyway what's your actual problem. There's nothing very hard about it. A loop. So....
    You should consider posting (formatted) code showing what you have done and where exactly you are stuck.

  • I have a mac osx version 10.6.8 no windows and i am trying to install a program but keep getting can not run in dos mode  ( the disk says on back works on intel mac with parallels or vm fusion) is this program not compatible with my mac?

    i have a mac osx version 10.6.8 no windows installed and i am trying to install a program but keep getting can not run in dos mode  ( the disk says on back works on intel mac with parallels or vm fusion) is this program not compatible with my mac?

    You run Windows in Parallels or Fusion. Then in Windows you install the program.

  • Should I leave Verizon with one month left on my contract so I can upgrade? The ETF seems worth it considering the bad customer service I received and how long I've been with Verizon.

    I've been with Verizon for a really long time and one of the best things about their upgrades was that they used to allow you to do it a little early.  And since you dont really keep up with plan changes until a new phone comes out or you are closer to your upgrade eligibility date, I didnt realize that they changed this.  My phone is on its last leg.  2 years is a long time for a device that you use every day, 50 times a day.  My upgrade date is a month away and I'm considering moving to a different service and letting them pay for my ETF.  I have called Verizon asking if there was anything they could do to allow me to upgrade early and they said no.  When did this start happening?  They tried to sell me the "Edge" but thats the same as paying 700 dollars.

    ATT doesnt care how long you've been with them
    cox doesnt care how long you've been with them
    your eletricity company doesnt care
    your gas station doesnt care
    your grocery store doesnt care
    your car insurance might care , a little.
    Just because uncle  tommy gives you a discount because he's been cutting your lawn for years doesn't mean a large company would. And why should they?
    << Message was edited by: Verizon Moderator to comply with the Verizon Community ToS >>

Maybe you are looking for

  • Opening multiple pdf's

    When I create multiple pdf's (20-60), it opens that many windows. I need to combine these files plus bookmarks (file name) into one single file. These are created using a batch printer for AutoCAD drawings. My only option seen so far is to create the

  • File with pls extension opens with data modeler instead of sql developer

    Hello, I have both SQL Developer and Data Modeler installed as separate installations. If I  click in  the Windows File navigator on a file with the extension pls, the SQL Developer should open since the pls extension has been connected to SQL Develo

  • Can I use color text in mail

    I want to be able to respond to some questions in another color to make answers stand out, in mail

  • Font has disappeared, despite loading on every other program

    I've been working with one font on several different documents including indesign, and all of a sudden it was replaced by Times New Roman all throughout my indesign document that I have been working on for months. The font is still working in illustr

  • Bookmarks menu will not scroll down or select sub-folder

    When I select <Bookmark this page>, the Bookmark menu pop-up appears and I can see the see the many sub-folders of bookmarks that I have but I cannot scroll down the list nor select a specific sub-folder. I am running FF v 8.x on Windows 7. The bookm