GC accounts for 80% of processing time

Hi,
i'm having a rather serious problem with the garbage collector on one of my Java projects. Basically, what i'm doing is just read an XML file using StAX, and then process its content -- nothing scary here. However, I found the process was being really slow, so I profiled it using the YourKit Java Profiler within Eclipse, and it told me that for a short 12 second run, the GC was responsible for 10 seconds!
Without being an expert, I've done other small projects in Java, and this is the first time I see this. As it is also the first time I'm using StAX, I can't but wonder whether there might be a connection?
I've noticed exactly the same symptoms on several architectures (Mac/WinXP/Linux SuSE, Eclipse/CLI -- I did profiling only on the Mac). Calling java with the -Xmx1024m switch does improve things, as the process then needs only 10.3 instead of 12.5 seconds. However this is still unacceptable, as the programm is eventually meant to be running for several hours straight -- working, not collecting garbage.
I've created a GC log: I don't really know what to make of it, but it basically looks like this:
0.146: [GC 512K->194K(1984K), 0.0024579 secs]
0.180: [GC 704K->268K(1984K), 0.0012318 secs]
0.204: [GC 776K->255K(1984K), 0.0006406 secs]
0.228: [GC 767K->257K(1984K), 0.0003966 secs]
0.234: [GC 355K->270K(1984K), 0.0004048 secs]
0.235: [Full GC 270K->270K(1984K), 0.0063139 secs]
0.281: [GC 2773K->2671K(4036K), 0.0012717 secs]
0.282: [Full GC 2671K->2671K(4036K), 0.0070599 secs]
0.293: [GC 4719K->4719K(7084K), 0.0001165 secs]
These are the first 8 lines. The next 1800+ lines look pretty much like these last 4 ones, with 2 messages being shot every .1 second or so. Apparently the numbers keep rising, and the last messages are
10.197: [Full GC 5262K->3214K(7084K), 0.0103843 secs]
10.209: [GC 5267K->5262K(7084K), 0.0001103 secs]
10.210: [Full GC 5262K->3214K(7084K), 0.0109799 secs]
10.253: [GC 5767K->5302K(7084K), 0.0010396 secs]
So can anyone tell me what's happening here? Do I have a memory leak or something?? Is it possible to find out what the GC is cleaning every .1 second?
I'm really at a loss here, so thx a lot for your help! :-)
cheers
David

Actually, you could try following:
-     Open WF Monitor, connect to DB via sqlplus or other tool to prepare to run process.
-     Start mapping execution, verify your session is waiting “queue message”
-     Wait process to complete, verify it by WF Monitor
-     Check wait state of session – if it still in “queue message”, it waits completion report from runtime platform.
Our current configuration is: OWB 9.2.0.4 + DB 9.2.0.7.
We have faced similar issues with OWF (don’t know your environment, but in ours OWF work under heavy load with concurrent executions of different types of processes) – session could wait indefinitely long for process to “complete” while process had finished long time ago.
Unfortunately, this is not the only implication of the issue. Once you could notice that your processes simply hang in active state. Activities within process are notified, but not started.
We took two steps independently and now our situation with OWB/OWF is much better:
- First. In the runtime schema of OWB there are a lot of foreign keys without indexes on “child” side – we created indexes, rebuild them, “alter move” all tables etc. This came from the recent investigation in this forum about performance of OWB while purging the logs. I suppose the issues that raised in that discussion have their implications on environment with concurrent process executions also.
- Second. I applied 9.2.0.7 Patch Set (plus one one-off-patch) on DB – this make OWF behavior to improve dramatically. No “notified-but-not-started” activities, or “indefinite-waiting-for-process-completion” sessions noted since New Year. Previously we have to fight these issues every day and even worse.
Serhit.

