Large amount of time spent in postInvoke()

Hello,
I'm having a stateless session bean in which I've a method that performs
quite some SQL queries to a Sybase RDBMS. It gets
one connection from the jts pool, creates a bunch of prepared
statements and executes them. After executing a statement the resultset
and
the statement is closed.
The whole of the method takes something like 900 msecs, but I noticed
that the round trip from the client took way longer (around 3300 msecs).
Adding some timings statements to the EOImpl class showed that it was
the postInvoke() in there that took most of the time: 1950 msecs.
Any idea what might cause this ?
Thanks,
Francois Staes.

Hello.
Your transaction will be committed in the postInvoke method if you are
using container-managed transactions. You could prove or disprove that
this is taking the majority of the time by trying bean-managed transactions
and measuring the method time.
Note, I'm not recommending that you switch your ejbs to bean-managed
txs, just for an experiment.
-- Rob
Rob Woollen
Software Engineer
BEA WebLogic
[email protected]
Francois Staes wrote:
Hello,
I'm having a stateless session bean in which I've a method that performs
quite some SQL queries to a Sybase RDBMS. It gets
one connection from the jts pool, creates a bunch of prepared
statements and executes them. After executing a statement the resultset
and
the statement is closed.
The whole of the method takes something like 900 msecs, but I noticed
that the round trip from the client took way longer (around 3300 msecs).
Adding some timings statements to the EOImpl class showed that it was
the postInvoke() in there that took most of the time: 1950 msecs.
Any idea what might cause this ?
Thanks,
Francois Staes.

