Code optimization

Can anyone please tell me how to optimize this section in order to make it run faster? It gets extreamly slow with the increase in array size.
Thanks in advance!
Attachments:
pleaseHelpSection.vi ‏30 KB

First of all, you need a FOR loop, not a while loop. Now you can use autoindexing on the two input arrays, eliminating the index array functions and the comparison operation. The "# found" is not even needed! .
Your problem is that the final array size is not known before your loop starts....
...BUT you can calculate it by calculating it in a seperate loop beforehand! NOW you can initialize the final array size and use "replace array element" as shown.
(Attached is a simple example, please verify operation with some real data. It might need a tweak or two. )
How big do your arrays get?
LabVIEW Champion . Do more with less code and in less time .
Attachments:
pleaseHelpSectionMOD.vi ‏34 KB

Similar Messages

  • Optimizing the # of threads to do code optimization

    Hi:
    Is the number of threads used in the server to perform the code optimization tuneable? Cust has a large app and server startup is VERY long (1hour+)
    vs 15 mins with -Xnoopt) due to optimization processing. Can the # threads used for this be increased via some start switch?
    thx.
    /W

    Try with -XXoptthreads, reference here:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionXX.html#wp1024195
    I believe the default is 1, try using 2 instead. More than that probably won't help much unless it's a large server (many CPUs).
    Henrik

  • Code optimization - how can I optimize ?

    Basically i_mara has 19,000 records and it loops for all recors as coded.
    The program is taking much time when i_mch1 has 300,000 records(approximately 40 minutes).
    But in case i_mch1 had 18,000 records, it is fast.
    Below is the code:
    FORM output_itab4_normal .
      FIELD-SYMBOLS : <lwa_makt_maktx> TYPE tt_makt_maktx,
                      <lwa_prfrq>      TYPE tt_prfrq,
                      <lwa_mch1>       TYPE tt_mch1,
                      <lwa_mvke>       TYPE tt_mvke.
      LOOP AT i_mara INTO wa_mara.
        READ TABLE i_mch1 WITH KEY matnr = wa_mara-matnr
                   ASSIGNING <lwa_mch1>.
        IF sy-subrc = 0.
    *-----For Recurring Inspection, go to marc table.
          READ TABLE  i_prfrq  WITH KEY matnr = wa_mara-matnr
                   ASSIGNING <lwa_prfrq>.
          IF sy-subrc = 0.
            wa_final_itab-prfrq = <lwa_prfrq>-prfrq.
            READ TABLE i_mvke WITH KEY matnr = wa_mara-matnr
                      ASSIGNING <lwa_mvke>.
            IF sy-subrc = 0.
              wa_final_itab-mvgr1 = <lwa_mvke>-mvgr1.
            ENDIF.
    *-------For material description, go to makt table.
            READ TABLE i_makt_maktx  WITH KEY matnr = wa_mara-matnr
                       ASSIGNING <lwa_makt_maktx>.
            IF sy-subrc = 0.
              wa_final_itab-maktx = <lwa_makt_maktx>-maktx.
            ENDIF.
            wa_final_itab-matnr = wa_mara-matnr.
            wa_final_itab-matkl = wa_mara-matkl.
            wa_final_itab-bismt = wa_mara-bismt.
            wa_final_itab-zzbismt = wa_mara-zzbismt.
            wa_final_itab-mtart = wa_mara-mtart.
            wa_final_itab-mhdhb = wa_mara-mhdhb.
            wa_final_itab-zzshtdaysdom = wa_mara-zzshtdaysdom.
            APPEND wa_final_itab TO i_final_itab.
            CLEAR : wa_final_itab, wa_mara.
          ENDIF.          " IF sy-subrc = 0.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " OUTPUT_ITAB4_NORMAL
    Please help me .  Thanks in advance.

    Hi,
    You can refer to the following likns:
    Code optimization
    code optimization
    Code Optimization
    or
    you can try this coding too As this avoids any looping and hence improve performance
    Create another temporary internal table  ie. i_final_temp.
    then do the following:
    referesh i_final_temp.
    append lines of i_final to i_fianl_temp.
    delete i_final_temp where v_box ne 'X'
    describe table i_final_temp lines v_counter.
    Thank You.
    Regards,
    Dhanalakshmi L

  • Labview Code Optimization

    Hi masters, nice to cyber with you agian.
    I have just come back from NI DAY and I have heard there about Labview Code
    Optimization.
    I think this is really very interesting so I would like to learn more about
    this but, where?
    Do you know any good site ?
    Maybe Greg could help?
    Thanks in advance!
    Francisco Javier Fernandez Luna
    Ingeniero Tec. Industrial en Electronica.
    Tel: 619 81 98 31
    [email protected]
    ó [email protected]
    Would you like your answer in spanish? Please, let me know.
    Si prefiere que conteste a sus preguntas en español, por favor, hagamelo
    saber.
    "Let's make things better" (PHILIPS)

    > I have just come back from NI DAY and I have heard there about Labview Code
    > Optimization.
    > I think this is really very interesting so I would like to learn more about
    > this but, where?
    > Do you know any good site ?
    > Maybe Greg could help?
    >
    I did a presentation at NIWeek that covers some common performance
    problems and has some VIs that show how different techniques compare.
    Goto to
    ftp://ftp.ni.com/support/niweek/software_track/
    and you can find the Optimization presentation, or at least the VIs
    used. I'm on a Mac; so I'm not certain what is in there.
    The Optimization presentation isn't strictly focused on code speed, and
    spends more time on things like panel appearance, but it does cover
    performance to a certain extent. It tries to cover some of the mo
    st
    common issues. The performance chapter in the User manual, used to be
    chapter 29, covers the issue pretty well too. Finally, there are some
    low level Tech Notes somewhere on the NI web site.
    If you have specific questions, post them away.
    Greg McKaskle

  • Code Optimization for handling large volume of data

    Hi All,
    We are facing a problem when executing a report... lot of time is taken to execute..... Many a times the program is terminated with a dump that "Timeout :Program terminated because of endless loop".
    the internal table which has to looped has more than 8.5 lac records...
    and for each run of loop there are two read and one select statement (unavoidable)...,,
    (We have followed almost all the optimization techniques,,,,)
    Please suggest if you have any idea as to ... what can be done in such situation....
    Thanks and Regards,
    Sushil Hadge.

    Hi Martin,
    Following is the piece of code.....
    SELECT bukrs gpart hkont waers
          FROM dfkkop
          INTO TABLE it_dfkkop
          WHERE bukrs = p_bukrs AND bldat IN so_bldat AND hkont IN so_hkont.
    SORT it_dfkkop BY gpart.
    Loop at it_dfkkop into wa_dfkkop.
    <Read statement>
    <Read Statement>
    ON CHANGE OF wa_dfkkop-gpart.
    SELECT gpart hkont waers betrw FROM dfkkop INTO TABLE it_subtot WHERE hkont = wa_dfkkop-hkont AND gpart = wa_dfkkop-gpart.
          IF it_subtot IS NOT INITIAL.
            LOOP AT it_subtot INTO wa_subtot.
              v_sum = v_sum + wa_subtot-betrw.
            ENDLOOP.
         Endif. 
    Endon.
    Endloop.
    Please suggest if this can be improved in some way....
    Thanks ,
    Sushil
    Edited by: Sushil Hadge on Jun 4, 2008 3:12 PM

  • Yet another question on code optimization

    Hello again
    Sorry for asking too many questions, but I really want to learn how to simplify my work.
    Let's say I have this ArrayList that gets initialized every time a user clicks on a new combobox item and a set of numbers are added to it. I then add this arrayList to another arraylist that is initialized outside of the actionlistener class.
    So basically every time the user clicks the inner arraylist is added to outer arraylist. But I don't want to have duplicate results if the user chooses to go back to the previous JTextAreas and delete the contents to start typing new stuff. The way i am doing this is like this:
    ArrayList<String> filler = new ArrayList<String>(); //The filler that has to be unique, so the user won't screw with the pattern
    filler.add("A*?1qkQOz]4X1QedyhA`H-6$U[I{]0n<RT.W})(J+z7o.<q[g5[y0YA2tv+c@WN");
    //For each JtextArea object add a filler so that no Nullpointerexception happens with the use of arraylist.set()method....
    for (int i = 0; i <textAreaObjs.size(); i ++){
         allValues.add(filler);
    //Replace the unique filler with the actual user input saved in innerList which is of type ArrayList.               
    allValues.set(textCounter,innerList);
    //Remove all the unnecessary fillers
    for (int outerArrayCounter = 0; outerArrayCounter < allValues.size(); outerArrayCounter ++){
         for (int innerArrayCounter = 0; innerArrayCounter < allValues.get(outerArrayCounter).size(); j++){
              if (allValues.get(outerArrayCounter).get(innerArrayCounter).equals("A*?1qkQOz]4X1QedyhA`H-6$U[I{]0n<RT.W})(J+z7o.<q[g5[y0YA2tv+c@WN")){
                   allValues.remove(outerArrayCounter);
                   outerArrayCounter--;
                   break;
    }I tried the different methods of the ArrayList like arraylist.set() and if there is a null at this location: do this, if not do something else but they returned Nullpointerexceptions...
    I tried the isEmpty method too but that only checks to see if the whole list is empty and not specific parts of the array....
    Is there a better, faster, and simpler way of doing this?
    Thanks for the help.

    I thought this might help... an example of a Sorted[Descending]Map of Lists... I didn't tackle the "frequency aspect" I just generated a random "key" for the map... and a random string to stuff in the Word...
    I presume your Word is {String word, int lineNumber, int startIndex} from the source-document... and now you need to query your frequency table for "the most common word" or maybe "the top five words".
    You can fill in the blanks.
    ... and BTW... If I where doing this for real I'd be awfully tempted to extend TreeMap into a "generic" DescendingTreeMap, which I would stick somewhere in my common utils package, from whence it could be reused in future by myself and others.
    If you want the code for krc.utilz.RandomString just ask.
    package forums;
    import java.util.Collections;
    import java.util.Collection;
    import java.util.SortedMap;
    import java.util.TreeMap;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.util.Comparator;
    import java.util.Random;
    import krc.utilz.RandomString;
    public class SortedDescendingMap
      private static final RandomString RANDOM_STRING = new RandomString();
      private static final Random RANDOM = new Random();
      private class DescendingIntegerComparator implements Comparator<Integer>
        @Override
        public int compare(Integer a, Integer b) {
          return -1 * a.compareTo(b);
        @Override
        public boolean equals(Object o) {
          return this == o; // yes I do mean reference-equals.
      private class Word
        private final String word;
        public Word() {
          this.word = RANDOM_STRING.nextString(5);
        @Override
        public String toString() {
          return this.word;
      private final SortedMap <Integer,List<Word>> freqTable;
      private SortedDescendingMap() {
        freqTable = new TreeMap<Integer,List<Word>>(new DescendingIntegerComparator());
      private void populate() {
        for (int i=0; i<50; i++) {
          List<Word> list = new ArrayList<Word>();
          for (int j=1; j<=5; j++) {
            list.add(new Word());
          freqTable.put(RANDOM.nextInt(5), list);
      private void print() {
        for ( Map.Entry<Integer,List<Word>> entry : freqTable.entrySet() ) {
          System.out.println(entry.getKey()+": "+entry.getValue());
      public static void main(String[] args) {
        try {
          SortedDescendingMap map = new SortedDescendingMap();
          map.populate();
          map.print();
        } catch (Exception e) {
          e.printStackTrace();
    }This doesn't mean that I like you, and you're still a Putz! ;-)
    Cheers. Keith.

  • Help in code optimization?

    Hi there.
    Almost embarrassing question, but it will help me with make
    my code MUCH more efficient.
    I am a newbie, but writing a pretty complex piece in which
    the code repeats itself many times with a minor change.
    Basically at this part I am telling many different Movie
    Clips to pop up in different X and Y's.
    I know my code (see example attached) is the long way to do
    it.
    The 2 paragraphs below are repeating 12(!) more times in my
    code and they are exactly the same (but the X and Y's)
    I am hoping to find a way to concise the 14 blocks of code (2
    here on the example) to one block with +1, and for the different X
    and Y's add an if statement for each different situation.
    but i am heaving trouble executing it.
    Any thought?
    Will appreciate any help!
    Thanks

    Thanks again for replying.
    The last piece of code is doing a great job in shortening the
    code.
    But I still have issues with the earlier help, although it
    makes sense I have been spending the past two days in trying to
    solve it…
    The older 12 blocks version works great with the collision
    detection solution. So I am trying to get the amazing result of
    shortening them both, but I am out of luck.
    I believe it might have to do with the vars I am using of the
    makeTile…
    hoping you are not getting tired of reading my posts..
    I really don’t know what to do.
    here is some code to make it more clear.
    again any help will be great, I am loosing it :-(

  • Code optimization - Urgent

    Hi All,
    I have called the function module - 'CS_BOM_EXPL_MAT_V2' with respective parameters. Following the function call, i have written these lines, to display each material & the corresponding field from MARC. There is no syntax error, but the execution of this query takes a very long time, i had to terminate the execution.
    May i know what could be the reason for this?
    Code
    IF SY-SUBRC EQ 0.
      LOOP AT IL_STBX INTO HL_STBX.
      WL_MATNR = HL_STBX-IDNRK.
        SELECT SINGLE WEBAZ FROM MARC INTO WL_WEBAZ
          WHERE MATNR EQ HL_STBX-IDNRK.
      ENDLOOP.
    Note: I have declared the DATA as mentioned below.
    DATA :
         IL_STBX        TYPE TABLE OF STPOX,
         HL_STBX      TYPE STPOX.
    REFRESH :
         IL_STBX[].
    CLEAR
         HL_STBX.
    Await your inputs.
    Vivek

    Hi,
    I believe i have made a fundamental error & that is the reason the program is going on a infinite loop. I just checked with the debugger, the program enters the 'Record Processing' section, reads the function module explodes the BOM, reads info from MARC table, upto this point it is ok. But what is happening is, the execution of the program does not stop after reading the BOM once, it keeps re-reading the BOM & that is why it is on an infinite loop.
    Can you let me know how i can limit the execution of this program to read the BOM only once.
    Hope i was able to put across the problem. Await your inputs.
    Vivek

  • Code Optimizations from Compiler?

    I have 2 questions:
    1) When Flex compiles a SWF/SWC, does it remove all the whitespace to make the files smaller?  Just wondering because I'm looking at some javascript projects and many of them have both a "myFile.js" and "myFile.min.js", where "min.js" is the file with all the whitespace removed, making the file much smaller.
    2) Does [Bindable] create a conditionally dispatched event (it's not dispatched if there's no event listener), or does the generated code say "dispatch event whenever property changes, regardless"?

    Hi,
    1) When Flex compiles a SWF/SWC, does it remove all the whitespace to make the files smaller?
    SWF does not contain source code. Flex (or Flash) compiles actionscript to bytecode. Then Flash player executes it.

  • Need Help in code optimization

    Hi Experts,
    Its a performance issue. I used simple program to find the combinations based on the input.
    For Example if input is : 123,
    then the possible combinations are,
    23     - without 1.
    13     - without 2.
    12     - without 3.     
    123     
    1
    2
    3
    Like wise i need to find the combination for each input. I developped the code and its working fine upto
    13 digit input[1234567890123].
    But for then 13 digit it took long time to find the combination. Im in the need of reduce the of execution.
    Please find the code below. The Do.. End do is used or input. If Do 3 times means the input is 123. if do 15 times means the input is [123456789012345].
    DATA : lv_input_str TYPE string VALUE '1111'.
    TYPES : BEGIN OF ls_ret_tab,
             docno     TYPE vbeln,
             price     TYPE netpr,
            END OF ls_ret_tab.
    TYPES : BEGIN OF it_tab,
             index     TYPE sy-index,
             docno     TYPE vbeln,
             price     TYPE netpr,
            END OF it_tab.
    DATA : lt_ret_tab TYPE TABLE OF ls_ret_tab WITH HEADER LINE,
           it_tab     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE.
    DATA  : BEGIN OF gt_main OCCURS 0,
             index TYPE sy-index,
             level TYPE i,
             table LIKE TABLE OF it_tab,
             total TYPE netpr,
             diffe TYPE netpr,
             END OF gt_main.
    DATA : t1 TYPE i,
           t2 TYPE i,
           t3 TYPE i.
    START-OF-SELECTION.
      DO 13 TIMES.
        it_tab-index = sy-index.
        APPEND it_tab.
      ENDDO.
      CLEAR t1.
      GET RUN TIME FIELD t1.
      PERFORM get_possible_values.
      gt_main-index = 0.
      gt_main-table = it_tab[].
      APPEND gt_main.
      SORT gt_main BY table.
    SORT gt_main BY total DESCENDING.
      DELETE ADJACENT DUPLICATES FROM gt_main COMPARING table.
      GET RUN TIME FIELD t2.
    END-OF-SELECTION.
      DATA : lines TYPE i.
      t3 = t2 - t1.
      WRITE :/ 'time', t3.
      LOOP AT gt_main.
        WRITE :/5 gt_main-index, 20 gt_main-total.
        LOOP AT gt_main-table INTO it_tab.
         WRITE :/15 it_tab-docno.
          WRITE :/15 it_tab-index.
        ENDLOOP.
      ENDLOOP.
    FORM get_possible_values.
      DATA : l_lines TYPE i.
      DESCRIBE TABLE it_tab LINES l_lines.
      IF l_lines <= 1.
        "Append Return Table.
        EXIT.
      ELSE.
        PERFORM get_all_values TABLES it_tab.
      ENDIF.
    ENDFORM.                    " GET_POSSIBLE_VALUES
    FORM get_all_values  TABLES it_tab STRUCTURE it_tab.
      DATA : lv_pos TYPE i,
             lv_pos1 TYPE i.
      DATA : it_com     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE,
             lv_input_str_index TYPE i,
             it_main_temp LIKE TABLE OF gt_main WITH HEADER LINE,
             lt_tab     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE..
      CLEAR : lv_input_str_index.
      STATICS : l_level TYPE i.
      DATA : l_lines TYPE i.
      DESCRIBE TABLE it_tab LINES l_lines.
      DO l_lines TIMES.
        lv_input_str_index = lv_input_str_index + 1.
        REFRESH it_com.
        LOOP AT it_tab.
          IF sy-tabix EQ lv_input_str_index.
            CONTINUE.
          ENDIF.
          APPEND it_tab TO it_com.
          it_main_temp-total = it_main_temp-total + it_tab-price.
        ENDLOOP.
        READ TABLE gt_main WITH KEY table = it_com[].
        IF sy-subrc NE 0.
          it_main_temp-index = lv_input_str_index.
          it_main_temp-table = it_com[].
          APPEND it_main_temp.
        ENDIF.
        CLEAR : it_main_temp-total.
      ENDDO.
      SORT it_main_temp BY table.
      DELETE ADJACENT DUPLICATES FROM it_main_temp[] COMPARING table.
      APPEND LINES OF it_main_temp[] TO gt_main.
      LOOP AT it_main_temp.
        DESCRIBE TABLE it_main_temp-table[] LINES l_lines.
        IF l_lines <= 1.
          CONTINUE.
        ELSE.
          PERFORM get_all_values TABLES it_main_temp-table[].
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " GET_ALL_VALUES
    Thanks,
    Helps will be appreciated.
    Edited by: Nandini on Mar 1, 2010 11:28 AM

    DATA : lv_input_str TYPE string VALUE '1111'.
    TYPES : BEGIN OF ls_ret_tab,
             docno     TYPE vbeln,
             price     TYPE netpr,
            END OF ls_ret_tab.
    TYPES : BEGIN OF it_tab,
             index     TYPE sy-index,
             docno     TYPE vbeln,
             price     TYPE netpr,
            END OF it_tab.
    DATA : lt_ret_tab TYPE TABLE OF ls_ret_tab WITH HEADER LINE,
           it_tab     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE.
    DATA  : BEGIN OF gt_main OCCURS 0,
             index TYPE sy-index,
             level TYPE i,
             table LIKE TABLE OF it_tab,
             total TYPE netpr,
             diffe TYPE netpr,
             END OF gt_main.
    START-OF-SELECTION.
      DO 13 TIMES.
        it_tab-index = sy-index.
        APPEND it_tab.
      ENDDO.
    PERFORM get_possible_values.
    gt_main-index = 0.
      gt_main-table = it_tab[].
      APPEND gt_main.
    SORT gt_main BY table.
    *  SORT gt_main BY total DESCENDING.
      DELETE ADJACENT DUPLICATES FROM gt_main COMPARING table.
      GET RUN TIME FIELD t2.
    END-OF-SELECTION.
    DATA : lines TYPE i.
    LOOP AT gt_main.
        WRITE :/5 gt_main-index, 20 gt_main-total.
        LOOP AT gt_main-table INTO it_tab.
    *      WRITE :/15 it_tab-docno.
          WRITE :/15 it_tab-index.
        ENDLOOP.
      ENDLOOP.
    FORM get_possible_values.
      DATA : l_lines TYPE i.
      DESCRIBE TABLE it_tab LINES l_lines.
    IF l_lines <= 1.
        "Append Return Table.
        EXIT.
      ELSE.
        PERFORM get_all_values TABLES it_tab.
      ENDIF.
    ENDFORM.                    " GET_POSSIBLE_VALUES
    FORM get_all_values  TABLES it_tab STRUCTURE it_tab.
    DATA : lv_pos TYPE i,
             lv_pos1 TYPE i.
    DATA : it_com     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE,
             lv_input_str_index TYPE i,
             it_main_temp LIKE TABLE OF gt_main WITH HEADER LINE,
             lt_tab     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE..
      CLEAR : lv_input_str_index.
    STATICS : l_level TYPE i.
      DATA : l_lines TYPE i.
      DESCRIBE TABLE it_tab LINES l_lines.
    DO l_lines TIMES.
        lv_input_str_index = lv_input_str_index + 1.
        REFRESH it_com.
    LOOP AT it_tab.
          IF sy-tabix EQ lv_input_str_index.
            CONTINUE.
          ENDIF.
    Edited by: Nandini on Mar 1, 2010 11:56 AM

  • I see core dump in  user code. Has this type of core dumps noticed on 1.4?

    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 2 days, 06:02:29 on Tue Nov 24 16:53:32 2009
    * If you see this dump, please go to *
    * http://edocs.bea.com/jrockit/go2troubleshooting.html *
    * for troubleshooting information. *
    Additional information is available in:
    /opt/bea/weblogic81/common/nodemanager/jrockit.1979.dump
    /opt/bea/weblogic81/common/nodemanager/core or core.1979 (max size 104857600kb)
    Error Message: Illegal memory access. [54]
    Signal info : si_signo=11, si_code=2 si_addr=(nil)
    Version : BEA JRockit(R) R27.6.0-50_o-100423-1.4.2_17-20080626-2104-linux-ia32
    GC Strategy : Mode: pausetime. Currently using strategy: genconcon
    GC Status : OC is not running. Last finished OC was OC#191.
    : YC is not running. Last finished YC was YC#1989.
    OC History : Strategy genconcon was used for OC#88 to OC#94.
    : Strategy genconpar was used for OC#95.
    : Strategy genconcon was used for OC#96.
    : Strategy genconpar was used for OC#97 to OC#100.
    : Strategy genconcon was used for OC#101 to OC#191.
    YC History : Ran 6 YCs before OC#187.
    : Ran 7 YCs before OC#188.
    : Ran 6 YCs before OC#189.
    : Ran 9 YCs before OC#190.
    : Ran 6 YCs before OC#191.
    : Ran 2 YCs since last OC.
    YC Promotion : Last YC successfully promoted all objects
    Heap Holes : 1 hole(s), at 0x42f00000 - 0x43100000
    Heap : 0x8100000 - 0x88300000 (Size: 2047 MB)
    Compaction : 0x6c0fff98 - 0x700fff98 (Current compaction type: external)
    NurseryList : 0x71976ac8 - 0x81641db8
    KeepArea : 0x798d6060 - 0x7d7b3f98
    NurseryMarker: [ 0x798d6060,  0x7d7b3f98 ]
    CompRefs : References are 32-bit.
    CPU : Intel Core 2 SSE SSE2 SSE3 SSSE3 Core EM64T
    Number CPUs : 4
    Tot Phys Mem : 8479608832 (8086 MB)
    OS version : CentOS release 4.4 (Final)
    Linux version 2.6.17.14.smp (root@ct44-32) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Mon Aug 13 14:15:0
    7 EDT 2007 (i686)
    Thread System: NPTL
    Java locking : Normal
    State : JVM is running
    Command Line : -Xms2g -Xmx2g -Xns:250m -Xgcprio:pausetime -Djava.awt.headless=true -Duser.timezone=GMT -Xmanagement -D
    jrockit.managementserver.port=7091 -Dweblogic.management.server=*.*.*.* -Dweblogic.RootDirectory=/o
    pt/bea/weblogic81/common/nodemanager -Djava.security.policy==/opt/bea/weblogic81/server/lib/weblogic.policy -Dweblogic
    .Name=jsj3wl008-s1 -Dweblogic.system.BootIdentityFile=/opt/bea/weblogic81/common/nodemanager/NodeManagerLogs/NodeManag
    erInternal/bootFile_jsj3_jsj3wl008-s1 -Dweblogic.system.NodeManagerBoot=true -Dweblogic.system.NodeManagerAddress=null
    ::5555 -Dweblogic.nodemanager.ServerStartTime=1258887063334 -Dweblogic.security.SSL.ignoreHostnameVerification=true -D
    weblogic.ReverseDNSAllowed=false -Dsun.java.launcher=SUN_STANDARD weblogic.Server
    java.home : /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre
    j.class.path : /opt/bea/weblogic81/server/lib/CR370311_810sp6.jar:/opt/bea/jrockit/lib/tools.jar:/opt/bea/weblogic81/s
    erver/lib/weblogic_sp.jar:/opt/bea/weblogic81/server/lib/weblogic.jar:/opt/bea/weblogic81/server/lib/Oranxo-3.00.01.ja
    r:/opt/bea/weblogic81/server/lib/CR370311_810sp6.jar:/opt/bea/jrockit/lib/tools.jar:/opt/bea/weblogic81/server/lib/web
    logic_sp.jar:/opt/bea/weblogic81/server/lib/weblogic.jar:/opt/bea/weblogic81/server/lib/Oranxo-3.00.01.jar::/opt/bea/w
    eblogic81/common/eval/pointbase/lib/pbserver44.jar:/opt/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/opt/b
    ea/jrockit/jre/lib/rt.jar:/opt/bea/weblogic81/server/lib/webservices.jar::/opt/bea
    j.lib.path : /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/jrockit:/opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/
    i386:/opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/../lib/i386::/home/oracle/OraHome1/lib:/opt/bea/weblogic81/server/lib/li
    nux/i686:/opt/bea/weblogic81/server/lib/linux/i686/oci920_8:/opt/bea/weblogic81/server/lib/linux/i686:/opt/bea/weblogi
    c81/server/lib/linux/i686/oci920_8
    JAVA_HOME : /opt/bea/jrockit
    JAVAOPTIONS: <not set>
    LD_LIBRARY_PATH: /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/jrockit:/opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/li
    b/i386:/opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/../lib/i386::/home/oracle/OraHome1/lib:/opt/bea/weblogic81/server/lib/
    linux/i686:/opt/bea/weblogic81/server/lib/linux/i686/oci920_8:/opt/bea/weblogic81/server/lib/linux/i686:/opt/bea/weblo
    gic81/server/lib/linux/i686/oci920_8
    LD_ASSUME_KERNEL: <not set>
    C Heap : Good; no memory allocations have failed
    Method : com/*****/webapp/common/util/security/Encryption.decrypt(Ljava/lang/String;)Ljava/lang/String;
    StackOverFlow: 0 StackOverFlowErrors have occured
    OutOfMemory : 0 OutOfMemoryErrors have occured
    Registers (from ThreadContext: 0xb65ab880 / OS context: 0xb65ab97c):
    eax = b634da60 ecx = b6345ff8 edx = 00000000 ebx = b634cc00
    esp = b65abc70 ebp = b65abc78 esi = b65abdf0 edi = b6341210
    es = 0000007b cs = 00000073 ss = 0000007b ds = 0000007b
    fs = 00000000 gs = 00000033
    eip = b7e3bc80 eflags = 00010202
    Stack:
    (* marks the word pointed to by the stack pointer)
    b65abc70: b6341210* 00000007 b65abe98 b7d4819f b6341210 00000000
    b65abc88: b65abdf0 b65abcec 00000000 00000034 b65abcb8 b7db488c
    b65abca0: b65abcb8 b7dd36bd 00000003 b610c5b0 b634cc90 b634bf98
    b65abcb8: b7c587c0 10000022 00000001 b6345720 b634acb0 b634c0b8
    Code:
    (* marks the word pointed to by the instruction pointer)
    b7e3bc50: fd3ce908 9090ffff 90909090 90909090 0007b855 e5890000
    b7e3bc68: 8908ec83 8b042444 04890845 7916e824 558bfff9 0c488b0c
    b7e3bc80: e2c1128b* 8bca0102 90c3c902 0026748d 0007b855 e5890000
    b7e3bc98: 8908ec83 8b042444 04890845 78e6e824 558bfff9 10488b0c
    Loaded modules:
    (* denotes the module causing the exception)
    08048000-08056313 /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/bin/java
    ffffe000-ffffe62b /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/bin/java
    430d2000-430df65b /lib/tls/libpthread.so.0
    43055000-43075c2f /lib/tls/libm.so.6
    4308a000-4308b967 /lib/libdl.so.2
    42f28000-4304c498 /lib/tls/libc.so.6
    42f0a000-42f1edb3 /lib/ld-linux.so.2
    b7cf7000-b7f4e367 */opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/jrockit/libjvm.so
    430a2000-430a9a76 /lib/tls/librt.so.1
    b7ce6000-b7ceea37 /lib/libnss_files.so.2
    b7c0b000-b7c17aa5 /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libverify.so
    b7bed000-b7c088bf /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libjava.so
    b7bd7000-b7be8a6f /lib/libnsl.so.1
    b6b9f000-b6ba4dae /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/native_threads/libhpi.so
    b661f000-b662c46e /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libzip.so
    b62e0000-b62ef32f /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libnet.so
    b559b000-b559c705 /opt/bea/weblogic81/server/lib/linux/i686/libweblogicunix1.so
    b7fca000-b7fcbeff /opt/bea/weblogic81/server/lib/linux/i686/libmuxer.so
    b7cf1000-b7cf5789 /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libnio.so
    b3cce000-b3cd7357 /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libjmapi.so
    b65da000-b65dcf41 /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libioser12.so
    b6106000-b6109313 /lib/libnss_dns.so.2
    b2d51000-b2d5ffef /lib/libresolv.so.2
    abe36000-abe6c4d7 /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libcmm.so
    ab8bf000-ab8e5d6f /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libjpeg.so
    a9595000-a9820a9c /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libawt.so
    a9f76000-a9fc8017 /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libmlib_image.so
    b6ba7000-b6bad347 /usr/X11R6/lib/libXp.so.6
    a9545000-a95900cb /usr/X11R6/lib/libXt.so.6
    b6631000-b663d13f /usr/X11R6/lib/libXext.so.6
    b65d5000-b65d8c8f /usr/X11R6/lib/libXtst.so.6
    a9466000-a95408a7 /usr/X11R6/lib/libX11.so.6
    b6338000-b633f023 /usr/X11R6/lib/libSM.so.6
    b47e0000-b47f4253 /usr/X11R6/lib/libICE.so.6
    a1a5d000-a1ae885c /opt/bea/jrockit-R27.6.0-jdk1.4.2_17/jre/lib/i386/libfontmanager.so
    "(Code Optimization Thread 1)" id=4 idx=0x24 tid=1998 lastJavaFrame=0xfffffffc
    Stack 0: start=0xb658b000, end=0xb65ad000, guards=0xb6590000 (ok), forbidden=0xb658e000
    Thread Stack Trace:
    at irBBGetLoopHeader+32()@0xb7e3bc80
    at optSSAStringAppend+527()@0xb7d4819f
    at optmanOptimizeMIR+77()@0xb7e8bded
    at generateMethodWithStage+94()@0xb7d6da1e
    at cmgrGenerateMethodFromPhase+215()@0xb7d6e8f7
    at cmgrGenerateNormalMethod+87()@0xb7d6e967
    at cmgrGenerateCode+383()@0xb7d6eb1f
    at generate_code2+937()@0xb7e567b9
    at codegenThread+745()@0xb7e57749
    at tsiCallStartFunction+30()@0xb7e2e0ee
    at tsiThreadStub+140()@0xb7e2f28c
    at ptiThreadStub+18()@0xb7e9d5d2
    at start_thread+129()@0x430d7371
    at clone+94()@0x42fefffe
    -- Java stack --
    Extended, platform specific info:
    libc release: 2.3.4-stable
    Elf headers:
    libc ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 42f3ced0 PHOFF: 00000034 SHOFF: 00173a9
    4 EF: 0x0 HS: 52 PS: 32 PHN; 10 SS: 40 SHN: 67 STIDX: 66
    libpthread ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 430d6850 PHOFF: 00000034 SHOFF: 00019f9
    8 EF: 0x0 HS: 52 PS: 32 PHN; 9 SS: 40 SHN: 39 STIDX: 38
    libjvm ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 0004bf70 PHOFF: 00000034 SHOFF: 012c54a
    4 EF: 0x0 HS: 52 PS: 32 PHN; 4 SS: 40 SHN: 29 STIDX: 26
    * If you see this dump, please go to *
    * http://edocs.bea.com/jrockit/go2troubleshooting.html *
    * for troubleshooting information. *
    ===== END DUMP ===============================================================

    Looks like JRockit crashes when generating code for (optimizing) the method com/*****/webapp/common/util/security/Encryption.decrypt(Ljava/lang/String;)Ljava/lang/String;
    You can verify this hypothesis by running with -Xnoopt or disabling optimizations for that specific method with an optfile, see the diagnostics documentation for more detail:
    http://download.oracle.com/docs/cd/E13188_01/jrockit/geninfo/diagnos/crash.html#wp1010427
    I suggest you update to the latest JRockit maintenance release (R27.6.5 iirc). If that doesn't help resolve this issue or you need further analysis, please open a ticket with Oracle Support.
    Henrik

  • Measuring Performance Of CSS Optimizations?

    Hi,
    I'm relatively new to CSS and standards-based coding. I've been trying like crazy to get all my sites compliant and I am beginning now to wonder about optimizations for speed of execution. Things like...
    1. Making class names shorter
    2. Removing obsolete classes from style sheets
    ...and so on.
    Are there some commonly used metrics for decided whether or not this sort of thing is 'worth it'. ie. how -much- it improves performance to remove an obsolete class that is, say 100 chars long. I know I'm being vague, but I maintain many sites---some have very little traffic and some a lot (well--to me it's a lot). This sort of clean up is very time consuming so I'm just trying to figure out what will give the most bang for buck. It's hard for me to judge because of all the variables: different ISPs, # of users, size of site, size of stylesheets, size of pages, etc.
    Any general thoughts?
    TIA,
    ---JC

    Thanks Nancy.
    A couple of things, though...
    1. Web Page Analyzer -
    http://www.websiteoptimization.com/services/analyze/
    ---Can't get it to 'work'. Always replies with 'no data returned' for my web site http://jchmusic.com/discography.htm
    2. CSS code optimizer. * Note: do a site test before you replace old code  with optimized code.*
    http://www.cssportal.com/generators/optimize.htm*
    ---It replies with a list of optimisations, which is great, but the  Copy To Clipboard doesn't work for me. And the Output to File option  doesn't do anything either. Is there a way to 'see' the complete results  all in one go?
    3. I knew about Dust Me (thanks to you!) but it sure seems -slow-. I was hoping for other options (like the above) to make the process a bit faster.
    TIA,
    ---JC

  • AppleScript speed difference between 10.4 & 10.5

    This post is related to a question I posed in March 2009 (https://discussions.apple.com/message/9226100) regarding the speed difference between AppleScript text handling in OS X 10.5 compared with 10.4.11.
    I have recently written a script to search through a text file which is an xml file exported from WorkGroup Manager. The file, which is approximately 1.8 MB, contains all the user names on the school server (just over 1720 of them), their settings and any other information we have added. After adapting some script ideas (using text delimiters and offsets) which I found on the internet to assist with counting the number of users and searching through the information of each one, one at a time, I have a script which works far in excess of my expectations in terms of speed when run under OS X 10.4, but runs slower than molasses in winter under 10.5.
    The script counts the number of accounts, extracts each user's log-in name and also their actual name (which we have entered under a 'general info' or 'comments' field - I can't remember exactly where, but it is stored in the file), makes up a complete list of all account names (with the actual name, if present) and also makes up a subset of this information into a separate list which contains only the log-in names of those whose actual name has not yet been recorded on the server, then saves both lists to separate text files.
    My original attempts, using some rather clumsy text searching and comparison techniques, took about 1-2 minutes to go through the whole procedure. After some internet searching, head-scratching and a bit more more work, the finished script, when run on my G5 under OS X 10.4.11, takes less than 3 seconds to do all I have described above, including the writing to text files. To say I was pleased would be an understatement!
    Because the school/work environment, where the script would be run, is all OS X 10.5 or higher, I thought I should test it out under at least OS X 10.5. The script was developed on my DP 2.5GHz G5 with 8GB RAM running OS X 10.4.11. Using a fresh, clean installation of 10.5 I ran the script and was extremely disappointed. After letting it run for more than 20 minutes and still not finishing, I force quit AppleScript and reduced the number of accounts in the file. 40 accounts took 3 seconds, 60 accounts took 6 seconds, 80 took 11 seconds, 100 took 19 seconds and 120 took 27 seconds. I eventually let the script run right through - total time taken to process 1720 users was 65 minutes, compared to 3 seconds under 10.4.11!
    Given that it was tested on the same Mac, with the same amount of RAM, using the same script and the same original text file, the only variable left (that I can think of) is the change of OS version - 10.4.11 vs 10.5.
    As was pointed out to me in my previous post, AppleScript in OS X 10.5 handles all text as Unicode and has a greater overhead in processing time as a result. I have implemented the various bits of advice offered by respondents to my original post and changed the way I handled lists, etc. Obviously, if the script works so speedily under 10.4.11, I must have done something right in terms of code optimization/efficiency. It's when that exact same script is run under OS X 10.5 that it slows down incredibly. I even tried it on a 2.66GHz Intel Core 2 Duo iMac running 10.5.8 - it still took 40 minutes and Activity Monitor showed CPU usage by Script Editor constantly above 80% (often well above 90%). Saving the script as an application made no difference in the time taken.
    Does anybody have any knowledge about what makes AppleScript Unicode-only text handling so slow? In this case, it is 1300 times slower! Is there any way of coercing/restricting the text handling/parsing to ASCII? If I really have to, I will set up a humble eMac at school with 10.4 on it just to handle large text files quickly with AppleScript, but I would prefer to be able to do it on the normal work Macs which have 10.5 or later on them. As mentioned, under 10.4.11 the script processes the 1.8MB text file with 1720 users and writes results to two files - all within 3 seconds, so I'm not really looking for coding suggestions unless they are directly related to what has changed in AppleScript under OS X 10.5. Without sounding too smug, the script works properly and speedily (at least in 10.4). I really would like to learn about the changes in AppleScript in OS X 10.5 and how to cope with or work around those changes.

    Hi,
    text 3 thru 14 in largeText
    character 3 thru 14 in largeText
    text 3  in largeText
    character 3  in largeText
    These lines will be slow on Leopard
    Getting some text in a variable that contains more than 60000 characters will be slower on Leopard,
    but I don't know why it's slower
    Here a test script.
    script o
        property t_text : ""
    end script
    set a to "abcdefghij"
    set tResult to ""
    repeat with i from 1 to 3
        set o's t_text to a
        repeat (item i of {17, 15, 14}) times
            set o's t_text to o's t_text & o's t_text -- add  characters in the variable
        end repeat
        set StartTime to current date
        -- test
        repeat 20 times
            set b to text 3 thru 14 in o's t_text -- get a text in the variable
        end repeat
        -- end test
        set EndTime to current date
        set TimeTaken to EndTime - StartTime
        set tResult to tResult & " Getting text in the variable which contains " & length of o's t_text & ", (20 times) = " & TimeTaken & " seconds." & return
    end repeat
    tResult
    Here the result on my old G5, 2 x 1.8 GHZ
    Getting text in the variable which contains 1310720 characters, (20 times)  = 50 seconds.
    Getting text in the variable which contains   327680 characters, (20 times)  = 12 seconds.
    Getting text in the variable which contains   163840 characters, (20 times)  =   6 seconds.
    The result on the same machine on Tiger is always less of one second.
    Also, I try with 20 millions characters on Tiger, the result : getting text in the variable which contains 20971520 characters, (20 times)  = 0 seconds.
    The solution ( text item in a list)
    Here the script
    script o
        property my_List : {}
    end script
    set OldDelims to text item delimiters
    set RecordDelimiter to "::::::::::::::"
    set LengthOfRecordDelimiter to length of RecordDelimiter
    set o's my_List to findAll(read (choose file), RecordDelimiter)
    on findAll(str, findString)
        set Oldtid to text item delimiters
        try
            set text item delimiters to findString
            if str does not contain findString then return {"Nothing found"}
            set t to str's text items
            set text item delimiters to Oldtid
            return t
        on error eMsg number eNum
            set text item delimiters to Oldtid
            error "Can't findAll: " & eMsg number eNum
        end try
    end findAll
    set NumberOfrecords to (count o's my_List)
    display dialog "There are " & NumberOfrecords & " accounts."
    set StartTime to current date
    set text item delimiters to ":"
    set FullUserList to {}
    set ListOfUnnamedUsers to {}
    -- first user needs to be done separately as it is not preceded by RecordDelimiter
    set EndOfHeader to "Standard:URL"
    set LengthOfEndOfHeader to length of EndOfHeader
    set EndOfHeaderOffset to the offset of EndOfHeader in (item 1 of o's my_List)
    set OffsetToApply to EndOfHeaderOffset
    set TextBeingChecked to text (OffsetToApply + LengthOfEndOfHeader + 1) thru -1 of (item 1 of o's my_List)
    tell TextBeingChecked to set {UserName, NameForInfo} to {text item 1, text item 7}
    if NameForInfo = "" then set end of ListOfUnnamedUsers to UserName & return
    set end of FullUserList to (UserName & tab & NameForInfo & return)
    -- now do all the others
    repeat with CounterG from 2 to (NumberOfrecords - 1)
        set TextBeingChecked to item CounterG of o's my_List
        tell TextBeingChecked to set {UserName, NameForInfo} to {text item 1, text item 7}
        if NameForInfo = "" then set end of ListOfUnnamedUsers to UserName & return
        set end of FullUserList to (UserName & tab & NameForInfo & return)
    end repeat
    set o's my_List to {}
    set text item delimiters to OldDelims
    -- write results to file
    -- 1). full user list
    set TargetFile1 to (path to desktop folder as string) & "FullUserList1.txt"
    try
        open for access file TargetFile1 with write permission
    on error
        close access file TargetFile1
        open for access file TargetFile1 with write permission
    end try
    set EndTime to current date
    beep
    set InfoToBeWrittenToFile to FullUserList as text
    write InfoToBeWrittenToFile to file TargetFile1
    close access file TargetFile1
    -- 2). list of users without NameForInfo
    set TargetFile2 to (path to desktop folder as string) & "UnnamedUsersList1.txt"
    try
        open for access file TargetFile2 with write permission
    on error
        close access file TargetFile2
        open for access file TargetFile2 with write permission
    end try
    set InfoToBeWrittenToFile to ListOfUnnamedUsers as text
    write InfoToBeWrittenToFile to file TargetFile2
    close access file TargetFile2
    beep 3
    set TimeTaken to EndTime - StartTime
    set TimePerAccount to TimeTaken / NumberOfrecords
    display dialog (NumberOfrecords & " accounts took " & TimeTaken & " seconds." & return & return & "That equals " & TimePerAccount & " seconds per account.") as string

  • WebLogic 10.3.2 console hangs when attempting configuration changes

    Hi,
    I am running:
    WebLogic 10.3.2
    Windows XP x86 64bit
    JRockit JVM 1.6.0
    I have done a fresh install (twice) and whenever I start the main admin console and try to create a new server or deployment it just sits there and hangs. There are no other servers setup just the defualt AdminServer in development mode. The only other variable is that I have versions 9.2 & 10.3.0 of WL installed - in seperate home locations however so they should not conflict.
    Here's a thread dump........
    ============
    1.
    ============
    "Main Thread" waiting for lock weblogic.t3.srvr.T3Srvr@1265e12 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:849)
         weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:465)
         weblogic.Server.main(Server.java:67)
    "(Signal Handler)" RUNNABLE
    null
    "(OC Main Thread)" RUNNABLE
    null
    "(Code Generation Thread 1)" RUNNABLE
    null
    "(Code Optimization Thread 1)" RUNNABLE
    null
    "(VM Periodic Task)" RUNNABLE
    null
    "(Attach Listener)" RUNNABLE
    null
    "Finalizer" RUNNABLE
         jrockit.memory.Finalizer.waitForFinalizees(Native Method)
         jrockit.memory.Finalizer.access$700(Finalizer.java:12)
         jrockit.memory.Finalizer$4.run(Finalizer.java:189)
         java.lang.Thread.run(Thread.java:619)
    "Reference Handler" RUNNABLE
         java.lang.ref.Reference.waitForActivatedQueue(Native Method)
         java.lang.ref.Reference.access$100(Reference.java:11)
         java.lang.ref.Reference$ReferenceHandler.run(Reference.java:82)
    "(Sensor Event Thread)" RUNNABLE
    null
    "VM JFR Buffer Thread" RUNNABLE native
    null
    "Timer-0" waiting for lock java.util.TaskQueue@12618b6 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         java.util.TimerThread.mainLoop(Timer.java:483)
         java.util.TimerThread.run(Timer.java:462)
    "Timer-1" waiting for lock java.util.TaskQueue@1410fe0 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         java.util.TimerThread.mainLoop(Timer.java:509)
         java.util.TimerThread.run(Timer.java:462)
    "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE
         sun.management.ThreadImpl.getThreadInfo0(Native Method)
         sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:145)
         weblogic.platform.VM15.threadDumpAsString(VM15.java:22)
         weblogic.platform.VM.threadDumpAsString(VM.java:137)
         weblogic.t3.srvr.JVMRuntime.getThreadStackDump(JVMRuntime.java:111)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:597)
         weblogic.management.jmx.modelmbean.WLSModelMBean.getAttribute(WLSModelMBean.java:525)
         com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666)
         com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$12.run(WLSMBeanServerInterceptorBase.java:326)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(WLSMBeanServerInterceptorBase.java:324)
         weblogic.management.mbeanservers.internal.JMXContextInterceptor.getAttribute(JMXContextInterceptor.java:163)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$12.run(WLSMBeanServerInterceptorBase.java:326)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(WLSMBeanServerInterceptorBase.java:324)
         weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttribute(SecurityInterceptor.java:298)
         weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttribute(WLSMBeanServer.java:273)
         weblogic.management.mbeanservers.domainruntime.internal.ManagedMBeanServerConnection.getAttribute(ManagedMBeanServerConnection.java:304)
         weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInterceptor.getAttribute(FederatedMBeanServerInterceptor.java:308)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$12.run(WLSMBeanServerInterceptorBase.java:326)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(WLSMBeanServerInterceptorBase.java:324)
         weblogic.management.mbeanservers.internal.JMXContextInterceptor.getAttribute(JMXContextInterceptor.java:163)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$12.run(WLSMBeanServerInterceptorBase.java:326)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(WLSMBeanServerInterceptorBase.java:324)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$12.run(WLSMBeanServerInterceptorBase.java:326)
         weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(WLSMBeanServerInterceptorBase.java:324)
         weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttribute(SecurityInterceptor.java:298)
         weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttribute(WLSMBeanServer.java:273)
         weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$5$1.run(JMXConnectorSubjectForwarder.java:326)
         weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$5.run(JMXConnectorSubjectForwarder.java:324)
         weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.getAttribute(JMXConnectorSubjectForwarder.java:319)
         javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1404)
         javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
         javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
         javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
         javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:600)
         javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
         weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
         javax.management.remote.rmi.RMIConnectionImpl_1032_WLStub.getAttribute(Unknown Source)
         javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:878)
         javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:263)
         weblogic.management.jmx.MBeanServerInvocationHandler.doInvoke(MBeanServerInvocationHandler.java:504)
         weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:380)
         $Proxy73.getThreadStackDump(Unknown Source)
         com.bea.console.actions.core.server.ThreadStackDumpAction.getCollection(ThreadStackDumpAction.java:61)
         com.bea.console.actions.BaseTableAction.display(BaseTableAction.java:46)
         com.bea.console.actions.BaseDisplayAction.execute(BaseDisplayAction.java:92)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)
         org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044)
         org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:91)
         org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2116)
         com.bea.console.internal.ConsolePageFlowRequestProcessor.processActionPerform(ConsolePageFlowRequestProcessor.java:261)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:556)
         org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:853)
         org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:631)
         org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:158)
         com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionServlet.java:256)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServlet.java:133)
         org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1199)
         com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:686)
         com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.renderInternal(ScopedContentCommonSupport.java:266)
         com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.render(StrutsStubImpl.java:107)
         com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:292)
         com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:727)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:146)
         com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
         com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
         com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
         com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
         com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:211)
         com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:196)
         com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.bea.console.utils.MBeanUtilsInitSingleFileServlet.service(MBeanUtilsInitSingleFileServlet.java:47)
         weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
         weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    "weblogic.time.TimeEventGenerator" waiting for lock weblogic.time.common.internal.TimeTable@7bc04d TIMED_WAITING
         java.lang.Object.wait(Native Method)
         weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:286)
         weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java:117)
         java.lang.Thread.run(Thread.java:619)
    "weblogic.timers.TimerThread" waiting for lock weblogic.timers.internal.TimerThread@7af929 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         weblogic.timers.internal.TimerThread$Thread.run(TimerThread.java:267)
    "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@141130f WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "Thread-7" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@141149d WAITING
         sun.misc.Unsafe.park(Native Method)
         java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
         java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
         java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
         weblogic.utils.concurrent.JDK15ConcurrentBlockingQueue.take(JDK15ConcurrentBlockingQueue.java:89)
         weblogic.store.internal.PersistentStoreImpl.getOutstandingWork(PersistentStoreImpl.java:567)
         weblogic.store.internal.PersistentStoreImpl.run(PersistentStoreImpl.java:615)
         weblogic.store.internal.PersistentStoreImpl$2.run(PersistentStoreImpl.java:383)
    "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" RUNNABLE
         weblogic.work.ExecuteThread.notifyRequest(ExecuteThread.java:145)
         weblogic.work.RequestManager.executeIt(RequestManager.java:247)
         weblogic.work.SelfTuningWorkManagerImpl.scheduleInternal(SelfTuningWorkManagerImpl.java:166)
         weblogic.work.SelfTuningWorkManagerImpl.schedule(SelfTuningWorkManagerImpl.java:149)
         weblogic.work.WorkManagerLifecycleImpl.schedule(WorkManagerLifecycleImpl.java:156)
         weblogic.servlet.internal.MuxableSocketHTTP.resolveServletContext(MuxableSocketHTTP.java:406)
         weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:347)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "VDE Transaction Processor Thread" waiting for lock [email protected] WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         com.octetstring.vde.backend.standard.TransactionProcessor.waitChange(TransactionProcessor.java:367)
         com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionProcessor.java:212)
    "DoSManager" TIMED_WAITING
         java.lang.Thread.sleep(Native Method)
         com.octetstring.vde.DoSManager.run(DoSManager.java:433)
    "Thread-11" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@734dcd WAITING
         sun.misc.Unsafe.park(Native Method)
         java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
         java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
         java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
         weblogic.utils.concurrent.JDK15ConcurrentBlockingQueue.take(JDK15ConcurrentBlockingQueue.java:89)
         weblogic.store.internal.PersistentStoreImpl.getOutstandingWork(PersistentStoreImpl.java:567)
         weblogic.store.internal.PersistentStoreImpl.run(PersistentStoreImpl.java:615)
         weblogic.store.internal.PersistentStoreImpl$2.run(PersistentStoreImpl.java:383)
    "weblogic.GCMonitor" waiting for lock java.lang.ref.ReferenceQueue$Lock@11a9ae0 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
         weblogic.platform.GCMonitorThread.waitForNotification(GCMonitorThread.java:88)
         weblogic.platform.GCMonitorThread.run(GCMonitorThread.java:64)
    "DynamicListenThread[Default]" RUNNABLE native
         java.net.PlainSocketImpl.socketAccept(Native Method)
         java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
         java.net.ServerSocket.implAccept(ServerSocket.java:453)
         java.net.ServerSocket.accept(ServerSocket.java:421)
         weblogic.socket.WeblogicServerSocket.accept(WeblogicServerSocket.java:38)
         weblogic.server.channels.DynamicListenThread$SocketAccepter.accept(DynamicListenThread.java:528)
         weblogic.server.channels.DynamicListenThread$SocketAccepter.access$200(DynamicListenThread.java:420)
         weblogic.server.channels.DynamicListenThread.run(DynamicListenThread.java:171)
         java.lang.Thread.run(Thread.java:619)
    "DynamicListenThread[Default[1]]" RUNNABLE native
         java.net.PlainSocketImpl.socketAccept(Native Method)
         java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
         java.net.ServerSocket.implAccept(ServerSocket.java:453)
         java.net.ServerSocket.accept(ServerSocket.java:421)
         weblogic.socket.WeblogicServerSocket.accept(WeblogicServerSocket.java:38)
         weblogic.server.channels.DynamicListenThread$SocketAccepter.accept(DynamicListenThread.java:528)
         weblogic.server.channels.DynamicListenThread$SocketAccepter.access$200(DynamicListenThread.java:420)
         weblogic.server.channels.DynamicListenThread.run(DynamicListenThread.java:171)
         java.lang.Thread.run(Thread.java:619)
    "[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@125148e WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@11a9d86 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Thanks for any help in advance...

    Hi thanks for your reply. Very strangely without making any changes I left it alone for an hour or so and it seems to be ok after that!

  • Is it a Limitation of Named Cache Storage- Fails for large volume ???

    I debugged the code which loads data from database into the cache as mentioned in the posting : Pre-loading the Cache from Database during application start-up
    Now what this code does is load 869 rows from database into java.util.Map using Hibernate loadAll() method. All is fine uptill this point.
    The next step is to putAll the entries into cache i.e. contactCache.putAll(buffer). This is where it hungs for a min and i see org.eclipse.jdi.TimeoutException followed by below exception stack trace
    IN DEFAULT CACHE SERVER JVM
    2009-10-30 10:53:44.076/1342.849 Oracle Coherence GE 3.5.2/463 <Warning> (thread=PacketPublisher, member=1): Experienced a 1390 ms communication delay (probable remote GC) with Member(Id=2, Timestamp=2009-10-30 10:31:54.697, Address=165.137.250.122:8089, MachineId=54906, Location=site:cable.comcast.com,machine:PACDCL-CJWWND1b,process:4856); 23 packets rescheduled, PauseRate=0.0010, Threshold=2080
    2009-10-30 11:06:10.060/2088.833 Oracle Coherence GE 3.5.2/463 <Error> (thread=Cluster, member=1): Attempting recovery (due to soft timeout) of Guard{Daemon=DistributedCache}
    2009-10-30 11:06:12.430/2091.203 Oracle Coherence GE 3.5.2/463 <Error> (thread=Cluster, member=1): Terminating guarded execution (due to hard timeout) of Guard{Daemon=DistributedCache}
    2009-10-30 11:06:15.657/2094.430 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:06:15.954/2094.727 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    Coherence <Error>: Halting this cluster node due to unrecoverable service failure
    2009-10-30 11:06:16.671/2095.444 Oracle Coherence GE 3.5.2/463 <Error> (thread=Termination Thread, member=1): Full Thread Dump
    Thread[Cluster|Member(Id=1, Timestamp=2009-10-30 10:31:31.621, Address=165.137.250.122:8088, MachineId=54906, Location=site:cable.comcast.com,machine:PACDCL-CJWWND1b,process:5380),5,Cluster]
         java.lang.Object.wait(Native Method)
         com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:18)
         com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onWait(Grid.CDB:9)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:39)
         java.lang.Thread.run(Thread.java:595)
    Thread[(Code Generation Thread 1),5,system]
    Thread[(Signal Handler),5,system]
    Thread[TcpRingListener,6,Cluster]
         java.net.PlainSocketImpl.socketAccept(Native Method)
         java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
         java.net.ServerSocket.implAccept(ServerSocket.java:450)
         java.net.ServerSocket.accept(ServerSocket.java:421)
         com.tangosol.coherence.component.net.socket.TcpSocketAccepter.accept(TcpSocketAccepter.CDB:18)
         com.tangosol.coherence.component.util.daemon.TcpRingListener.acceptConnection(TcpRingListener.CDB:10)
         com.tangosol.coherence.component.util.daemon.TcpRingListener.onNotify(TcpRingListener.CDB:9)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         java.lang.Thread.run(Thread.java:595)
    Thread[PacketSpeaker,8,Cluster]
         java.lang.Object.wait(Native Method)
         com.tangosol.coherence.component.util.queue.ConcurrentQueue.waitForEntry(ConcurrentQueue.CDB:16)
         com.tangosol.coherence.component.util.queue.ConcurrentQueue.remove(ConcurrentQueue.CDB:7)
         com.tangosol.coherence.component.util.Queue.remove(Queue.CDB:1)
         com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketSpeaker.onNotify(PacketSpeaker.CDB:62)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         java.lang.Thread.run(Thread.java:595)
    Thread[PacketPublisher,6,Cluster]
         java.lang.Object.wait(Native Method)
         com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:18)
         com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.onWait(PacketPublisher.CDB:2)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:39)
         java.lang.Thread.run(Thread.java:595)
    Thread[(VM Periodic Task),10,system]
    Thread[(Sensor Event Thread),5,system]
    Thread[(Attach Listener),5,system]
    Thread[(GC Main Thread),5,system]
    Thread[(Code Optimization Thread 1),5,system]
    Thread[Invocation:Management:EventDispatcher,5,Cluster]
         java.lang.Object.wait(Native Method)
         com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:18)
         com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher.onWait(Service.CDB:7)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:39)
         java.lang.Thread.run(Thread.java:595)
    Thread[Main Thread,5,main]
         java.lang.Object.wait(Native Method)
         com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:79)
    Thread[Logger@9265725 3.5.2/463,3,main]
         java.lang.Object.wait(Native Method)
         com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:18)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:39)
         java.lang.Thread.run(Thread.java:595)
    Thread[Invocation:Management,5,Cluster]
         java.lang.Object.wait(Native Method)
         com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:18)
         com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onWait(Grid.CDB:9)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:39)
         java.lang.Thread.run(Thread.java:595)
    Thread[Reference Handler,10,system]
         java.lang.ref.Reference.getPending(Native Method)
         java.lang.ref.Reference.access$000(Unknown Source)
         java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
    Thread[PacketListenerN,8,Cluster]
         java.net.PlainDatagramSocketImpl.receive0(Native Method)
         java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
         java.net.DatagramSocket.receive(DatagramSocket.java:712)
         com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:20)
         com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:4)
         com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketListener.CDB:19)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         java.lang.Thread.run(Thread.java:595)
    Thread[Finalizer,8,system]
         java.lang.Thread.run(Thread.java:595)
    Thread[DistributedCache,5,Cluster]
         com.tangosol.util.Binary.<init>(Binary.java:87)
         com.tangosol.util.Binary.<init>(Binary.java:61)
         com.tangosol.io.AbstractByteArrayReadBuffer.toBinary(AbstractByteArrayReadBuffer.java:152)
         com.tangosol.io.pof.PofBufferReader.readBinary(PofBufferReader.java:3412)
         com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:2854)
         com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2600)
         com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:348)
         com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
         com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
         com.tangosol.coherence.component.net.message.requestMessage.distributedCacheRequest.MapRequest.read(MapRequest.CDB:24)
         com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:123)
         com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         java.lang.Thread.run(Thread.java:595)
    Thread[PacketReceiver,7,Cluster]
         java.lang.Object.wait(Native Method)
         com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:18)
         com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketReceiver.onWait(PacketReceiver.CDB:2)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:39)
         java.lang.Thread.run(Thread.java:595)
    Thread[PacketListener1,8,Cluster]
         java.net.PlainDatagramSocketImpl.receive0(Native Method)
         java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
         java.net.DatagramSocket.receive(DatagramSocket.java:712)
         com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:20)
         com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:4)
         com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketListener.CDB:19)
         com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         java.lang.Thread.run(Thread.java:595)
    Thread[Termination Thread,5,Cluster]
         java.lang.Thread.dumpThreads(Native Method)
         java.lang.Thread.getAllStackTraces(Thread.java:1434)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         com.tangosol.net.GuardSupport.logStackTraces(GuardSupport.java:791)
         com.tangosol.coherence.component.net.Cluster.onServiceFailed(Cluster.CDB:5)
         com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$Guard.terminate(Grid.CDB:17)
         com.tangosol.net.GuardSupport$2.run(GuardSupport.java:652)
         java.lang.Thread.run(Thread.java:595)
    2009-10-30 11:06:20.958/2099.731 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:06:20.958/2099.731 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    2009-10-30 11:07:17.682/2156.455 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:07:17.682/2156.455 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    2009-10-30 11:07:17.682/2156.455 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: disconnected from member 2 due to a kill request
    2009-10-30 11:07:17.682/2156.455 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service Management with senior member 1
    2009-10-30 11:07:17.682/2156.455 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service DistributedCache with senior member 1
    2009-10-30 11:07:17.682/2156.455 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-10-30 11:07:17.682, Address=165.137.250.122:8089, MachineId=54906, Location=site:cable.comcast.com,machine:PACDCL-CJWWND1b,process:4856) left Cluster with senior member 1
    2009-10-30 11:07:17.682/2156.455 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Service guardian is 51795ms late, indicating that this JVM may be running slowly or experienced a long GC
    2009-10-30 11:07:18.073/2156.846 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.
    2009-10-30 11:07:22.696/2161.469 Oracle Coherence GE 3.5.2/463 <Error> (thread=Cluster, member=1): Attempting recovery (due to soft timeout 26277ms ago) of Guard{Daemon=TcpRingListener}
    2009-10-30 11:07:22.696/2161.469 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:07:22.696/2161.469 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    2009-10-30 11:07:26.835/2165.608 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.
    2009-10-30 11:07:27.709/2166.482 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:07:27.709/2166.482 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    2009-10-30 11:07:32.723/2171.496 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:07:32.723/2171.496 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    2009-10-30 11:07:42.796/2181.569 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:07:42.843/2181.616 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    2009-10-30 11:07:42.890/2181.663 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Service guardian is 10089ms late, indicating that this JVM may be running slowly or experienced a long GC
    2009-10-30 11:07:42.968/2181.741 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.
    2009-10-30 11:07:47.857/2186.630 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:07:47.935/2186.708 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    2009-10-30 11:07:50.527/2189.300 Oracle Coherence GE 3.5.2/463 <Info> (thread=PacketListenerN, member=1): Scheduled senior member heartbeat is overdue; rejoining multicast group.
    2009-10-30 11:07:52.948/2191.721 Oracle Coherence GE 3.5.2/463 <Info> (thread=Main Thread, member=1): Restarting Service: DistributedCache
    2009-10-30 11:07:52.948/2191.721 Oracle Coherence GE 3.5.2/463 <Error> (thread=Main Thread, member=1): Failed to restart services: java.lang.IllegalStateException: Failed to unregister: DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=129, BackupPartitions=128}
    - SQL Error: 1400, SQLState: 23000
    - ORA-01400: cannot insert NULL into ("CTXOWNER"."CTX_TRM_TXTS"."CTX_TRM_TXT_ID")
    - SQL Error: 1400, SQLState: 23000
    - ORA-01400: cannot insert NULL into ("CTXOWNER"."CTX_TRM_TXTS"."CTX_TRM_TXT_ID")
    Coherence <Error>: Halting this cluster node due to unrecoverable service failureNow i do see its complaining about cannot insert null values. But wondering how come it was able to insert from database into java.util.Map. Its matter of dumping from Map to Coherence Cache which is another Map
    IN CACHE FACTORY VM
    Map (com.comcast.customer.contract.contract.hibernate.Term):
    2009-10-30 11:06:46.076/2095.134 Oracle Coherence GE 3.5.2/463 <Warning> (thread=PacketPublisher, member=2): Timeout while delivering a packet; requesting the departure confirmation for Member(Id=3, Timestamp=2009-10-30 10:52:20.758, Address=165.137.250.122:8090, MachineId=54906, Location=site:cable.comcast.com,machine:PACDCL-CJWWND1b,process:2756)
    by MemberSet(Size=1, BitSetCount=2
      Member(Id=1, Timestamp=2009-10-30 10:31:31.621, Address=165.137.250.122:8088, MachineId=54906, Location=site:cable.comcast.com,machine:PACDCL-CJWWND1b,process:5380)
    Map (com.comcast.customer.contract.contract.hibernate.Term):
    Map (com.comcast.customer.contract.contract.hibernate.Term): 2009-10-30 11:06:46.887/2095.945 Oracle Coherence GE 3.5.2/463 <Error> (thread=PacketPublisher, member=2): This node appears to have become disconnected from the rest of the cluster containing 2 nodes. All departure confirmation requests went unanswered.
    Stopping cluster service.
    Map (com.comcast.customer.contract.contract.hibernate.Term): 2009-10-30 11:06:48.773/2097.831 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=2): Service Cluster left the cluster
    2009-10-30 11:06:49.257/2098.315 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=2): Service Management left the cluster
    2009-10-30 11:06:49.257/2098.315 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache, member=2): Service DistributedCache left the clusterIN JUnit Test VM
    Coherence <Error>: Halting this cluster node due to unrecoverable service failurePlease note i am running Default Cache Server VM, Cache Factory VM, Eclipse JUnit Test VM in the same machine.
    Please note the same piece of code works absolutely fine when i load other object which return 154 rows.

    Thanks for quick response.
    >
    So using the local scheme, you place 869 objects into that cache, correct? Does that work?
    I didn't tried with local scheme. But i did try with <read-write-backing-map> scheme as it was giving problem i reduced the size to 100 & changed to local-scheme.
    If you would like me to try with local-scheme i would do so but it will not prove anything as we need Hibernate Cache store to do write's
    >
    Can you explain what the remaining issue is? (What part is failing?)
    There are several issues and i am really striving to make it work :)-
    Here is the list
    - revert back to <read-write-backing-map> scheme so that i can pre-poulate the cache from database so that subsequent reads and writes hit the cache instead of database
    - to pre-populate the cache during application start-up . We use Spring 2.5, Hibernate 3.2
    - the queryContract(contract) method is similar to Search screen i.e. it takes sample contract object as an argument with some attributes populated. I am using Filter API to return the List of Contract objects based on the search parameters of sample contract as follows
    Filter filter = new EqualsFilter(IdentityExtractor.INSTANCE, contract);
    Set setEntries = contractCache.entrySet(filter); The above code expects all the attributes of sample contract object are fully populated and if not it throws Null Pointer Exception
    For example if date attribute is null then Null Pointer Exception is thrown at the following line
    writer.writeLong(2, this.date.getTimeInMillis());
    I greatly appreciate the inventor of Tangosol Coherence product responding to my queries on the forum. Hopefully with his help i will be able to resolve these issues :)-

Maybe you are looking for