Similar Messages

  • I bought iPhone 4 for my wife, didn't create a separate apple ID account for her at that time. How can I now create a new one for her, sync her phone to the same PC that I sync my iPhone with without loosing all of her data, contacts, etc. Please help!

    I bought iPhone 4 for my wife, didn't create a separate apple ID account for her at that time. How can I now create a new one for her, sync her phone to the same PC that I sync my iPhone with without loosing all of her data, contacts, etc. Please help!

    I bought iPhone 4 for my wife, didn't create a separate apple ID account for her at that time. How can I now create a new one for her, sync her phone to the same PC that I sync my iPhone with without loosing all of her data, contacts, etc. Please help!

  • Create unique user accounts for each Oracle process

    hi,
    Please tell me the command to create unique user accounts for each Oracle process
    Thanks

    create unique user accounts for each Oracle processWhat do you mean by unique user account for each oracle process ? Provide more information.
    do you mean create oracle user?
    create user <username> identified by <password> default tablespace <tablespace_name>;
    -Anantha

  • 'completing task' accounts for 90% of the time

    I'm running some mappings and they are taking a huge amount of time to complete in OWB. I noted that the execution window is spending most of the time in the 'completing task' state. So I checked and all the rows have been inserted correctly into the target table. I'm talking a couple of seconds to insert the rows and 1+ hours for the task to actually finish within OWB.
    Can anybody tell me what's going on here and what I can do, if anything, to make the task 'complete' more quickly?
    Thanks
    Brian

    Actually, you could try following:
    -     Open WF Monitor, connect to DB via sqlplus or other tool to prepare to run process.
    -     Start mapping execution, verify your session is waiting “queue message”
    -     Wait process to complete, verify it by WF Monitor
    -     Check wait state of session – if it still in “queue message”, it waits completion report from runtime platform.
    Our current configuration is: OWB 9.2.0.4 + DB 9.2.0.7.
    We have faced similar issues with OWF (don’t know your environment, but in ours OWF work under heavy load with concurrent executions of different types of processes) – session could wait indefinitely long for process to “complete” while process had finished long time ago.
    Unfortunately, this is not the only implication of the issue. Once you could notice that your processes simply hang in active state. Activities within process are notified, but not started.
    We took two steps independently and now our situation with OWB/OWF is much better:
    - First. In the runtime schema of OWB there are a lot of foreign keys without indexes on “child” side – we created indexes, rebuild them, “alter move” all tables etc. This came from the recent investigation in this forum about performance of OWB while purging the logs. I suppose the issues that raised in that discussion have their implications on environment with concurrent process executions also.
    - Second. I applied 9.2.0.7 Patch Set (plus one one-off-patch) on DB – this make OWF behavior to improve dramatically. No “notified-but-not-started” activities, or “indefinite-waiting-for-process-completion” sessions noted since New Year. Previously we have to fight these issues every day and even worse.
    Serhit.

  • Country that Merchant Account for Skype is process...

    My bank automatically denies any charges outside of the USA.
    Maybe that is why my Visa Debit card keeps saying 'failed' but my bank does not see it.
    So what country is on the gateway or merchant account or bank that Skype is using so I can have my bank unblock that country?
    Thanks,
    Richard

    I finally got it done. I had to get on the support and get the country.
    That was the problem.
    If anyone else is having that issue, the country is:
    Luxembourg in Western Europe

  • Unnecessary Purchasing Processing Time in scheduling agreement

    According to its business logic, the scheduling agreement is a document  that has  already been  released  by purchasing department,  and  its scheduling lines, that have been created by MRP  are valid for goods receipt without any need for additional purchasing  processing time. However, MRP scheduling incorrectly takes purchasing processing time into account (as defined in the IMG in plant parameters for external procurement - TCODE  OPPQ) when calculating planned availability date. Please advise how to correct this issue.
    Best Regards,
    Itzik Eshed

    This can be customized in
    SAP Customizing Implementation Guide
    -> Production
    --> Material Requirements Planning
    ---> Planning
    > Procurement Proposals
    > Define External Procurement
    Here you can select the indicator "Scheduling according to purchasing info record or agreement" either at plant or MRP group level.

  • GR processing time not taken into account for exception message in MD04

    Hello Gurus!
    In MD04 when we toggle between displaying at GR date and AV date sometimes there is a shortage in AV date view but none in GR date view due to GR processing time.
    How can we include the GR processing time to be taken into account so that an exception message is shown for the shortage during AV view?
    Thanks in advance!
       -Alvin

    Hi There
    What you meant by shortage,,,
    AV- Available date,
    GR- Availble date+GR processing time
    if you have not set up the GR processing time in Master, it may come as ZERO days,, so AV and GR date may be same,,
    if this is not your quesry, please provide more details on your query,,,
    Thanks
    Senthil

  • Fontd process causing Mac to lock up for minutes at a time

    Here is a problem and also the solution, (in case you have the same problem):
    My Mac (running OS X Lion) was exhibiting a problem whereby it paused for minutes at a time; the mouse moved, but no applications could respond (and they all showed the spinning beachball). Turned out to be a rogue ‘fontd’ process. This is how I fixed it.
    So the symptoms were that occasionally applications would stop responding for a minute or two. This would especially happen when I launched a new app or browser window, and also occurred when I logged in after rebooting: it would hang with a near-empty screen, slowly opening my apps, waiting a(n agonising) couple of minutes between each one.
    To cut a long story short (long version here: http://dysphoria.net/2012/02/18/mac-keeps-pausing-fontd-run-amuck/ ), the solution was to flush the font cache, as described in a Macworld article here: http://www.macworld.com/article/139383/2009/03/fontcacheclear.html
    At the command line:
    atsutil databases -removeUser
    atsutil databases -remove
    atsutil server -shutdown
    atsutil server -ping

    The next time you have the problem, note the exact times when it starts and ends: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Scroll back in the log to the time you noted above. Post any messages timestamped during that interval – the text, please, not a screenshot.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into a message.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Scheduling Agreement - Priority for GR Processing Time

    Dear Forum Members,
    While defining Scheduling agreement for a material we can define the GR processing time and Planned Delivery time,likewise we
    define in the material master also.
    1.While running MRP which one has the higher priority?
    2.After running MRP for the schedule line we are able to see only the delivery date,is there any setting to display the release date
    or the start date based on the planned delivery time of the scheduling agreement?
    Please suggest.
    Regards
    S Mangalraj

    Hi Mangalraj,
    For your question:
    1.While running MRP which one has the higher priority?
    -->GR processing time MRP-run will take it from material master data
    -->Planned delivery time, you can use t-code OMI8 to define the higher priority of SA or material master data
    2.After running MRP for the schedule line we are able to see only the delivery date,is there any setting to display the release date or the start date based on the planned delivery time of the scheduling agreement?
    -->Yes, in standard SAP system, you only can see the delivery date after MRP-run! As to the release date or the starte date which take planned delivery time of SA into account, it's only used to inform the buyer with purchasing transaction.
    Hope my answers can help you!
    Good luck
    Tao

  • Planned orders are not taking into account the processing time

    Hi,
    Could you please tell me why planned orders quantities are not based on processing time from the material master.
    Materials was set before with 1 day in house production , no matter of lot size.
    Based on routings I updated material master with processing time depending on lot size.
    What is bottering me now is that planned orders are not taking into account processing time. (e.g.  based on my processing time 1000 pce are produced  in 3 days, but planned orders show me that 1000 pce are still need  in 1 day , but it  can not be produced in 1 day   ).
    what did I miss?
    Thanks a lot for any information!

    Hello Simona
    The in house production time from tab MRP 2 is lot size independent.
    However, on tab work scheduling you can define a lot size dependent times.
    Please observe that, if you have entered an in house production time, the processing time will not be considered. The F1 help of the field provides the following explanation:
    You can define work scheduling times in the material master record in one of two ways:
    Either you enter the in-house production time. If required, you can get the system to update this value from the routing.
    Or you enter the setup, teardown, processing, and interoperation times. If you maintain these values, the system determines the in-house production time on the basis of lot size.
    Therefore, if you want to consider the processing time, you should remove the in house processing time.
    BR
    Caetano

  • ATP Check doesn't consider GR processing time for strategy 50

    Dear All,
    MRP strategy: 50
    Create PIR
    Create Sales order
    Run ATP and I find SAP doesn't  take GR processing time in MRP2 into account. Is there any setting for this?
    Thanks!
    B.R. Dazhi

    Hello Jageet,
    Please refer this discussion,
    ATP check. Problem with GR processing time
    Best Regards,
    R.Brahmankar

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • I have 2 macbooks each with an account for me and one for my wife. I use one Macbook logged in with my account and my wife uses the other Macbook only loged in on her account. We both make regular time-machine back-ups each on a separate external disk

    I have 2 Macbooks each with an account for me and one for my wife. I use one Macbook logged in with my account and my wife uses the other Macbook only logged in on her account. We both make regular time-machine back-ups each on a separate external disk. Is it possible to update her account on my macbook using her external disk without overwriting my stuff on the same Macbook and vice versa?

    Time Machine does not do individual accounts. It records the complete drive. So if you were to use her TM backup on your Mac it would make your Mac just like hers. Both yours and her account on your MAC.
    Just copy the missing files over from her Mac to yours. If there are differennt programs on each then they would need to be installed on both.

  • My ipod wont let me buy apps etc... keeps saying this is the first time this device has been used and to sign in and answer security questions. I have had this account for years but cant remember the answer to the security questions. How can i fix it?

    My iPod touch wont let me buy anything, i've beem using this account for a couple of years and now it says that this is the first ime this id has been used on my device... it's not.... and to sign in and answer security questions. i cant remember the answers to the questions. How can i fix this without making a new account and losing all my stuff???

    From a Kappy  post
    The Three Best Alternatives for Security Questions and Rescue Mail
       1. Use Apple's Express Lane.
    Go to https://expresslane.apple.com ; click 'See all products and services' at the
    bottom of the page. In the next page click 'More Products and Services, then
    'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
    ID security questions' and click 'Continue'. Please be patient waiting for the return
    phone call. It will come in time depending on how heavily the servers are being hit.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • When i want to create a face time it tells me to vertify my email address. When i go to do this i have to type in my apple ID and password on the Apple website, however when ever i do this i get a message saying Invalid account for this Email Address..

    when i want to create a face time it tells me to vertify my email address. When i go to do this i have to type in my apple ID and password on the Apple website, however when ever i do this i get a message saying Invalid account for this Email Address..

    Same problem here.  Whats the deal?!  Apple??

Maybe you are looking for

  • Issue on modelling

    HI, GURUS, Will any expert will suggest me pls i have to load data in invoice cube of business content, for this how can i know that i have to load these master data for invoice cube.

  • Use of Video Camcorder on Skype

    I'm on Tiger 10.4 - and want to use my JVC camcorder through the USB port as the video input over skype. I'm having big problems getting skype to acknowledge my camcorder exists ! Audio is working fine. Have tried macams driver but still not working.

  • Error -3001 in SOftware Update after Archive and Install

    Recently had a user experience isues with maintaining a solid wireless connection. Performed Archive & Install with 10.5.4 original disk. Attempted to run Software Update and get an eror everytime regardless of connection method, wired/wireless. Any

  • Hello, why is my trackpad jumping.

    The mouse pointer moves on its own and it's difficult to navigate with it. I have a version 10.6.8 and it has just started to behave in this way. I haven't downloaded anything and the anti-virus scan has gone through just fine. Nothing was detected.

  • What is the standard component configuration for tuition fee reimbursement   in sap webdynpro?

    what is the standard component configuration for tuition fee reimbursement  in advance claims  in hrms in webdynpro?