Slow performance during Apply Request Values Phase of JSF lifecycle

Dear all,
I found that my application is sucked at the Apply Request Values Phase of JSF lifecycle when I submit the page. (Totally spend 1 min to pass this phase)
In the application, there is around 300 input fields in the page. Who know how can I ehance the performace?
Thanks.

Thanks a lot for your help. Maybe I explain more about my current structure
I need to develop a input form for course instructor to input students' assignment / examination result (max 9 assignments and 1 examination).
so that I have below coding:
*1. bean to store marks of a student*
public class Mark {
private String studentID = "";
private String mark1 = "";
private String mark9 = "";
private String markExam = "";
//getter & setter of above properties
public void setMark1(String mark1) {
this.mark1 = mark1;
public String getMark1() {
return this.mark1;
*2. backing bean*
public class markHandler {
ArrayList<Mark> marks = new ArrayList<Mark>();
//getter & setter of above property
//method to retrieve list of student (this will be the action before go in mark input page)
public void getStudentList() {
//get student list from database
for(int i = 0 ; i < studentCount; i++){
//initial mark of student
Mark mark = new Mark();
mark.setStudentID(studentID);
mark.setMark1("");
mark.setMarkExam("");
//put into arraylist
marks.add(mark);
*3. mark input page*
<html>
<h:dataTable value="#{markHandler.marks}" var="e">
<column>
<h:output value="#{e.studentID}" />
</column>
<column>
<h:input id="mark1" value="#{e.mark1}" />
</column>
<column>
<h:input id="mark1" value="#{e.markExam}" />
</column>
</h:dataTable>
<h:commandButton action="#{markHandler.save} />
</html>
When I submit the page, It seems that there is a long time spent at the input field of datatable at Apply Request Values Phase. (I use Phase Listeners to test the time difference before & after phase)
Pls help. Thanks.
Edited by: Daniel_problem on Aug 15, 2008 10:34 AM
Edited by: Daniel_problem on Aug 15, 2008 10:36 AM

Similar Messages

  • Apply request values from a region on an event from another region

    Hi,
    I am quite new to ADF and that's my first question/post here (and as a matter of fact pretty much anywhere),
    so i hope i manage to make my problem clear enough.
    First i am using ADF Faces + ADF BC using JDeveloper 11.1.2.1.0 with the integrated WebLogic Server
    Now the what is the case:
    I have a page with two af:regions in it.
    The first one is basically a single selection table.
    The second one is a to put is simply an edit form for the selected row of the first table.
    I don't use the contextual events mechanism ( i have spent some week or more playing around with it awhile ago, but from that exprience i don't recollect any particular thing that might solve my problem) so what i do is pass as parameter to the first(table) region a "delegate" that would listen/handle selection events and in the backing bean of the table i have the selection listener that fires the events/calls the delegate's handleEvent(String eventType,Object data) method so that the main page knows and refreshes the second/edit form region
    with the newly selected ID of the entity.
    My problem is that if i had entered data in the form in the second region it is lost after selection
    has been made in the first one.
    I see (in the http request content of the selection event, or in the requestMap), that all that was in the html page, including the second region is transmitted to the server - so are the newly entered values. However the jsf components that are a part of the second region are not applied with their new values, nor their model is updated in the next jsf phase.
    Now I suspect that has something to do with the (Adf)RichRegion being a EventRoot or something.
    I tried putting partialTrigger to the second region (though i currently and for various reasons call the AdfFacesContext.addPartialTarget programmatically at about one million places in the java code after the selection event)
    I even tried hacking the javascript AdfRichRegion object, so that it would always return false if asked isEventRoot. :) that's how desperate i was
    The only solution i have so far is:
    First to make clear. When i say refreshing the second region i don't mean calling RichRegion.refresh(), but rather RichRegion.queueActionEventInRegion(....., "refresh",PhaseId.ANY_PHASE) which in the second's region taskflow is just a method call, that sets the right current row of the iterator and then loops back to the same (one and only view in this taskflow - the edit form) and adds some parialTargets to the AdfFacesContext, so we see the new data
    then in that methodCall (which i think happens in the INVOKE_APPLICATION phase) i add those few lines to make sure the values are applied to the jsf components sub-tree of interest:
    RichPanelGroupLayout fl = getFl();//that's a binding of the UIComponent, that holds all the inputTexts i care about
    fl.processDecodes(FacesContext.getCurrentInstance());
    fl.processValidators(FacesContext.getCurrentInstance());
    And when i say make sure that the values are applied... i actually mean - get on my knees and pray because the whole thing looks too hacky already, but so far it works.
    But now i have to make sure the validation has been ok (otherwise i get a funny effect of seeing the red popups at the invalid text inputs just for a second and then my region is refreshed to the new entity or i get an JBO exception depending of whether i call the next lines that follow without the if(..){processUpdates}
    How do i check this:
    System.out.println(FacesContext.getCurrentInstance().isValidationFailed());
    //The above line would print false nomatter what happenned so i decided to use this "something":
    boolean validationFailed = FacesContext.getCurrentInstance().getMessageList().size()>0;
    if(validationFailed){
    //dont update the iterator's current row and return to the edit form page
    return "fail";
    }else{                    
    fl.processUpdates(FacesContext.getCurrentInstance());
    //update the current row and return to the edit form page
    It took me days to come up with this...i would call it hack...And a day or two more to adapt the rest of the page's logic with the whole design changes i had to make but i still believe there must be some better solution that i am missing because for a number of reasons i don't feel right eith this one, which, while implemented and working (i hope) makes the whole real case a lot more complex than it used to be (and still feels like a hack),
    just for the simple reason that I want to get some updated values back in the model.
    Just as an example of a design change i had to make i give you the afformentioned methodCall i had to add, because the processUpdate would not work if not called with the right adf bindings context... first i tried calling them from a custom PhaseListener i have but at that moment nobody knows what #{bindings.MyEntityId.inputValue} is.
    Thanks and Greeting
    trout
    Edited by: trout1234 on Aug 2, 2012 10:47 AM
    Edited by: trout1234 on Aug 2, 2012 10:57 AM

    Oh yes... and i have also noticed that if the action is triggered from a component(e.g. clicking on a commandLink) that is a part of the main page
    the values are updated in all regions (i think so :) ) ... so i even tried a client listener in the first region that calls javascript function that queues a custom event with a source component from the main page, but yet the selection event is propagated to the server even with the event.cancel() and evt.stopBubbling()
    and i could not make my custom event force the apply request values... but here i might have done somthing wrong i dont know it is a mess anyway... sure this one sound more of a hack than my current option....by my criteria at least

  • I have the current Mac Pro the entry level with the default specification and i feel some slow performance when applying after effects on my videos using final cut pro and also rendering a video takes long time ? what upgrades do you guys suggest?

    i have the current Mac Pro the entry level with the default configuration   and i feel lack of  performance when applying after effects on my videos using final cut pro and also rendering a video takes long time ? what upgrades do you guys suggest i could do on my Mac Pro ?

    256GB SSD  it shipped with will run low and one of the things to watch.
    Default memory is 12GB  also something to think about.
    D500 and FCP-X 10.1+
    http://macperformanceguide.com/index_topics.html#MacPro2013Performance
    Five models of 2013 Mac Pro running Resolve, FCPX, After Effects, Photoshop, and Aperture

  • Slow Performance During Folder Selection in Miggui

    I am trying to migrate some 30,000 folders from an NSS volume on NW 6.5 SP5 server to an NSS volume on a server running OES2 SP3 on SLES 10 SP4.
    Using the miggui from the OES server, I can authenticate to both servers, and select File System as the service to be migrated. Both servers show up in the list and I can expand the folders and select what I want to migrate. Now here's where I'm getting stuck: I select a subset (say 1,000 folders) and drag them to the destination. Once I let go the mouse, it sits there for hours. If I look at the target destination, a folder appears once every few minutes. What did I forget to turn on/configure in order to get this to speed up???
    I saw a message that said to increase the cache values for the TSA on the source. I tried that and it didn't help. However, I'm assuming that the TSA only gets used when you actually migrate the data and not during the pre-copy checks.
    Any help is appreciated!
    Mario
    Laurentian University

    $(UI tried with 10k folders drag-drop on the target and it took approximately 20 minutes to show it on the Target Server folder tree. I haven't tried it with 30k folders yet.
    All you have to do is select the folder range on the source server and drop exactly on the target volume/folder. You can tailf /var/opt/novell/migration/<my_project>/log/debug.log and notice the messages like:
    '<time_stamp> DEBUG - Path of folder selected /NSS Volumes/VOL1', running for every folder created on target.
    If you see message in debug.log as 'Drag and drop in progress: java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress', means either the drop on the target is not accurate or off the tree.
    -Ramesh
    >>> Gingrasm<[email protected]> 11/16/2011 10:36 PM >>>
    I am trying to migrate some 30,000 folders from an NSS volume on NW 6.5
    SP5 server to an NSS volume on a server running OES2 SP3 on SLES 10
    SP4.
    Using the miggui from the OES server, I can authenticate to both
    servers, and select File System as the service to be migrated. Both
    servers show up in the list and I can expand the folders and select what
    I want to migrate. Now here's where I'm getting stuck: I select a
    subset (say 1,000 folders) and drag them to the destination. Once I let
    go the mouse, it sits there for hours. If I look at the target
    destination, a folder appears once every few minutes. What did I forget
    to turn on/configure in order to get this to speed up???
    I saw a message that said to increase the cache values for the TSA on
    the source. I tried that and it didn't help. However, I'm assuming
    that the TSA only gets used when you actually migrate the data and not
    during the pre-copy checks.
    Any help is appreciated!
    Mario
    Laurentian University
    Gingrasm
    Gingrasm's Profile: http://forums.novell.com/member.php?userid=14183
    View this thread: http://forums.novell.com/showthread.php?t=448307

  • NVIdia Powermizer on Laptops - Slow Performance during gaming

    Hope this is the place for this post...
    I'm currently running nvidia 180.29 and I have the following set in my xorg.conf file:
    Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
    The problem I see occurring is that; during gaming the performance level will move from what I have it set to above (Level 2) and dropping to a lower level performance.  This; of course, causes a HUGE drop in frames while gaming.  I've tried EVERYTHING I researched but nothing seems to make this sticky.
    I have tried:
    1.  Adding options to /etc/modprobe.conf (Setting nvidia stuff I found googl'ing around)
    2.  The above options added to my device sections of my xorg.conf file
    3.  Running this script that some said would keep it sticky:
    while true; do
    powerstate=`cat /proc/acpi/ac_adapter/AC/state | awk '{print $2}'`
    if [ $powerstate = "on-line" ]; then
    nvidia-settings -q all > /dev/null
    fi
    sleep 25;
    done
    All attempts have failed and my performance is HORRIBLE as long as the game is running.  When the game quits the performance returns.
    Any suggestions, information, links..etc would be greatly appreciated.
    Thanks in advance...
    EDIT:  See alot of people complaining about 180.29 and powermizer.....does anyone know if it's broken??  If it is...can someone post a quick link to how to downgrade?
    Last edited by johnnymac (2009-03-15 02:39:56)

    You can try to install some older drivers from http://www.nvidia.com/object/unix.html find the driver for your PC, select archiver, run the script... Should work.

  • Slow performance during CD-import in iTunes -- 2. GHz iMac

    This folowing is the text of a feedback I have sent to Apple.
    Something doesn't quite seem right.
    Yesterday I had problems trying to rip to Apple lossless format.
    Initially the discs started off ripping at around 5~8x and then maxed out at about 14x. This wasn't concerning me particularly as I don't do much ripping and the speeds concerned had never really concerned me before. But then they started hanging near the end of certain tracks. This seems to be an unrelated issue. The discs were old, dirty and scratched and I can only assume the SuperDrive was being overly sensitive.
    Anyway that's when I tried the same discs on my 1.3GHz G4 iBook. The ibook started the discs off at around 9~10x and maxed out at 20~24x at the end of the disc. The iBooks combo drive did not hang on any tracks like the iMac.
    I know that this was not a particularly objective observation so today I did some tests. Again they are not entirely objective and were not done with specialised software.
    I ripped a identical commercial CD to Apple Lossless and 128 kbps AAC on both my iBook and iMac.
    The following are the averages (or increases) that I observed in iTunes (7.3.2 (6)) for the first and last tracks. As you may well know the average encode speed for each track increases until the machine reaches its maximum encode speed and it then proceeds to encode the rest of the tracks at that speed.
    iBook Apple Lossless: 6~10x -> 26~27x (1st track -> 12th track)
    iMac Apple lossless: 6.5~9.5x -> 21x (1st track -> 12th track)
    iBook AAC: 10x -> 11.5x (1st track -> 12th track)
    iMac AAC: 6.5~9x -> 21x (1st track -> 12th track)
    Both Macs were running OS X 10.4.10. The iMac had 2GB RAM and the iBook 1GB RAM and neither had any other applications open.
    The iMac clearly maxes out higher than the less grunty iBook on the AAC tracks which makes sense as there is more encoding involved but why is it effectively only achieving 80% the speed of a two year old G4 iBook on the Apple Lossless encoding?
    Another user posted similar comments re a MacBook in July:
    http://discussions.apple.com/thread.jspa?messageID=5024487#5024487
    Any ideas?
    Josh

    No scrached disks (some of them brand new), and I tried about eight or nine and all were equally slow.
    Regarding read speed: The internal DVD-drive (Pioneer 106D) on my four-year old Dual G5 has a read speed of 32X for audio disks, but are those 8X enough to explain the more than 50% better rip speed?
    The G5's got faster disks, though, so maybe that is an issue?

  • Where in the JSF lifecycle does submittedValue, localVaue, value get set?

    Where in the JSF lifecycle does submittedValue, localVaue and value get set? I was looking at those values on a hidden input field and it was not clear to me in what phases the various values get set. It seemed like sometimes one was set, sometimes the other was set. It was not clear to me how to know where to look for the value (other than try one if that was null try another).
    Brian

    BHiltbrunner wrote:
    Where in the JSF lifecycle does submittedValueIt will be set during the apply request values phase, in the decode() method of the HtmlBasicRenderer.
    It will be reset to null during the process validations phase, in the validate() method of the UIInput.
    localValue and value get set? Those will be set during the process validations phase, in the validate() method of the UIInput.
    The difference is that 'localValue' represents the actual and unevaluated value, and 'value' represents the outcome of the evaluated ValueExpression value.
    I was looking at those values on a hidden input field and it was not clear to me in what phases the various values get set. It seemed like sometimes one was set, sometimes the other was set. It was not clear to me how to know where to look for the value (other than try one if that was null try another).Depends on the where and when you're going to check them.

  • IPhone turning off during Phone Call with iOS 4 and very slow performance!!

    Ever since the update, my phone has been switching itself off during a conversation.
    Has any one else experienced this problem since the update???
    Do you have a solution, if so please post it and help me!!!
    Also, the phone has been going very slow.
    Keyboard appearing 20 seconds later, after opening a new note and overall slow performance.

    Thread here :
    http://discussions.apple.com/thread.jspa?threadID=2471090&tstart=15

  • BC_MSG slow performance

    I experience slow performance in a SAP PI 7.1EHP1 SP05 installation. The BC_MSG table contains about 550.000 messages. I archive and delete message that are 10 days old. The environment is Redhat Linux 5.5 64bit with 16GB RAM and oracle 10.2.0.4.<br>
    <br>
    The problem is when I want to query all message containg error in the last 7 days or more. It needs about 5 minutes to respond and sometimes more that ends with request timeout from ICM. I shrink the tables, rebuild the indexes, restart the system many times, apply latest service pack (SP06) but the performance remains unchanged.<br>
    <br>
    The query that is executed is the following:<br>
    <br>
    <pre>
    SELECT "MSG_ID","DIRECTION","REF_TO_MSG_ID","CORRELATION_ID","SEQUENCE_ID",
      "SEQUENCE_NBR","CONN_NAME","MSG_TYPE","STATUS","TO_PARTY_NAME",
      "TO_PARTY_TYPE","FROM_PARTY_NAME","FROM_PARTY_TYPE","TO_SERVICE_NAME",
      "TO_SERVICE_TYPE","FROM_SERVICE_NAME","FROM_SERVICE_TYPE","ACTION_NAME",
      "ACTION_TYPE","DELIVERY_SEMANTICS","SENT_RECV_TIME","TRAN_DELV_TIME",
      "SCHEDULE_TIME","PERSIST_UNTIL","TIMES_FAILED","RETRIES","RETRY_INTERVAL",
      "MSG_PROTOCOL","TRANSPORT","ADDRESS","CREDENTIAL","TRAN_HEADER",
      "VALID_UNTIL","NODE","ERROR_CODE","ERROR_CATEGORY","PP_USER","PP_HASH",
      "VERS_NBR","VERS_WAS_EDITED","PRIORITY_TYPE","PRIORITY"
    FROM
    "BC_MSG" WHERE "BC_MSG"."MSG_ID" IS NOT NULL AND ("STATUS" = :1 OR "STATUS" =
       :2) AND "SENT_RECV_TIME" >= :3 AND "SENT_RECV_TIME" <= :4 ORDER BY 21 DESC
    </pre>
    <br>
    Parameters:<br>
    :1 = 'FAIL'<br>
    :2 = 'NDLV'<br>
    :3 = 2011-03-01 08:06:02.34 (example)<br>
    :4 = 2011-03-02 08:06:02.34 (example)<br>
    <br>
    <br>
    This statement is executed for each day for the time interval I specify (e.g. 7 days of the week if the interval is 'Last 7 Days'). I don't know why they don't use one SQL for the specified interval.<br>
    <br>
    When I enable trace in the Open SQL monitor the execution time I see is very disappointing, about 22 - 46 seconds for each query. I also enable SQL trace in Oracle database and the results I get are the following:<br>
    <br>
    <pre>
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          0          0           0
    Fetch        2     10.74      79.70      50473      62752          0           6
    total        4     10.74      79.70      50473      62752          0           6
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 32
    Elapsed times include waiting on following events:
       Event waited on                             Times   Max. Wait  Total Waited
       Waited  -
      db file sequential read                     50473        0.15         72.90
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net more data to client                     1        0.00          0.00
      SQL*Net message from client                     2        0.00          0.00
    </pre>
    <br>
    The 'db file sequential read' is what worries me but I don't know what to do.<br>
    <br>
    Also I tried the same query using Db Visualizer and the jdbc jar file. The response was much better and the execution plan was different as you can see in sql trace results:<br>
    <br>
    <pre>
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.01          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          7          0           0
    total        3      0.01       0.01          0          7          0           0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 32
    Rows     Row Source Operation
          0  SORT ORDER BY (cr=7 pr=0 pw=0 time=636 us)
          0   INLIST ITERATOR  (cr=7 pr=0 pw=0 time=487 us)
          0    TABLE ACCESS BY INDEX ROWID BC_MSG (cr=7 pr=0 pw=0 time=459 us)
          0     INDEX RANGE SCAN I_BC_MSG_STATUS_SENT (cr=7 pr=0 pw=0 time=347 us)(object id 96079)
    Elapsed times include waiting on following events:
       Event waited on                             Times   Max. Wait  Total Waited
       Waited  -
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     2        0.18          0.19
    </pre>
    <br>
    The I_BC_MSG_STATUS_SENT index that scans is the index using the columns STATUS, SENT_RECV_TIME I created to see if performance is better.<br>
    <br>
    Generally the system works fine. I handles 50.000 messages per day with no delays. But the monitoring performance is annoying. I need your expertise on that.<br>

    You, also, have waaaay too many user startup/Login items.
    You need to pare these down to the apps you really need to have launched at startup and running in the background.
    Add or remove automatic items
    Choose Apple menu > System Preferences, then click Users & Groups.
    Select your user account, then click Login Items.
    Do one of the following:
    Click Add below the list on the right, select an app, document, folder, or disk, then click Add.If you don’t want an item’s windows to be visible after login, select Hide. (Hide does not apply to servers, which always appear in the Finder after login.)
    Select the name of the item you want to prevent from opening automatically, then click Delete below the list on the right.
    You need to make sure to update all of your third party software if there are OS X Mavericks updates that can be applied.
    You may need to go the third party developers' websites if there are no updates through the Mac App Store.
    Make sure all of your Web browser Internet plugins, extensions and add-ons are updated to recent versions, also.

  • Slow Performance Weeks after Encryption

    I encrypted my organization's laptops several weeks ago and did not return them to users until after I could tell by device performance that the bulk encrypting task had completed. I have two users that are experiencing extremely slow performance on their systems. When the users are typing anything like a Word document, upon each keystroke they see the Windows 7 "circle" icon at the mouse cursor. This seems to come and go several times over the week, and every few days we are getting a request to resolve the issue but after restarting the behavior may not act up anymore.
    I found a TID suggesting to change HKLM\SOFTWARE\Novell-FDE\Parameters\ThrottleEncryption to a lower level like Idle or BelowNormal. Is there anything else that I should also try? Thanks!

    Yes, but nothing from Novell yet - I will keep pushing them forward and let you know if I get some results.
    -j-
    >>> Jim Koerner<[email protected]> 8.3.2013 15:29 >>>
    Sounds like you have a SR going on this also. Have you heard anything on a
    fix? Mine has been stagnant for a while and I just bumped it to see if
    anything has been figured out or if more info is needed from my side. Hope
    to here something soon. This is a pretty severe problem especially when it
    happens multiple times to a machine.
    Jim Koerner
    Server - ZCM 11.2.2 MU1 and Internal Database on Win2008R2x64
    Client - ZCM 11.2.2 MU1 on Win7SP1x64 and WinXPx32
    "Jouko Oksanen" <Jouko.Oksanen_re@move_efore.fi> wrote in message
    news:513713E9.13C8.00F6.0@move_efore.fi...
    Hi,
    We have had (maybe) similar issues with our FDE setup that FDE policy
    assigned devices tend to loose the policy and start to do disk decryption
    and suddenly get once again the policy back and start to encrypt again. This
    could be found from "ZCM agent, Full disk encryption, about, Agents status,
    Settings, on section "Emergency Recovery Information" you could see events
    'Zone Changed' what according to Novell support meant that the policy was
    "re-initialized / changed" even our policy counter have not changed = policy
    got lost in some phase.
    We are now suspecting that there is some issues with the policy service that
    plays tricks on us.
    -j-
    >>> Jim Koerner<[email protected]> 20.2.2013 19:57
    >>> >>>
    In ZCC on the devices that you are having issues with look at the Emergency
    Recovery tab and see if you have multiple listings in here that corresponds
    to the slowness. If so your devices are decrypting and then re-encrypting.
    Your mention of being asked to reboot leads me to believe that is what is
    happening to you.
    I have had a few SRs going on this one for a while and it got bumped to
    backend but no info in a month or so.
    Jim Koerner
    Server - ZCM 11.2.2 MU1 and Internal Database on Win2008R2x64
    Client - ZCM 11.2.2 MU1 on Win7SP1x64 and WinXPx32
    "marklar23" wrote in message
    news:[email protected]...
    I encrypted my organization's laptops several weeks ago and did not
    return them to users until after I could tell by device performance that
    the bulk encrypting task had completed. I have two users that are
    experiencing extremely slow performance on their systems. When the
    users are typing anything like a Word document, upon each keystroke they
    see the Windows 7 "circle" icon at the mouse cursor. This seems to come
    and go several times over the week, and every few days we are getting a
    request to resolve the issue but after restarting the behavior may not
    act up anymore.
    I found a TID suggesting to change
    HKLM\SOFTWARE\Novell-FDE\Parameters\ThrottleEncryption to a lower level
    like Idle or BelowNormal. Is there anything else that I should also
    try? Thanks!
    marklar23
    marklar23's Profile: http://forums.novell.com/member.php?userid=5123
    View this thread: http://forums.novell.com/showthread.php?t=464262

  • Extremely slow performance with ojdbc6.jar on IBM JVMs (Java 6)

    We are consistently seeing slow performance (easily demonstrable by the simplest of test cases) while using ojdbc6.jar on IBM JDKs. Pefrormance is normal when we simply opt for ojdbc14.jar under the same JDK, same java program.
    Works well
    =======
    JRockit, ojdbc6.jar
    JRockit, ojdbc14.jar
    IBM JDK, ojdbc14.jar
    A lot slower
    =======
    IBM JDK, ojdbc6.jar
    All we had to do was to write a simple JDBC access program and measure time taken around
    Connection conn = DriverManager.getConnection(jdbcURL, dbProps);
    The first 3 combinations mentioned above return comparable numbers. The 4th combination takes 3-4 times as much.
    We initially saw this during performance test of our software on WebSphere (also supported on Weblogic). Later was able to eliminate WebSphere and Weblogic as the problem areas and narrow it down to the JVM. Reproduce-able on development machines.
    We have been using Oracle/WLS since BEA used to market 'Tengah' servers. This is the worst we have seen as far as the qaulity of support staff goes. We first level support seems clueless. We filed this case and the support comes back tells us that IBM JDKs are not supported for WLS! Oh, we have been running WLS/AIX/IBM JVM combination only for 5+ years.

    A quick solution to test this would be to do the following:
    mv /dev/random /dev/random.bk
    ln /dev/urandom /dev/random
    Note: The quick solution will disappear after a reboot. You could add it to rc.local to automatically make this change, but I wouldn't recommend it.
    The following is from [http://www.usn-it.de/index.php/2009/02/20/oracle-11g-jdbc-driver-hangs-blocked-by-devrandom-entropy-pool-empty/]:
    "Oracle 11g JDBC driver hangs blocked by /dev/random – entropy pool empty
    On a headless (=without console) network server, the 11g JDBC driver used for (java) application connect may cause trouble. In my case, it refused to connect to the DB without any error, trace or log entry. It simply hung. After several hours, it connected one time, and freezed again. Remote debugging done by the development clarified that it locks after calling SeedGenerator() and SecureRandom().
    Reason: The JDBC 11g needs about 40 bytes of secure random numbers, gathered from /dev/random, to encrypt its connect string.
    But public-available “man 4 random” says:
    When read, the /dev/random device will only return random bytes within the estimated number of bits of noise in the entropy pool. /dev/random should be suitable for uses that need very high quality randomness such as one-time pad or key generation. When the entropy pool is empty, reads from /dev/random will block until additional environmental noise is gathered.
    So far so good, now the question arises: Why does this mystic “entropy pool” runs out of gas?
    The answer is as simple as unsatisfying: because too less entropy “noise” was generated by the system. You can check the “filling level” (maybe zero?) of your pool and the overall size of the pool (usually 4096) by issuing
    cat /proc/sys/kernel/random/entropy_avail
    cat /proc/sys/kernel/random/poolsize
    Hint: /dev/random will deliver one new random number as soon as the pool has reached more than 64 entropy units.
    So why does my box not generate more entropy noise?
    Because only few drivers will fill the entropy pool, first of all keyboard and mouse. Sounds very useful on a server in a datacenter, isn’t it? Some block device and network drivers seem to do so as well, and I have read from guys on the net changing their network card and driver to enjoy this “feature”! But let’s stop ranting, /dev/random is simply made for high security randomness, and if it can’t make sure that randomness is as good as possible in this deterministic world, it stops. Intelligent people have created /dev/urandom for that, like “man 4 random” clearly states:
    A read from the /dev/urandom device will not block waiting for more entropy. As a result, if there is not sufficient entropy in the entropy pool, the returned values are theoretically vulnerable to a cryptographic attack on the algorithms used by the driver. Knowledge of how to do this is not available in the current non-classified literature, but it is theoretically possible that such an attack may exist. If this is a concern in your application, use /dev/random instead.
    Now let’s get back on our JDBC problem. Oracle JDBC 11g seems to use /dev/random by default, which causes usually no trouble on clients running with console access by a user, because his/her unpredictable :) actions will keep the entropy pool well-fed. But to make it usable on a headless server with a latently empty entropy pool, you should do several things, in descending security order (without warranty):
    1. Involve an audio entroy daemon like AED to gather noise from your datacenter with an open microphone, maybe combine it with a webcam noise collector like VED. Other sources are talking about “Cryptographic Randomness from Air Turbulence in Disk devices“. :)
    2. Use the Entropy Gathering Daemon to collect weaker entropy from randomness of userspace programs.
    3. Talk your JDBC into using /dev/urandom instead:
    -Djava.security.egd=file:///dev/urandom"

  • Slow performance after installation of new OS-X

    I don't know if anyone else has been experiencing the same problem as me, but it seemed to occur after I installed the new OS-X.
    My MacBook Pro has gone stremely slow and it seems to be related to MAIL. I thought that the standard MAIL program that comes with MAC was the problem, so I installed Postbox and that seemed to work for a while (1 day or 2) and then it was the same. It's not just email programs that are slow, but all programs.
    Click and wait seconds (10, 20, 30 sec) just for a program to open. Moving between files is so slow. I feel like I'm using Windows again.
    I'm no expert, but when I look at MEMORY usage, out of 4GB I'm using 3.8GB. My Virtual Memory is 4.76GB. See screen shot below.
    I would apprecaite if anyone can help me resolve what the problem is.
    Thanks
    Richard Giuliano

    First, back up all data immediately unless you already have a current backup. If you can't back up, stop here. Do not take any of the steps below.
    Step 1
    This diagnostic procedure will query the log for messages that may indicate a system issue. It changes nothing, and therefore will not, in itself, solve your problem.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|pagin|timed? ?o' | tail | awk '/:/{$4=""; print}' | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal 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 Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key.
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Normally the command will produce no output, and the window will be empty. If the TextEdit window (not the Terminal window) has anything in it, stop here and post it — the text, please, not a screenshot. The title of the TextEdit window doesn't matter, and you don't need to post that.
    Step 2
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Reset the System Management Controller.
    Run Software Update. If there's a firmware update, install it.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    If you have a portable computer, check the cycle count of the battery. It may be due for replacement.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane. See whether there's any change.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you have a MacBook Pro with dual graphics, disable automatic graphics switching in the Energy Saverpreference pane for better performance at the cost of shorter battery life.
    Step 3
    When you notice the problem, launch the Activity Monitor 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 Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the View menu or the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for User, System, and Idle at the bottom of the window.
    Select the Memory tab. What value is shown in the bottom part of the window for Swap used?
    Next, select the Disk tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in andWrites out.)
    Step 4
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. 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. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard by pressing the key combinationcommand-C. Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Recent upgrade, slow performance, shown in Activity Monitor

    I have been experiencing gradually slowing performance in the last couple of weeks, the only thing I have done a couple months ago is upgrade to Leopard, though the timing does not indicate it's this precisely.
    It is most noticeable in Safari and PS CS3 and Bridge, the programs I mostly use.
    In Activity Monitor, when this occurs there are a couple of offending processes, and they are always hanging when the slowing phases happen. They say, in red:
    UserEventAgent (not responding)
    and/or
    coreaudioid (not responding)
    Does anyone know what this might be? How I can correct whatever this is?
    thx

    That thread indicates the cause points to various plug-ins primarily from Pro Tools. I do have PT installed, and I have now uninstalled it. We'll see if things improve. Otherwise I don't know how to isolate the cause, for example another random plug-in, so the thread was of limited value. Good start though, thanks.
    Pro Tools LE 7.x is apparently not yet compatible with Leopard, joy.

  • Slow performance disk activity

    My mac has slowed to almost a stop.
    I hear lots of disk activity and when reviewing activity monitor I see lots of disk activity.
    About 100 reads and writes a second
    Any ideas of how to find out what is happening?

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Otherwise, take the steps below when you notice the slowdown.
    Step 1
    Launch the Activity Monitor 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 Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Step 2
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. 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.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Slow performance on a iMac 27" (maybe originated by the HDD)

    Hello,
    Well, I've had my iMac for 10 months now, but have never really paid attention to its performance since it was my first Mac and I was upgrading from a quite old computer, so it obviously proved to be a far superior machine.
    However, I noticed the problem when I started to be more critical with my machine's performance (this triggered by the fact that I bought, some months after, a MacBook Air which flies beyond time and space). Curious about this, I requested a friend to do a benchmark test with Xbench resulting in his machine (another iMac 27” with comparable specs) clearly outperforming mine. Even the Air, with its slower processor and smaller RAM, has a relatively close performance.
    Additionally, I have started to notice how the computer takes a long time to start-up and, after the desktop is “layed out”, it takes a lot of time before the machine becomes “responsive” (I usually try to start Mail and Google Chrome as soon as the pointer pops in!) with the final result that I have to wait in company of the beach ball for quite some seconds (half a minute) and even after the application had started, I can still hear the HDD working it as if there would be no tomorrow! And then, it is slooooow. Funnily enough, “tougher” applications like Photoshop or Illustrator don’t seem to have as many problems, relatively speaking.
    A little bit on the background info: I have two partitions: one for Bootcamp (since I was migrating from Windows, I had some software that I wanted to use there: Matlab and Office, basically, and then some smaller Windows-only programs).
    Derived from the benchmark test, I think I might have isolated the problem to the HDD (not sure though!).
    SO THE QUESTIONS ARE:
    1. How can I verify that the slow performance is due to the HDD being defective/badly configured/etc.?
    2. Has the Windows Bootcamp Partition any effect on my machine’s performance under MacOS? (I would assume not, but you never know!). I have more than 1.3 TB free space left
    3. What kind of corrective measures should I take?
    4. Any other type of advice will be warmly welcome: I will try to do some PRAM and SMC resets but I am not counting on it. I had also ran the disk utilities and there were no permission errors (not so sure what this means, but I’ve read that it is supposed to be good news.)
    5. Any extra info you might need, lemme know!
    Greetz,
    Víctor.
    PS: Sorry for the loooong post. I tried to be thorough!

    1. How can I verify that the slow performance is due to the HDD being defective/badly configured/etc.?
    Run Apple Hardware Test: http://support.apple.com/kb/HT1509
    2. Has the Windows Bootcamp Partition any effect on my machine’s performance under MacOS? (I would assume not, but you never know!). I have more than 1.3 TB free space left
    Probably not but 1.3TB of free space left on the total HD is not enough for OS X, OS X needs a minimum of 10-15% free space! If you mean 1.3TB of Windows space I'd recommend posting that question in the Boot Camp forum.
    3. What kind of corrective measures should I take?
    If the drive is failing per the AHT then it's covered by warranty and will need to be replaced. Remember back up!!!!!!!!!!
    4. Any other type of advice will be warmly welcome: I will try to do some PRAM and SMC resets but I am not counting on it. I had also ran the disk utilities and there were no permission errors (not so sure what this means, but I’ve read that it is supposed to be good news.)
    Can't hurt, make sure you read the instructions carefully and execute the tests exactly as they are described for Intel based iMacs.
    5. Any extra info you might need, lemme know!
    If you no longer have a need for Windows on your iMac I'd recommend removing that partition using Boot Camp Assistant. That may correct your problems.
    I would also recommend checking if System Preferences - Startup Disk and see if your internal HD is highlighted as the Startup Disk.
    In addition I would recommend checking your Login Items (System Preferences - Accounts - Login Items) and delete any applications you don't need launching at Login.

Maybe you are looking for

  • Site doesn't get updated

    I've created a site with iWeb, embedded a song and clicked on the Publish button. The site was published, but I forgot to make the song loop. So I went to iWeb and checked the loop box in the Inspector (quicktime tab). I saved the change and hit Publ

  • Invoice Print MR90

    Hi All I am going to take output for invoice. I have defined output type INVC by copying ERS in NACE for application type MR. Following parameters i have maintained in different views: Access Sequence: 0003 Company Code Access to Conditions : X Partn

  • Use maximum render quality option unavailable

    CS 4.2.1, AME 4.2 I don' t see this option in AME setting (that little drop down on the right side).  Anyway to enable it? Thanks!

  • ITunes library deleted when updating, how do I get my albums back?

    I lost over £100 worth of albums and audio books when my iPhone decided it needed to update. During the update process it crashed and I had to restore the factory settings. I was able to reinstate all my photos, contacts etc, but any music etc I had

  • I found some of the hard disk space is disappearing.

    My macbook has a 120GB (actually capacity 111GB) hard drive. Under "my mac", I don't have any other seperated spaces, I add up all the file, it only comes as 89GB, so there is about 20GB missing, I would like to know how to release those hidden space