Similar Messages

  • On iOS 7.0.2 everytime I unlock my phone while my music is playing, it skips. Forward, backward, and by small and large amounts of time.

    On iOS 7.0.2 everytime I unlock my phone while my music is playing, it skips. Forward, backward, and by small and large amounts of time.

    Hi cowboyincognito,
    Thanks for visiting Apple Support Communities.
    If you don't have the option to play music by genre on your iPhone, try this step to find the Genre option:
    Browse your music library.
    You can browse your music by playlist, artist, or other category. For other browse options, tap More. Tap any song to play it.
    To rearrange the tabs in the Music app, tap More, then tap Edit and drag a button onto the one you want to replace.
    Best Regards,
    Jeremy

  • Query plan shows larg amount of time

    I ran explain plan for the query below and it takes a long time:
    update table docs d
         set d.mismatch = 'Y'
         where exists (select 1 from diff a where a.versions > 1 and a.ed_id = d.ed_id)
    diff is a view with 1069493 rows
    docs is a table with 1527012 rows.
    Any idea on improving performance. Please!

    I'm running 10g. Please see the plan output below:
    PLAN_TABLE_OUTPUT
    Plan hash value: 2669996443
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | UPDATE STATEMENT | | 76351 | 3131K| | 115K (2)| 00:39:49 |
    | 1 | UPDATE | DOC | | | | | |
    |* 2 | HASH JOIN | | 76351 | 3131K| | 115K (2)| 00:39:49 |
    | 3 | SORT UNIQUE | | 53475 | 1201K| | 80731 (1)| 00:27:49 |
    | 4 | VIEW | DIFF | 53475 | 1201K| | 80731 (1)| 00:27:49 |
    |* 5 | FILTER | | | | | | |
    PLAN_TABLE_OUTPUT
    | 6 | SORT GROUP BY | | 53475 | 1566K| | 80731 (1)| 00:27:49 |
    | 7 | VIEW | | 1527K| 43M| | 80731 (1)| 00:27:49 |
    | 8 | SORT GROUP BY | | 1527K| 249M| 581M| 80731 (1)| 00:27:49 |
    | 9 | TABLE ACCESS FULL| DOC | 1527K| 249M| | 34009 (1)| 00:11:44 |
    | 10 | TABLE ACCESS FULL | DOC | 1527K| 27M| | 34494 (3)| 00:11:54 |
    Predicate Information (identified by operation id):
    2 - access("A"."EDV_ED_ID"="D"."EDV_ED_ID")
    PLAN_TABLE_OUTPUT
    5 - filter(COUNT(*)>1)

  • CheckTLFFontsLoaded taking large amount of time every frame

    After trying to figure out why converting all our text fields to TLF is hammering performance for ages, I've finally discovered the culprit function that is taking so long on every single frame:
    RuntimeManager$.checkTLFFontsLoaded (fl.text)
    This function often spends more than 10 ms running each frame, and is by far the longest running function in our application's action script every single frame.
    Can anyone give me a rough idea of what calls this function so I know what to start looking for in my code?
    I posted this question on the TLF forums but was told to come here because fl.text.RuntimeManager is a class of Flash Pro not TLF.

    fl.text.RuntimeManager is not a class of TLF but Flash Pro. Here we mainly focus on TLF, which includes classes in textLayout.swc. So you may want to duplicate your question to http://forums.adobe.com/community/flash. Thanks!

  • Real time application and large amount of data

    Hi,
    I've a real-time application that needs to allocate large amount of data in memory (more than 5GB). I'm using 1.6 version of JRE and I'm planning to migrate to 1.8 because the application experiment a lot of "Stop of the world" every day. I spent a lot of time analysing and testing all the parameters and policies of the GC.
    The question is, with the 1.8 version dissapears the pauses on the application caused by the GC cleaning process?
    Thanks.

    Just noting that the GC only really needs to do something when objects are created and then are no longer in use.  So if your application needs a large amount of memory then keeping it, rather than discarding it might be a better solution.

  • Firefox is using large amounts of CPU time and disk access, and I need to know how to shut down most of this so I can actually use the browser.

    Firefox is a very busy piece of software. It's using large amounts of CPU time and disk access. It puts my usage at low priority, so I have to wait for some time to be able to use my pointer or keyboard. I don't know what it uses all that CPU and disk access time for, but it's of no use to me. It often takes off with massive use of resources when I'm not doing anything, and I may not have use of my pointer for several minutes. How can I shut down most of this so I can use the browser to get my work done. I just want to use the web site access part of the software, and drop all the extra. I don't want Firefox to be able to recover after a crash. I just want to browse with a minimum of interference from Firefox. I would think that this is the most commonly asked question.

    Firefox consumes a lot of CPU resources
    * https://support.mozilla.com/en-US/kb/Firefox%20consumes%20a%20lot%20of%20CPU%20resources
    High memory usage
    * https://support.mozilla.com/en-US/kb/High%20memory%20usage
    Check and tell if its working.

  • Is there any way to connect time capsule to a MacBook Pro directly via USB. I have a large amount of data that I want to back up and it is taking a very long time (35GB is taking 3 hrs, I have 2TB if files in total)...)?

    Perhaps via USB. I have a large amount of data that I want to back up and it is taking a very long time (35GB is taking 3 hrs, I have 2TB if files in total)...? I want to use TimeCapsule as back-up for an archive which is curently stored on a 2 TB WESC HD. 

    No, you cannot backup via direct usb connection..
    But gigabit ethernet is much faster anyway.. are you connected directly by ethernet?
    Is the drive you are backing up from plugged into the TC? That will slow it down something chronic.. plug that drive in by its fastest connection method.. WESC sorry I have no idea. If ethernet use that.. otherwise USB direct to the computer.. always think what way the files come and go.. but since you are copying from the computer everything has to go that way.. it makes things slower if they go over the same cable.. if you catch the drift.

  • How do i delete a large amount of locked files at one time?

    How do i delete a large amount of locked files at one time or batch unlock the files to delete them?

    Drag them to the Trash and hold your Option key down when selecting Empty Trash.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Pull large amounts of data using odata, client API and so takes a long time in project server 2013

    We are trying to pull large amounts of data in project server 2013 using both client API and odata calls, but it seem to take a long time. How is this done
    In project server 2010 we did this creating SQL views in both the reporting database and for list creating a view in the content database. Our IT dept is saying we can't do this anymore. How does a view in Project database or content database create issues?
    As long as we don't add a field in the table. So how's one to do this with creating a view?

    Hello,
    If you are using Project Server 2013 on premise I would recommend using T-SQL against the dbo. schema in the Project Web Database for your reports, this will be far quicker that the APIs. You can create custom objects in the dbo. schema, see the link below:
    https://msdn.microsoft.com/en-us/library/office/ee767687.aspx#pj15_Architecture_DAL
    It is not supported to query the SharePoint content database directly with T-SQL or add any custom objects to the content database.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Why each time I try to save my day's work,version WITH mark-ups and version w/o, does it say "you have placed a large amount of text on clipboard do you want to access this? What is clipboard and how can I just save my work in its proper file?

    I don't get this clipboard thing! I have created two files, one for the MS with mark-ups, and one for the unmarred version, each living in their own spot in my "house." It seems to be merging the two versions and I have to go in and re-paste and then it always says "you have placed a large amount of text on clipboard do you want to be able to access this?" and it prompts me to say no but I am afraid I'll lose my day's work so I just tap cancel. I highlight the day's revision and select "copy" to paste into the unmarked doc. before I save on the marked up or working doc. It is when I try to close that one that the clipboard issue pops up. What can you tell be about saving doc. in two places and how to NOT get it on clipboard? Thanks! I am not super computer savvy so layperson's language much appreciated!

    Are you using Microsoft word?  Microsoft thinks the users are idiots. They put up a lot of pointless messages that annoy & worry users.  I have seen this message from Microsoft word.  It's annoying.
    As BDaqua points out...
    When you copy information via edit > copy,  command + c, edit > cut, or command +x, you place the information on the clipboard. When you paste information, edit > paste or command + v, you copy information from the clipboard to your data file.
    If you edit > cut or command + x and you do not paste the information and you quite Word, you could be loosing information.  Microsoft is very worried about this. When you quite Word, Microsoft checks if there is information on the clipboard & if so, Microsoft puts out this message.
    You should be saving your work more than once a day. I'd save every 5 minutes.  command + s does a save.
    Robert

  • HT1805 Do you know if the Mobile Usage Current Period is the amount of time you have spent phoning people or the amount of time you have left of your allowance?

    Hi,
    I'm a new iphone owner and have a limit of 200 mins to use making telephone calls per month. I'm just wondering if the amount of time recorded in the 'Current Usage' box on the Mobile Usage screen is the amount of talk time I've used in the month or the amount of time I have left?
    Thank you

    As the phone has no way of knowing what your plan allowance is, it just shows how long you've been on calls. Keep in mind that not all calls are billable. My carrier doesn't count calls to customer service. So, if you had called customer service, it would show on the phone as usage but not on your bill as part of your allowance. Check to see if your carrier has an app in the App Store for tracking minutes. It will be much more accurate.

  • Apple Music & Spotify, my time spent with them, my review and thoughts

    Amazing that 1:1 $ to £ exchange rate they sting us with eh.
    Works out much better in $

    Hi guys. I thought I would write a review/round up of the 3 weeks or so that I’ve spent with Apple Music and Spotify. Prior to using Apple Music, I’d never used a music streaming service before, but as Apple are offering a 3 month free trial I thought why not. I will point out that Apple Music is not going to be exclusively on iOS/iPhone, it is later in the year coming to Android. Within a couple of days I found out just how useful a music streaming service was and felt that it would be something I would want to subscribe to based on the usefulness I was finding with such a service. I feel that it will change the way I now listen to music. Once I realized how useful a music streaming service was, I decided to try Spotify (as there are the nearest competitor to Apple Music). I got a free premium trial from Spotify for 1 week (which I think it a bit on the greedy side, a month would have been more acceptable). Firstly I will cover my experiences both good and bad with Apple Music, I will then move on to Spotify.  The good points: Firstly, I want to talk about the sound quality from Apple Music. I have a high end pair of in ear earphones and also a high end Airplay speaker system (B&W A7). The quality of the audio from Apple Music I found was exceptionally clear and detailed on both the earphones and the speaker system I have. The clarity and the separation of the various instruments was faultless I found.  For the sake of a fair comparison, I used Spotify and choose the Extreme setting (which gives a 320 kbps quality) basically this it the highest quality setting you can have on Spotify. I listened to exactly the same album on both Spotify and Apple Music, but I found with Spotify the audio quality was good, but I could tell the quality was noticeably less than on Apple Music, and by this I felt the detail/clarify was lacking on Spotify. Also, despite having the volume level set on the same level, I felt Spotify’s volume was lower and even turning the volume up to match the level I was hearing with Apple Music, this didn’t bring any more detail/clarity out in the music. Don’t get me wrong, the audio quality was very good on Spotify, but for my ears and the equipment I used, Apple Music was noticeably better.  From what I have read, Apple Music uses a variation on the m4a AAC audio format, whereby Apple Music uses the m4p format, which is essentially the same as m4a but has a DRM protection applied for licensing reasons and also to stop people downloading a heap of songs/albums on Apple Music and then cancelling their subscription and then been able to keep the songs for basically the cost of a month subscription on Apple Music. m4a/m4p AAC is a more efficient file format to what Spotify uses and also AAC/m4a/m4p file quality is better and file sizes smaller compared to MP3 files. M4A files sound better than MP3 files when encoded at the same bit rate due to some of the enhancements made to the format such as: Smaller sample block size of 120 or 128 samples rather than 192 for changing (or transient) signals, allowing for more precise details where they are needed.Larger block sizes in stationary signals, 1024 or 960 vs MP3's 576 sample blocks, allowing for less data to represent a portion of the music that does not have the same complexity.  With iOS 8.4 came the new redesigned music app. It was quite a change from the previous version and apart from the addition of Apple Music gave use new features such as the mini player, which I find very handy. Despite the redesign I found the new music app to be intuitive and within a short space of time I’d figured it out (something which I can’t say about the Spotify app, which I’ll get on to later). Both Spotify and Apple Music have content in the region of 30 million, Apple Music is rumored to be getting exclusive content but I expect the same will happen with Spotify too, which personally isn’t good for us customers. I’m expecting that Apple Music will get the larger amount of exclusive content, purely as they have the biggest budget to entice the artists with. In the testing I done, I found some of the albums I’d looked for on Apple Music weren’t available, but they were on Spotfy, but vice versa applied to. For example, I looked for Queen’s The Platinum Collection on Apple Music and found it, but it wasn’t available at all on Spotify at the time I looked for it. To summarize, its swings and roundabouts, but whichever streaming service you choose, there will be some albums/songs you will get on one service and not on the other. With Apple Music, when you first set it up, you tell it what genres of music you like, what artists you like. This then helps it provide you with handpicked playlists, albums, songs etc based on what you like. Basically the app does all the leg work, and presents you with the albums, songs, playlists. Personally I really like this as with Spotify I couldn’t for the life of me find any similar feature in their app which allowed me to tell it what music genres etc that I like. I was having to think “what can I search for” rather than having all the music presented to me like it was in Apple Music. If I’m honest, I find the way Apple Music provides/presents you with the music is a really big selling point. Also when you are listening to a song, album, you see a heart shaped symbol on both the album track listing or the song currently been played. Touching this heart shaped symbol further tells Apple Music that you really like that particular album, artist and in turn alters the music choices it presents to you. Basically if you do this, you have the potential to get even more tailored music presentations. Most of the stuff I listen to on Apple Music are playlists. The playlists on Apple Music I find are really good, there is also a section (in the new section on the music app) which has three categories. One is Apple Editors Playlist (this will list various genres of music and provide you with a playlist with music from that genre). Next is Activity Playlists. This lists around 20 different playlist ranging from activities such as chilling out, been outdoors, running, cooking, driving, entertaining, working out and many more. Again, choosing one of those playlists will provide you with music that will compliment that particular activity. Lastly is Curator playlist. From the description “what people in the know are listening to”. Curators listed in here are, Shazam, Rolling Stone US edition, Pitchfork, DJ Mag, NME, Q Magazine, Vice, Mojo Magazine. I really like choosing a work out playlist or running playlist for when I am listening to music in the gym. It’s great to have new music everytime I go to the gym, rather than having a limited amount of songs on my iPhone and after a time getting fed up with them, which is what I used to have before Apple Music. Spotify has a sort of time based playlist, and by this I mean, early on in the day it has commuting playlists, later on in the day when you are arriving home from work it has more chilling out ones, admittedly good, but there was no tailored music and from what I could see, everyone would have got the same choice of music if they were accessing that playlist. I really didn’t like the songs etc that were on these playlists, again, due to not been able to tell Spotify what artists, genres I liked, like I could on Apple Music. With both Apple Music and Spotify, you can make songs, playlists, albums available offline. What this means is, they are downloaded onto your phone so that you can listen to them when you either don’t have an internet connection or you don’t have a large data allowance to allow for a lot of streaming. One of the big advantage with streaming is you don’t physically need to have large amounts of storage on your phone for your music, your music is basically stored elsewhere and is streamed to your iPhone when you listen to it (unless you have made some of your stuff available offline). This is really useful for users of the 16GB iPhone’s. When you enable Apple Music/iCloud Music Library. Tbe music you have in your library previously is either uploaded into the cloud so that it can be accessed on your other devices, for example your iPad, iTunes on your computer. Or if that particular album is in Apple Music, it will use this, rather than upload your copy. Now this is a good and bad thing which I will list below in the bad points section. I found the Spotify service to be really solid and I experienced no bugs or other weird issues during the time of testing.  Now onto the bad points: You may have read of the bugs in Apple Music on the various sites. I have witnessed some bugs myself with Apple Music, I will list some of the bugs I have experienced and also what others have on sites I’ve visited. Beats Radio and the other featured radio stations sometimes display a could not start message. This has happened to me twice. Sometimes this issue lingers around for a number of days. When you enable Apple Music/iCloud Music Library. The music you have in your library previously is either uploaded into the cloud or if that particular album is in Apple Music, it will use this, rather than upload your copy. I have experienced Apple Music providing me with a different version of a song to what my version was. For example, you might have a rare imported album or you might have a live version of that song/album. Apple Music basically incorrectly provided me with a different version and it was a real fight getting it to basically use my copy instead. It was only after editing the metadata of that particular song/album that I was able to get it to use my copy rather than the incorrect replacement.  Another issue I have experienced is with Apple Music replacing some custom cover art that I had provided. These issues that I have listed are a common complaint with Apple Music, judging by the various forums I’ve visited. Occasionally, music I’ve made available offline has mysteriously not been available offline. I also experienced (and so did others on the forums, but this matter has now been sorted out and was unknown as to if it was a combination ISP and or Apple Music related problem) whereby music you were making available offline kept failing to download. There was a workaround at the time of the issue, which solved it by changing the DNS server on your iPhone.  Too be honest, these bugs should have been sorted out before release and personally I feel it’s the buggiest release I’ve seen from Apple. But I suppose its only once you get the millions of people using the service and uploading their albums with various bits of metadata that the system is really tested and also Apple Music is a new service too. It would be interesting to know if Spotify had bugs like this or bugs in general when it launched back in 2008. Even though I found the Spotify service to be more reliable in use, I really did not like the UI, I found it not intuitive and also I still struggled with it several days after. Usually I am pretty savvy and figure my way around an app pretty quickly, but not with the Spotify app. I did like to dark/black look of the Spotify app though and apart from that and the solid service I didn’t like Spotify. The question I have to ask myself and others will probably be doing the same too is,: “How long can I put up with the bugs in Apple Music, before I say enough is enough and look elsewhere for a streaming service. Or can I put up with the bugs for all the pros/features I get with Apple Music” For me personally (for the time at least) I’m prepared to put up with the bugs in order to get all the pros/features I get with Apple Music. I’m hoping that with iOS 9 that most of the bugs/issues will be ironed out and hopefully Apple will address any issues which are network based on their side. Anyway, I’ll bring this review/round up to a close now and I hope its been of use to either new users to Apple Music or for people like myself who have never used a music streaming service before, and also for people who are trying to decide which music streaming service. I’ll add some screenshots from Apple Music and try to describe what the screenshot is showing.    The heart shaped symbol which further tailors the music presented to you.       The For You section and the new mini player. The For You section shows songs, albums, playlists tailored to what you have told the Music app that you like.       The New section which shows, well, whats New.        Various playlists section in the New section of Apple Music.       Curator playlist.        These are the various screens of where you choose the artists, genres of the music that you like.  

  • Creation of data packages due to large amount of datasets leads to problems

    Hi Experts,
    We have build our own generic extractor.
    When data packages (due to large amount of datasets) are created, different problems occur.
    For example:
    Datasets are now doubled and appear twice, one time in package one and a second time in package two. Since those datsets are not identical, information are lost while uploading those datasets to an ODS or Cube.
    What can I do? SAP will not help due to generic datasource.
    Any suggestion?
    BR,
    Thorsten

    Hi All,
    Thanks a million for your help.
    My conclusion from your answers are the following.
    a) Since the ODS is Standard - within transformation no datasets are deleted but aggregated.
    b) Uploading a huge amount of datasets is possible in two ways:
       b1) with selction criteria in InfoPackage and several uploads
       b2) without selction criteria in InfoPackage and therefore an automatic split of datasets in data packages
    c) both ways should have the same result within the ODS
    Ok. Thanks for that.
    So far I have only checked the data within PSA. In PSA number of datasets are not equal for variant b1 and b2.
    Guess this is normal technical behaviour of BI.
    I am fine when results in ODS are the same for b1 and b2.
    Have a nice day.
    BR,
    Thorsten

  • Large Amount of Data in JSF

    Hello,
    I am using the Table Group component for displaying data in my application designed in Java Studio Creator.
    I have enabled paging on the component. I use CachedRowSet on the bean for the page for getting the data. This works very well at the moment in my development environment. At the moment I am testing on small amount of data.
    I was wondering how does this component perform with very large amounts of data (>75,000 rows). I noticed that there is a button available for users to retrieve all the rows. So I was wondering apart from that instance, when viewing in a paged mode does the component get all the results from the database everytime ?
    Which component would be best suited for displaying large amounts of data in a table format?
    Thanks In Advance!!

    Thanks for your reply. The table control that I use does have paging as a feature and I have enabled it. It still takes time to load the data initially.
    I wonder if it is got to do with the logic of paging. How do you specify which set of 20 records to extract from SQL.
    Thanks for your help!!

  • Bex Report Designer - Large amount of data issue

    Hi Experts,
    I am trying to execute (on Portal) report made in BEx Report Designer, with about 30 000 pages, and the only thing I am getting is a blank page. Everything works fine at about 3000 pages. Do I need to set something to allow processing such large amount of data?
    Regards
    Vladimir

    Hi Sauro,
    I have not seen this behavior, but it has been a while since I tried to send an input schedule that large. I think the last time was on a BPC NW 7.0 SP06 system and it worked OK. If you are on a recent support package, then you should search for relevant notes (none come to mind for me, but searching yourself is always a good idea) and if you don't find one then you should open a support message with SAP, with very specific instructions for recreating the problem from a clean input-schedule.
    Good luck,
    Ethan

