Long GC pauses; full gc eventually takes 30 secs. (from Developer Forums)

from http://forum.java.sun.com/thread.jspa?threadID=5145522
jre 1.5.0_06,
-Dcom.sun.management.jmxremote -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:NewRatio=3 -XX:MaxTenuringThreshold=3 -XX:NewSize=90M -XX:MaxNewSize=90M -Xmx800M
windows 2003 server
normally, full gc's occur with < 1 second durations, but eventually, the duration peaks at 30 seconds, then 7 seconds, then back to normal
the heap was at about 290MB (far from full).
setting maxgcpausemillis has no effect (something extraordinary happens?)
there is no obvious pattern in the long pauses (not due to perm resizing or so)
does anyone have experience with sudden long pauses?
we could think of heap being swapped - but we don't know how to monitor this (and nobody was starting memory consuming applications at the time)
does anyone know how we best monitor swapping on a windows?
we are not able to use CMS immediately without testing for a period (had crashes due to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6386633)
here are samples of long pauses
here are some long pauses (days apart - the gc log is embedded in our own loggings)
061221 102753 0750 EV coreservice.taskoutput.container 75.537: [GC [PSYoungGen: 70133K->19827K(53632K)] 173056K->138149K(172736K), 11.5205585 secs] ##[
070301 122542 0812 EV coreservice.taskoutput.container 6146.116: [Full GC [PSYoungGen: 768K->0K(90944K)] [PSOldGen: 286976K->213826K(259328K)] 287744K->213826K(350272K) [PSPermGen: 19432K->19432K(23040K)], 30.1171480 secs] ##[
070305 163701 0140 EV coreservice.taskoutput.container [PSYoungGen: 1256K->0K(90176K)] [PSOldGen: 239309K->197132K(221632K)] 240565K->197132K(311808K) [PSPermGen: 19260K->19039K(23808K)], 20.3872070 secs] ##[
tak!
/aksel

does anyone know how we best monitor swapping on awindows?I not sure if this is the best.
You can use ctrl-shift-escape. Click on the processes tab and then goto the menu: View->Select Columns... and add "Page Fault Delta" column. I would also suggest you add the VM Memory size column too.

Similar Messages

  • Long GC pauses; full gc eventually takes 30 seconds+

    jre 1.5.0_06,
    -Dcom.sun.management.jmxremote -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:NewRatio=3 -XX:MaxTenuringThreshold=3 -XX:NewSize=90M -XX:MaxNewSize=90M -Xmx800M
    normally, full gc's occur with < 1 second durations, but eventually, the duration peaks at 30 seconds, then 7 seconds, then back to normal
    the heap was at about 290MB (far from full).
    setting maxgcpausemillis has no effect (something extraordinary happens?)
    there is no obvious pattern in the long pauses (not due to perm resizing or so)
    does anyone have experience with sudden long pauses?
    we could think of heap being swapped - but we don't know how to monitor this (and nobody was starting memory consuming applications at the time)
    tak!
    /aksel

    EDIT: Also I think NewSize/MaxNewSize should be set to the same value as NewRatio (fourth of the heap)yes - there is some confusion there.. the 90MB is used by the vm though
    unfortunately we are not able to try out the cms immediately (as we are in production) - and even if this might be the end, we have to test the cms for a long time before entering production. we were hit by crashes caused by cms a year ago when we decided not to use it (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6386633)
    here are some long pauses (days apart - the gc log is embedded in our own loggings)
    061221 102753 0750 EV coreservice.taskoutput.container 75.537: [GC [PSYoungGen: 70133K->19827K(53632K)] 173056K->138149K(172736K), 11.5205585 secs] ##[
    070301 122542 0812 EV coreservice.taskoutput.container 6146.116: [Full GC [PSYoungGen: 768K->0K(90944K)] [PSOldGen: 286976K->213826K(259328K)] 287744K->213826K(350272K) [PSPermGen: 19432K->19432K(23040K)], 30.1171480 secs] ##[
    070305 163701 0140 EV coreservice.taskoutput.container [PSYoungGen: 1256K->0K(90176K)] [PSOldGen: 239309K->197132K(221632K)] 240565K->197132K(311808K) [PSPermGen: 19260K->19039K(23808K)], 20.3872070 secs] ##[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Query takes long time from one machine but 1 sec from  machine

    I got a update query which is like a application patch which takes 1 sec from one machine.I need to apply that on the other machine where application is installed
    Both applications are same and connecting to the same DB server.The query ran from second machine takes so long time ....
    but i can update other thing from the secon machine.
    IS there anything to do with page size ,line size
    Urgent Please

    HI
    Everything is same except from the diff machine.
    Any client version issue because the script us so wide like 240 chars
    PLAN_TABLE_OUTPUT
    | Id | Operation | Name | Rows | Bytes | Cost |
    | 0 | UPDATE STATEMENT | | | | |
    | 1 | UPDATE | IDI_INTERFACE_MST | | | |
    | 2 | INDEX UNIQUE SCAN | PK_IDI_INTMST | | | |
    Note: rule based optimization, PLAN_TABLE' is old version
    10 rows selected.
    Message was edited by:
    Maran.E

  • Hi i  insttalled the free trial 3O days MacScan on OsX10.5 is it normal that for full scaning it takes so long time more even than one day?! on the other hand this application hasn't any uninstaller on image disc ,so how can i uninstal it from my hard?

    Hi i  insttalled the free trial 3O days MacScan on OsX10.5 is it normal that for full scaning it takes so long time more even than one day?! on the other hand this application hasn't any uninstaller on image disc ,so how can i uninstal it from my hard?Thanks

    Get rid of the tracking cookies. They are used to profile and track your browsing history. While they are privacy invading, by calling them spyware, MacScan is being a little dramatic in trying to sell you its crap. And in the future, for whatever browser you use, don't allow third-party cookies.
    To prevent tracking, get Ghostery. In addition to having Ghostery and forbidding third-party cookies, I clear out all cookies from one browsing session to another. If you always do that, you won't have any tracking cookies to worry about, so you won't need MacScan to find them for you. Btw, MacScan finds the tracking cookies in the first few minutes of scanning; if you want to use it for that, then that's all the time you need to run it for. But, as I said, you won't have any tracking cookies around if you just remove all cookies and don't allow third-party cookies. As soon as you visit a site that needs them, you'll just get new ones. No problem.
    Read all about cookies here.
    http://en.wikipedia.org/wiki/HTTP_cookie

  • Extremely long(10 minute)  Full GC times

    I have a problem that seems unrelated to traditional GC tuning. Full Garbage Collection on my server (x86, Linux, 2 proc, 2GB memory, 1GB Heap) is taking in excess of 10 minutes. The frequency of the Full GC is about every 8-10 hours. I've combed some posts for issues related to long GC, but long is a relative term, and usually refers to 2-10 second range.
    My question is, what kinds of things could cause such an extremely long GC. My theory is that this particular machine is hosting some other applications, most notably a mysql server that is connected to remotely. With this setup, another application could be using resources on this primary server while the Full GC is executing, thus causing a thrashing scenario from a CPU perspective. But even so, it seems that this wouldn't cause Full GC to take 2 orders of magnitude longer.
    I've currently changed to the CMS garbage collector, so the long pauses are not a problem, but I'd really like to understand why such a long Full GC pause is even possible, and what can be done about it using the serial Collector

    Possibly the objects that are being garbage collected, are having their finalize() method called. It's not normally guaranteed that the GC will call an objects finalize() method....but you never know.
    In that case, the finalize() method(s) maybe be timing out, eg. trying to close database or network connections, and taking 60 seconds or more to time out individually.
    It's just a wild guess...
    regards,
    Owen

  • Macbook Pro takes a long time (41 secs) from start to reach log-in - It used to be almost instantaneous, I'm running Lion OS

    My Macbook Pro takes a long time (41 secs) from start to reach log-in - It used to be almost instantaneous, I'm running Lion OS. I thought this might be because I'd used a lot of disk space but I've now reduced that - I'm only using 40 of the 320 gb available. I have no games and I've unchecked the "re-open windows" option on shutdown. The rest of the preformance (once in) remains good.

    41 seconds is actually a little faster then normal. Boot from completely off is normally around 45-50 seconds.
    Your computer never ever came on almost instantaneously from completely off. You are confusing waking up from sleep mode and booting the computer from completely off.

  • Videos no longer play in Full Screen-why?

    My music videos and movies no longer play in full screen. I don't know what I did wrong, but I'll tell you what I did right! They've been playing correctly, and today I went to play a new music video i downloaded from iTunes and I noticed it was a small thumbnail. I checked the others and they all played back the same. I went to my iPod settings to ensure that I had it set up to play in full screen. Can someone help and tell me what (if anything) I've done wrong? Thanks so much. Lori

    Hello,
    Thank you for contacting Mozilla.
    I understand that you are having problems with playing videos on Firefox for Android. In order to better understand and investigate on the issue that you are encountering, please reply to this message with the following information:
    * What is the manufacture and model of your phone?
    * What is the Android version of the phone?
    *What version of Firefox do you currently have?
    * Please provide the exact steps to reprodcuce the issue you are encountering.
    *Are you encountering an error message? And are you able to provide a screenshot?
    Please be sure to include as much detail as possible, including any websites that may exhibit this issue, and any error messages that you may be receiving, exactly as they appear. This will ensure that we will have all the information needed to investigate into this. Thank you for your help and we look forward to hearing from you!

  • HT5262 How long should the icloud back up take?

    How long should the iCloud back up take? I only have 4gb of storage but it has taken almost an hour already with approximately 2 hours remaining. 

    Hi RMaskery14,
    If you are concerned about the time your iCloud backup is taking, you may find the following article helpful:
    My backup is taking a long time to finish.
    Backing up and restoring takes time, especially if you have a lot of data or a slow connection. Depending on the size of your backup and the speed of your network, you may need more time than expected to complete the process. Using a reliable connection when backing up your device is highly recommended.
    iCloud: Troubleshooting creating an iCloud backup
    http://support.apple.com/kb/ts3992
    Regards,
    - Brenden

  • 10g Full Database Dump Takes more than 2 Hours Still not finished

    Hi all,
    Full Database Dump Takes more than 2 Hours, Still not finished.
    Version - Oracle 10g 1.0.2.0
    Database Size is Around 160GB.
    Used Below Query to take Full Database Dump.
    expdp user/pwd@10gdb full=y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
    It takes more than 1 hour in processing the functions.i.e)
    Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION
    And the Log File:
    Export: Release 10.1.0.2.0 - Production on Friday, 04 May, 2012 10:17
    Copyright (c) 2003, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    FLASHBACK automatically enabled to preserve database integrity.
    Starting "EXPTEST"."SYS_EXPORT_FULL_02": exptest/********@curentdb full=Y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
    Estimate in progress using BLOCKS method...
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 4.574 GB
    Processing object type DATABASE_EXPORT/TABLESPACE
    Processing object type DATABASE_EXPORT/DE_SYS_USER/USER
    Processing object type DATABASE_EXPORT/SCHEMA/USER
    Processing object type DATABASE_EXPORT/ROLE
    Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/GRANT/SYSTEM_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/ROLE_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE
    Processing object type DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA
    Processing object type DATABASE_EXPORT/RESOURCE_COST
    Processing object type DATABASE_EXPORT/SCHEMA/DB_LINK
    Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK
    Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE
    Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/GRANT/DE_S_SEQ_OWNER_OBJGRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY
    Processing object type DATABASE_EXPORT/DIRECTORY/GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/CONTEXT
    Processing object type DATABASE_EXPORT/SCHEMA/DE_PUBLIC_SYNONYM/SYNONYM
    Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM
    Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC
    Processing object type DATABASE_EXPORT/DE_SYSTEM_PROCOBJACT/DE_PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/DE_SYSTEM_PROCOBJACT/DE_POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/DE_S_TABLE_OWNER_OBJGRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/DE_S_TABLE_NOTWGO_OBJGRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/STATISTICS/TABLE_STATISTICS
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/COMMENT
    Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/PACKAGE_SPEC
    Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/GRANT/DE_S_PACKAGE_OWNER_OBJGRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION
    Help me.

    Export is Still in progress
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Job: SYS_EXPORT_FULL_02
    Owner: EXPTEST
    Operation: EXPORT
    Creator Privs: FALSE
    GUID: 94AB0C8AA824462AA96C8481CF0F676F
    Start Time: Friday, 04 May, 2012 10:18
    Mode: FULL
    Instance: curentdb
    Max Parallelism: 1
    EXPORT Job Parameters:
    Parameter Name Parameter Value:
    CLIENT_COMMAND userexp/********@curentdb full=Y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
    DATA_ACCESS_METHOD AUTOMATIC
    ESTIMATE BLOCKS
    INCLUDE_METADATA 1
    LOG_FILE_DIRECTORY TEST_DIR
    LOG_FILE_NAME expdpcurent10g.log;
    TABLE_CONSISTENCY 0
    State: EXECUTING
    Bytes Processed: 0
    Current Parallelism: 1
    Job Error Count: 0
    Dump File: C:\ORACLE DMP\CURENT10G.DMP
    bytes written: 4,096
    Worker 1 Status:
    State: EXECUTING
    Object Schema: PUBLIC
    Object Type: DATABASE_EXPORT/SCHEMA/PACKAGE/GRANT/DE_S_PACKAGE_OWNER_OBJGRANT/OBJECT_GRANT
    Completed Objects: 1
    Total Objects: 1
    What Does it mean, Suggest.

  • How long does it normally take to convert from PDF to Excel files?

    How long does it normally take to convert from a PDF to Excel files?

    Sara-
    I did see your response.  Thanks.  The other thing that happened was after I enabled Adobe on my Dell it apparently knocked out my Mozilla.  Now I can't get internet connection unless I use Internet Explorer which I would prefer not to.  I'm going to visit our IT folks tomorrow and see if I can get some of this resolved.
    The PDF files I obtained that I am trying to transfer to Excel may be too complex because there is a great deal of extraneous text information in the basic document that lies outside of the tables I want to transfer.  I'm going to try and highlight the tables only and see if this works.
    Thanks for taking the time answering.
    Best,
    Henry

  • HT201210 how long is this restore supposed to take? my phone has been stuck on the same screen for 15 minutes

    i plugged up my phone and it said i needed to restore it to factory settings so i did and now its stuck on a screen that shows i need to plug my phone up to itunes and restore it but my phone is already connected to itunes. ive tried resetting my phone and it just goes back to that screen and i have also tried to unplug and plug my phone back but it still keeps getting stuck at the 'preparing iphone for restore' bar thing at the top. how long is this process supposed to take? i was only trying to put one song on my phone and i had done it yesturday with no problem and the day before that. please help

    I had this issue also. My last restore took 2 hours, despite restores under 1.x taking something like 20 minutes.
    I don't think it's the videos/podcasts, as those don't show up until synchronizing after the restore anyway.
    I asked this same question a while ago, but no one responded. I'm not sure if its normal.

  • How long does the number porting process take?

    Hello Everybody! I just got my iphone (witch I LOVE it by the way) but I was wondering, how long does the number porting process take?
    I ported my phone number over from SprintPCS last night at around 7pm EST and right now it's 8am EST and my Palm seems to still be working... Is this normal?
    I'm still receiving incoming calls to my Palm, Text messages to my Palm, but yet I can do outgoing calls from my iphone... I'm kinda confused...
    I mean I received the text on my iphone from sprint telling me: "Welcome to AT&T" as well as receiving the e-mail saying my new phone number is the same one I've had for 6 years now... Is 13 hours considered normal?
    Thanx! :-D

    QueenYvette,
    If it continues to be an issue tomorrow, I would recomend calling again, and getting in contact with AT&T's porting department. They are familiar with resolving any issues that may arise.
    Powering off both phones is to make sure that the old phone is not maintaining an active connection with the old carrier that can interfere with the last steps of the porting process. If at all possible its a good idea to leave the old phone powered off, and restart the new phone about once an hour so that it will resync with the towers.
    Hope this helps,
    Nathan C.

  • How long does a iphone 3gs restore take?

    How long does a iphone 3gs restore take?
    I tried to update my iphone 3gs to the new software iOS4.0.1 I guess and the phone has been restoring and i cannot see any progress.

    Depends on low the battery was, but not out bounds. Mine is usually charged in about an hour or so, but I seldom let it get to near zero (and frankly don't time how long it takes).

  • How long does an Apple TV update take?

    How long does an Apple TV update take?

    Welcome to the Apple Community.
    It shouldn't take any longer than 1/2 an hour.

  • How long does a refund on itunes take to go back on my credit card

    How long does a refund on itunes take to go back on my credit card

    Welcome to the discussions!
    Open iPhoto as you normally would
    Click the File menu at the upper left of the screen near the Apple icon
    Click +Browse Backups+ (It may take some time for backups to load if you are using wireless)
    Using the scale at the right of the screen, go back to a date when you feel that you had the images on your computer. (It may take some time to do this if you are using wireless)
    Navigate through iPhoto to locate your images
    Click Restore at the lower right of the screen
    Hopefully you will also post your question in the iPhoto forum as the experts over there frequently answer questions about this very subject and can provide far more assistance than we can here.

Maybe you are looking for