Maybe you are looking for

  • Problems with two new LCD monitors and my G5 Power Mac

    I bought two of these Westinghouse Digital LCD monitors: http://www.macaddict.com/issues/2005/11/reviews/lcm When I plugged in the first one, my Mac's power-on light was on, but the Power Mac G5 (1.6 ghz, 1.25 gb RAM) wouldn't boot and the light woul

  • Copy and Paste Unformatted Text to documents

    A very useful feature at times is the ability to copy and paste formatted text from pages (in this case webpage) to a document (text edit, word). Which means that what ever bold, font or style on a page is copied to the clipboard and then pasted iden

  • My video dims randomly for no reason - can't reset

    I have an iMac G5 20" second generation... my problem is that my video display will randomly dim for no reason. In my settings, I do not allow it to go to sleep, display is not allowed to go to sleep, under options tab, Automatically reduce the brigh

  • Automatic restart of J2EE engine

    Hi Experts, if I deploy my application via NWDI the server where deployment is running is automatically restarted. How can I stop him restarting automatically? Thanks, Chris

  • Disappearing Presets (Premiere Pro CS6)

    I am a subscriber to creative cloud, and am an infrequent user. I work on videos as an occasional hobby. Often when I try to start a project I am unable to work on an old one, or start a new one because all of my HD presets have disappeared. Is there