No available resource. Wait-time expired.

Dear All
I am using sun ONE applications server. I am struggling with No available resource. Wait-time expired problem. MY Pool configurations are steady:20,max:100,inc:2. My code is very straight forward.
Getting the connection, using the connection and closing the connection. I made sure that the connection opened is getting closed. But still after certain no. of requests my request is getting blocked. What might be the problem.
Regards,
Nagaraju.KV

Hi,
As you can see from other posts, this is a very common problem. Until now the cause always ends up pointing to a connection not being close.
I suggest you try to run through a full single cycle of you app, while using the CLI monitoting to check that the connections created/closed matches the expected created/closed connections. Also that the number of free connections at the end is correct.

Similar Messages

  • Cannot get Local Connection, No available resource, Wait-time expired

    Hi Friends,
    Please answer my queries below.
    Thanks and Regards
    Busincess Requirement
    I have to display a particular set of rows in a dashboard or screen, and it is being refreshed every 1 minute, also user can update from that screen displayed values.
    The below program extracts some data from database and passes to the front end through a collection where it is being displayed.
    Code Logic Flow
    1. CockpitAction calls CockpitOraDAO for database results
    2. CockpitOraDAO is a singleton class.
    3. After getting the CockpitOraDAO object, the action will then call the getLabAreaCockpitDetails() method.
    getLabAreaCockpitDetails will
         - Get the Connetion from the OracleConnectionManager class (It is a plain class with getPooledConnection() and releaseConnection() methods).
         - Execute the query and put the result to a collection
         - close the connection
         - return result to the calling action.
    This getLabAreaCockpitDetails() are called around once in every 1 minute
    So, I believe everytime a call is made to action for cockpit display, it will take the existing object of the CockpitOraDAO class and make a call to database. i.e there will be only one object of CockpitOraDAO reside in application server at any particular interval of time.
    My Understandings
    1. Only 1 object of CockpitOraDAO will reside in application server (provided it is not user longer and garbage collected) at a particular instance.
    2. Many objects of Connection will be created and destroyed.(Each time the getLabAreaCockpitDetails() method is called, we will get one connection from connection pool and in finally the Connection will be released to connection pool).
    My Problems
    It is showing the "Cannot get Local Connection, No available resource, Wait-time expired"
    after running around 1 full day.
    My doubts
    1. Can anybody say why I get this error ?
    2. There may be some connections are not closed. But I have checked at finally block, the status of the connection is closed after calling this method.
    3. There may be some problem due to the singleton instane of CockpitOraDAO, Is it affecting performance ?
    4. Is it valid that I have to make CockpitOraDAO as Singleton ?
    public class CockpitOraDAO extends DAOAdaptor //implements BISample
         private static CockpitOraDAO instance=null;
         private static boolean debug = true;
         * The below method will be used to provide the singleton intance of the CockpitOraDAO object.
         public static CockpitOraDAO getInstance()
              if (instance == null)
                   synchronized (CockpitOraDAO.class)
                        if (instance == null)
                             instance = new CockpitOraDAO();
              return instance;
         * The below method will be used to get the cockpit details of the lab area.
         * This will return collecton of sample details for the specific lab.
         public Collection getLabAreaCockpitDetails(Collection prevCockpitDetailList,Collection filterCriteria) throws Exception
         if(debug)
              System.out.println("Inside CockpitOraDAO::getLabAreaCockpitDetails() method");
              Connection conn = null;
              boolean sampleExists = false;
              PreparedStatement pstmt=null;
              ResultSet rs=null;
              String returnStr=null;
              StringBuffer sqlQuery = null;
              String tempComment1=null, tempComment2=null;
              LabCockpitDO labc=null;
              LabCockpitDO labc2=null;
              Collection resultList=null, manCommentList=null, labCommentList=null, labCompCommentList=null;
              ArrayList result1List=null, prevCockpitDetail1List=null,filterList = null;
              OracleConnectionManager manager = null;
              boolean flag = false;
              try
                   labc2 = new LabCockpitDO();
                   prevCockpitDetail1List = (ArrayList) prevCockpitDetailList;
                   sqlQuery = new StringBuffer();
                   sqlQuery.append("select s.sample_sample_no sample_no, s.sample_inspection_lot_no inspection_lot_no,");
                   manager = new OracleConnectionManager();
                   conn = manager.getPooledConnection("myDS");
                   pstmt = conn.prepareStatement(sqlQuery.toString());
                   if(debug)
                   System.out.println("Query********"+sqlQuery.toString());
                   rs = pstmt.executeQuery();
              catch(Exception e)
                   //System.out.println(e);
                   throw e;
              finally
                        try
                             manager.releaseConnection("myDS");
    if(debug)
    System.out.println("Connection Status Closed=true/ Open=false=["+conn.isClosed()+"]");
    if(conn!=null || !conn.isClosed())
    conn.close();
    if(debug)
    System.out.println("Connection Status After Closing Connection Closed=true/ Open=false=["+conn.isClosed()+"]");
                             if(rs != null)
                                  rs.close();
                             if(pstmt != null)
                                  pstmt.close();
                             conn = null;
                             pstmt=null;
                             rs = null;
                             sqlQuery=null;
                             returnStr=null;
                             labc=null;
                             labc2=null;
                             manCommentList=null;
                             labCommentList=null;
                             labCompCommentList=null;
                             tempComment1=null;
                             tempComment2=null;
                             resultList=null;
                             prevCockpitDetailList=null;
                             prevCockpitDetail1List=null;
                        catch(Exception e)
                             //System.out.println("Unable to Release Connection ="+e);
                             throw e;
              //if(debug)     
              //System.out.println(resultList);
              return result1List;
         }

    Hi,
    As you can see from other posts, this is a very common problem. Until now the cause always ends up pointing to a connection not being close.
    I suggest you try to run through a full single cycle of you app, while using the CLI monitoting to check that the connections created/closed matches the expected created/closed connections. Also that the number of free connections at the end is correct.

  • Error : No available resource. Wait-time expired.

    Hi,
    We have a big problem of connection pooling in SunOne.
    After out program execute a lot of sql command in a short time, SunOne 7.0 throws an Exception ---- No available resource. Wait-time expired. We modify the connection pool setting, but it doesn't work. Can someone help to solve problem.
    Our connectiong pool setting as below :
    <jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isolation-level-guaranteed="false" is-connection-validation-required="true" connection-validation-method="auto-commit" fail-all-connections="false" datasource-classname="oracle.jdbc.pool.OracleDataSource" name="xxx">
    <property value="jdbc:oracle:thin:@aa:1521:aa" name="URL"/>
    <property value="xxx" name="user"/>
    <property value="xxx" name="password"/>
    </jdbc-connection-pool>
    Thanks!
    Elsa

    This issue is not resolved. I got this message this afternoon. It has nothing to do with ejb. Just for confirming this issue again, I created a very simple application, a jsp that calls a servlet. In the servlet, I have a loop that calls a getNewConnection(). and returns the connection, then I create a Statement with that connection. Then I call another method releaseResources(Statement stmt)
    Connection conn = stmt.getConnection();
    if(conn != null)
    System.out.println("connection: " + conn);
    conn.close();
    // conn = null; tried this one also, same result
    The code is OK. including try/catch blocks ans so on.
    If the number of loops greater than the connection pool size, then I get the same exception. It means the connections are not getting closed. But if I change the methode and pass Connection instead of Statement, then it workes fine.
    I have tested this in App server7 with:
    Oracle 9.2.0 client and ojdbc14.jar
    Oracle 9.2.0 client and classes12.jar
    Oracle 9.0.1 client and classes12.jar
    Oracle 8.1.6 client and classes12.zip
    all with thin or oci drivers.
    It looks like something to do with Statement.getConnection() and the version of AppServer jdk (1.4.0.2).
    I know the getConnection methode does return A connection. I can print the connection id.

  • Java.sql.SQLException: No available resource. Wait-time expired.

    Hi all,
    The application platform is SunONE Application Server 7, and the database is ORACLE 9i. My Website application will raise the SQLException once a few days' running. Everything will be ok once the Application server has been restarted. The detail about the Exception is :
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr: java.sql.SQLException: No available resource. Wait-time expired.
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:251)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:98)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.util.EnvUtil.getDSConnection(EnvUtil.java:72)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.util.DirectDSUtil.getObjectsFromDS(DirectDSUtil.java:103)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.jcsms.dam.JcsmsDDSA.getSpecialistByPage(JcsmsDDSA.java:388)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.jcsms.sessionbeans.SpecialManagerEJBBean.listSpecialist(SpecialManagerEJBBean.java:1941)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.jcsms.sessionbeans.SpecialManagerEJBBean_EJBObjectImpl.listSpecialist(SpecialManagerEJBBean_EJBObjectImpl.java:702)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.jcsms.sessionbeans._SpecialManagerEJBBean_EJBObjectImpl_Tie._invoke(Unknown Source)thanks for any help
    Niu

    Ther is a related Bug i n Oracle: Bug No. 4420032
    PROBLEM STATEMENT: ------------------
    The Oracle client file ojdbc_14.jar is not handling exceptions correctly. The connection pool slowly runs out of connections and hits the oracle db limit of max_sessions. Increasing the db max_sessions does not help as the number of sessions continue to increase.
    The vendor developers of ct's application have identified a code problem with the Oracle client file ojdbc_14.jar. Their description follows.
    The following is a technical description of the Oracle JDBC client library issue. The jar file in question is: ojdbc_14.jar. This issue is also present in the 9.2.05 and 9.2.06 versions of the client code.
    The socket.close() call in TcpNTAdapter.disconnect() does not properly handle network exceptions. Where the exception should be handled within the code segment calling socket.close(), the class instead throws an exception without ensuring the socket is closed. The socket is not subsequently closed by clients of the class. This ultimately results in a connection leak. Overtime, the maximum number of Oracle database sessions is reached. The only work around for this issue in production, is to restart the effected processes.
    The code segment:
    public void disconnect()
    throws IOException { 
    socket.close();
    socket = null; }
    should be along the lines of:
    public void disconnect()
    throws IOException { 
    try{  socket.close();  }
    catch(IOException ioe){  throw ioe;  }
    finally{  socket = null;  } }
    The original code segment will not execute the statement "socket = null" when . an exception occurs. Given the fact that the exception is not subsequently processed properly, the object is never dereferenced, and the socket remains open for the life of the process. Adding this statement in the finally block . ensures the object will ultimately be destroyed by the garbage collector. . ct tested this change in their lab and found that the recommended modification successfully resolved the issue.
    This problem has occurred with the previous ct's application releases, but the vendor has only recently been able to isolate the root cause. The JDBC connection pool slowly runs out of connections and hits the oracle db limit of max_sessions.
    Increasing the db max_sessions does not help as the number of sessions continue to increase. This problem has been occuring in Production over the past few releases of the application, but usually the connections leak slowly. This problem can be duplicated under heavy load in just a few minutes . in the Loadtest environment.

  • Database Error: RSR0009: Resource not available for pool. Wait-time expired

    i am occassionally receiving the following error during database connections in my servlet:
    Database Error: RSR0009: Resource not available for pool [webAdvisorTestPool]. Wait-time expired
    i understand that this is a result of a connection leak from improper closure of my Connection object, but i thought that i was properly closing my connection.
    i can get the error if i do the following steps:
    1) access my login page and enter login credentials.
    2) submit the login which then hits the Authentication servlet.
    3) Authentication servlet authenticates and takes me to home page.
    4) hit the back button to get back to the login page.
    5) repeat this process until i hit the Max Pool Size (from web server).
    6) then i get the error message
    here are some details:
    i have an Authentication servlet; here is the pertinent code from that servlet:
    try {     // retrieve the user and add the User object to the session     DAO dao = new DAO();     Person authenticUser = dao.getPerson(userID, password);     session.setAttribute("validUser", authenticUser);     redirectPage = mapping.findForward("success"); }
    i also have a DAO object that handles all of my DB transactions (and you can see from my code above that the Authentication servlet is using that object); here is the pertinant code from that servlet:
    public DAO() {     datasource = "java:comp/env/jdbc/webAdvisorTest"; } public Person getPerson(String userID, String password)     throws ObjectNotFoundException {     // JDBC variables     DataSource ds = null;     Connection conn = null;     PreparedStatement stmt = null;     ResultSet results = null;     // User variables     Person validUser = null;     try     {         // Retrieve the DataSource from JNDI         InitialContext ctx = new InitialContext();         // if this statement fails, NamingException is thrown         ds = (DataSource)ctx.lookup(datasource);         // get DB connection and perform SQL operations         conn = ds.getConnection();         // User variables         String validUserID = null;         String validFName = null;         String validLName = null;         String validEmail = null;         // get DB connection and perform SQL operations         conn = ds.getConnection();         stmt = conn.prepareStatement(PERSON_QUERY);         stmt.setString(1, userID);         stmt.setString(2, password);         results = stmt.executeQuery();         // iterate through the results         if (results.next())         {             validUserID = results.getString("id");             validFName = results.getString("first_name");             validLName = results.getString("last_name");             validUser = new Person(validUserID, validFName, validLName);         }     }     // handle SQL errors     catch(SQLException e)     {         e.printStackTrace(System.err);         throw new RuntimeException("Database Error: " + e.getMessage());     }     // handle JNDI errors     catch(NamingException e)     {         throw new RuntimeException("JNDI Error: " + e.getMessage());     }     // clean up resources     finally     {         doClosure(results, stmt, conn);     }     // if the user was not found, throw ObjectNotFoundException     if(validUser == null)     {         throw new ObjectNotFoundException();     }     return validUser; } protected void doClosure(ResultSet results, PreparedStatement stmt,     Connection conn) {     if (results != null)     {         try { results.close(); }         catch (SQLException e) { e.printStackTrace(System.err); }     }     if (stmt != null)     {         try { stmt.close(); }         catch (SQLException e) { e.printStackTrace(System.err); }     }     if (conn != null)     {         try         {             System.out.println("R18Resources.conn before close: " + conn);             conn.close();             System.out.println("R18Resources.conn after close: " + conn);             System.out.println("R18Resources.conn is closed? " +                 conn.isClosed());         }         catch (SQLException e)         {             System.out.println("R18Resource conn close error: " +                 e.getMessage());         }     } }
    as you can see, i've added some print statements in my connection closure block. based on my output log, each connection is being properly closed and i am not encountering any errors during that closing block.
    any ideas???
    Message was edited by:
    millerand

    Please try the following code in your doClosure method. Replace your code with the following code.
    public void doClosure(ResultSet pResultSet, Statement pStmt, Connection pConn) throws Exception {
    try {
                   if (pResultSet != null) {
                        pResultSet.close();
                        pResultSet = null;
              } catch (SQLException se) {
              logger.error( se );
              } finally {
                   try {
                        if (pStmt != null) {
                             pStmt.close();
                             pStmt = null;
                   } catch (SQLException se) {
                   logger.error(se);
                   } finally {
                        try {
                             if (pConn != null) {
                                  pConn.close();
                                  pConn = null;
                        } catch (SQLException se) {
                        logger.error(se);
    And let me know if you still face this issue. What is the application server you are using?

  • Excel not even open - "cannot complete this task with available resources" and then VBA run-time error randomly appear!

    Has anyone else seen the "Excel cannot complete this task with available resources" error message appear when Excel isn't even open? It keeps happening to me, and it's the strangest thing.
    It seems like interacting with Excel files sometimes prompts it - for example, I just turned on my computer this morning, checked my email, and then opened Google Chrome to upload some Excel files. Excel hasn't been opened at any point since the machine
    booted up, but this Excel error popped up while I was uploading the files.
    Checked the Task Manager because I was baffled (not that this is the first time it's happened), and there's no Excel application running, just that silly error message. Choose OK on that error and a VBA run-time error message appears (not even sure if it's
    Excel VBA or Word/Outlook but I assume it's Excel - it's the good old 1004, application-defined or object-defined error).
    Debug is greyed out, so it won't let me debug to see what the problem is. Choosing End brings the "Excel cannot complete this task with available resources" message back for one final performance.
    This happens on a not-infrequent basis: Excel isn't open, and I randomly get this set of Excel errors: 1) "cannot complete task", 2) VBA run-time, 3) "cannot complete task" again. Then it's done, until the next time it happens. Weird.
    I have 32-bit Windows 7 and Excel 2013/2010/2007/2003/2002 (I know!) but the issue only started after installing 2013. I also get the "cannot complete this task" message regularly when working in Excel (generally with Power Pivot or something legitimately
    memory-hungry though), and restarting the application does the trick. I don't mind a heads-up when I'm gobbling up too many resources, but when Excel's not even open, it's a bit ridiculous. It's like I have a zombie Excel! Does interacting with Excel files
    via upload/moving around Windows Explorer actually trigger some sort of Excel action in the background?
    Any ideas would be most appreciated!! Thank you :)

    Hi,
    As the memory error messages , it can be very generic and don't always identify the real cause of the issue. We may try to use the KB that Mr. KR mentioned above to troubleshoot it.
    On the other hand, if the file is xls format, we may convert to the new file format .XLSM and test.
    http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28339883.html
    Next, try to disable hardware graphics acceleration from File > Options > Advanced > Display section and disable Aero Themes (if you enabled) to check the results.
    For the hangs and crashes issues, we may use ADPlus.vbs to troubleshoot:
    http://support.microsoft.com/kb/286350/en-us
    http://www.networksteve.com/exchange/topic.php/Excel_cannot_complete_this_task_with_available_resources_error,/?TopicId=39411&Posts=1
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Hope it's helpful.
    George Zhao
    TechNet Community Support

  • Waiting on a FIX before return time expires

    Although my daily iP4 usage appears normal, yesterday as I was talking the sound started to fad in and out and sounded like static. I removed my hand from the phone lower left corner and the sound quality instantly improved. I was able to reproduce this time and time again.
    Waiting on a FIX before the return time expires has me a little worried. I don't want to be stuck with a 2 year contract and defective iPhone.
    Coming from a fanboy with thousands of dollars wrapped up in Apple products I don't want to return the iP4 but may be forced to unless there's a real fix in the next 8-9 days.
    Need advice from the experts

    Hey Concerto,
    Thanks for the update! Let us know if you need any additional assistance.
    Aaron|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Waiting time between entry posting in R/3 and avail. in BW

    Dear SAP community,
    We have set up a process chain which gives us the freedom to load GL account into BW on an ad-hoc basis.
    Unfortunately it is not really ad-hoc after we have  posted an entry in GL account in R/3 we need to wait approximately 1 hour before we run process chain in order to see posted entry. If we run process chain immediatly after posting entry we woul not see the entry in BW.
    Does anyone knows if there is a waiting time from when we post an entry into SAP R3 to when we can run the process chain and see the posting in BW?
    Thanks  a lot for you help.
    Stefanie

    Hi Stefanie,
    What is the Datasource being used?
    For old GL extractors, like 0FI_GL_4, there is a safety interval upper limit of 1 day, meaning data posted till yesterday will be extracted if the chains run today. There are workarouds given by SAP to extract most recent data for these.
    For new GL extractors like 0FI_GL_10, there is a safety interval lower limit of 1 hour, meaning the most current data would be extracted and there would be an overlap of 1 hour between delta loads and some records are extracted twice.

  • Expected Ship Date:  Not available at this time.

    For those wondering where their previously promised phone is (and if they will ever see it), there is hope... Epilogue, still no ship date and still no official word from Verizon.
    <Chat transcript removed as proprietary information per the Verizon Wireless Terms of Service.>
    Message was edited by: Verizon Moderator
    If only Verizon's customer relations and notifications were as diligent as their moderators ;-)
    The gist of the chat was that there were "unknown delays in the shipment of HTC phones" and the best guess is shipping approximately a week after the initial promise date. Perhaps I'm the only one experiencing their "ship date" moving from a given date to the text, "Not available at this time", and therefore should consider myself "special".
    If anyone else is also special, please reply if only to have necessary evidence to escalate the communication issue either up the support chain or in effective social network forums.

    The irony of this dissertation is that the content in question of violating the ToC was actually a cleansed chat dialogue (all PII - Personal Identity Information - was obfuscated) that portrayed Verizon online support in a positive light as caring, resourceful, and responsive to an unfortunate situation where they failed to proactively notify customers of delays.
    It was shared with this community so that others in this situation could see both (a) the reason for the delay and (b) that someone at Verizon actually cares.
    For some reason, this caused a fellow consumer to register a complaint, perhaps it was motivated because they are dissatisfied with Verizon and do not like to see them portrayed so positively?
    The apparent necessity to police and educate posters in discussions is a natural self-appointed role well documented in the behaviors of social networks such as this. The unfortunate fallout is that the original message is too often lost in the educational discourse that ensues.
    To be clear, the original message is this:
    If your prepaid order for an HTC 8x has an expected ship date that changed from a given date to the text "not available at this time", fear not - the friendly and helpful live-chat people will tell you it is because of unforeseen delays with the hardware manufacturer and they are very sorry this was not communicated to you. Simply wait for an email that your phone has shipped - as they are unable to provide an updated expected ship date.

  • JDBC Maximum Waiting Time

    What is maximum waiting time parameter in jdbc connecton?
    Is it like when a client accesses the database if there is not connection available the client waits the certain period of time until someone releases the resource?

    Hi Skip Ford,
        Follow these links
    http://www.java2s.com/Code/Java/Database-SQL-JDBC/GetdatefromOracle.htm
    http://ramblingabout.wordpress.com/2007/01/26/remember-date-time-timestamp/
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    Regards,
    Santosh.

  • Resource busy time out oracle message - Concurrency and Locks

    I have a requirement to generate gapless invoice and receipt number in our application. so i have currently used the below approach.
    a. created table with a column to hold the invoice and receipt number sequence value.
    b. whenever transaction gets succeed. i will lock the table which holds the invoice number and receipt number inorder to avoid the sequential number slipages.
    Issue
    1. since the application belongs to online payment through portal by customers, when concurrent users trying to pay and while generating receipt number's, i am facing with "resource busy time out" message frequently. Here i noticed when user1 locks the table to access the receipt number value and session is not committed or rollback and another session user2 trying to access the same resource, in this scenario i am facing this error.
    Frequency of encountering this error is low, but customer was telling us this error is show stopper and affects normal business.
    Is there any alternative solution or method can be applied to overcome this problem?
    Current SQL used in application
    cursor <cursor name> is.
    select <column_name>
    into <variable>
    from <table name>
    for update of wait 5
    update <table name> set <column name> = value + 1
    where current of <cursor name>

    1e0ea4a1-1610-4dec-a44c-4ee1f46ba1a4 wrote:
    I have a requirement to generate gapless invoice and receipt number in our application. so i have currently used the below approach.
    Engage the business and inquire WHY this "requirement" exists. I have personally never seen an audit requirement wherein invoices MUST be devoid of gaps (that's not to say they do not exist, just that I've never seen one
    They certainly must be unique, but that's what a sequence will do for you. If the business absolutely needs gapless information, then they will have to be willing to pay the price which is going to be longer transaction times (as requests queue in a busy system to get this sought after gapless resource). Your job is to explain this to them ... nothing comes without a cost.
    The only thing you can really do (assuming you engage the business and the requirement doesn't change) is ensure the transactions are designed in such a manner that
    1) they complete as fast as possible AND that the locking is done at the latest possible stage of the transaction
    2) there is no user interaction (you cannot allow the users a "review" screen of any sort ... because users get silly sometimes and go for a coffee while reviewing things)
    Cheers,

  • How to keep waiting time between processed messages !!

    Hi Folks,
    I have got one scenario required waiting time between processed messages. The problem as follows !!
    File --> Proxy scenario. I receive 15 messages from sender side (same messages structure) so working with one interfaces. File picking and transforming this message and split into 2 messages. messages are receiving to receiver. I am using BPM with 7,8 steps like receiving step, block , message transformation step , internal block 1 for sender 1, internal block 2 for sender 2.
    All things are working fine, messages are going to receiver properly. But customer requirement is , wait step required between processed messages before sender1. I have put wait step still, PI picks all messages in one shot processing and waiting for 2 minutes, after 2 minutes sending all messages at the same time, this process is not working.
    I have tried with wait step in mapping (Sarvesh) given excellent idea, still PI works the same way.
    Can someone please explain a bit why the messages or not waiting message by message. I am using EOIO with Queue name and file process mode "BY NAME" and I have tried "BY TIME" as well. I have given priority to this Queue. On BPM Queue assignment : One Queue.
    Please I am expecting positive answer !!
    Many Thanks in Advance
    San

    Hi Rudolf Yaskorski ,
    Not sure about your PI release and BPM model, do you create separate process instance for each file, or do you process files collecting them in one single instance? Are you using parallelization within your ccBPM ?
    I am using serialization, I don't think bpm can do Parallization until PI 7.0, but PI 7.11 has got has queue assignment. But I am using one queue. This must be serialization.
    To me it looks like your issue is not in ccBPM but rather more in polling files (as per your post file CC polls all 15 files in one shot). So if you wish to poll the files not at the same time some workaround is required. Possible options you could check out:
    A. Either implement "wait" in your mapping based on file name or other criteria (e.g. directory name). Check out if respective BPM instances are really created at different times.
    I have used wait step in mapping. These 15 messages has to go through one interface. So I am using one interface. But I have checked mapping process time in all messages on receiver system. Shows same timing, even though I put 40000 ms waiting time in mapping.
    B. Try polling different files (or use different directories) with different channels and coordinate starting / stopping of your channels by scheduling availability for each CC in RWB. E.g. you poll file 1 with CC 1. You start 2 minutes later CC 2 and poll file 2. And so on.
    I am not clear about this . On BPM waiting step is working and it keeps wait all messages, which are coming through one interface. Then it releases all messages at the same time.
    I don't know how to resolve this. I have tried with Transport acknowledgment, but all messages are going to reciver system waiting at receiver system in priority queue and processing in EOIO, but taking so long. Rather all messages go and sits in queue, I want to stop messages by message with 2 minutes time gap. How please?
    Kind Regards
    San

  • Excel cannot complete this task with available resources

    Hello all,
    I am having a puzzling problem with some Excel 2010 users. 
    One person in Finance is having problems with excel in general, the others are having problems with a specific spreadsheet.
    The specific spreadsheet is very large, 250mb, and contains a lot of data. They're trying to update a specific pivot table within this sheet but every time they try to refresh the data they get the message "Excel cannot complete this task with available
    resources". I have also replicated the problem on my PC.
    All PC's have 4GB of RAM available. I closed all programs, opened the sheet again, refreshed the pivot table and still received the same error. 
    Now, one person in the department was able to open the sheet, refresh the pivot table and save it with no problems. They have the same spec machine as the others in the Finance department.
    All users have rebooted their machines, I've checked the server where the saved files sit to make sure there are no problems, I've asked them to check all data sources within the spreadsheet, watched RAM usage during the operation and while it is high, it
    doesn't max out. Before finding out that one person can open it, I thought it could be that the file had become corrupted in some way. 
    It's very puzzling as I cannot see any logical reason why four people cannot use this sheet but one can. Any help or suggestions would be greatly appreciated. 

    Hi
    MrBeardyDrummer,
    Since you got the error message "Excel cannot complete this task with available resources. Choose less data or close other applications."
    when opened the Excel, please try the follow this KB to fix the issue.
    http://support.microsoft.com/kb/2655178
    You can also refer to these.
    http://support.microsoft.com/kb/2779852
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2012/05/22/quot-excel-cannot-complete-this-task-with-available-resources-quot-after-installing-ms12-030.aspx
    If there is anything I can do for you regarding this issue, feel free to post back.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to increase the waiting time for response in Adapter Engine not in IE

    Hi Experts,
                It is a SOAP to Proxy Synchronous interface. SOAP system is sending the request to PI, PI sending the same request to ECC system, After execution of some logic response back to PI in 7 minutes. In ABAP Stack(sxmb_moni) processing the response message also successfully with success flag after completion of these 7 minutes. But exactly 5 minutes later getting the error at Java Stack RWB- in communication channel monitoring i.e
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message bd2bf8d0-b2c2-11e0-c383-001cc4fb5cb7(OUTBOUND) expired.  We have set the "runtime-HTTP_TIMEOUT" parameter as 3600. thats why in Integration engine it is processing successfully.
    kindly suggest me how to increase the waiting time for response in Adapter Engine. Exactly after 5 mins getting the above error in rwb, but in Integration Engine getting successful flag after 7 mins until then it is waiting for response with  status flag Log version.
    Thanks & Regards,
    Srihari.

    Hi,
    Please see
    How To... Investigate Timeouts In Synchronous XI/PI Scenarios
    It will answer all your queries
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747?QuickLink=index&overridelayout=true

  • Query identified as OracleOEM reporting a lot of CPU wait time

    We use "Ignite" by Confio to monitor the wait time on our database and I have been watching a query for a while now and it seems to be consuming a lot of resources for what it is doing.
    This is the query:
    /* OracleOEM */
    SELECT m.tablespace_name,
    m.used_percent,
    (m.tablespace_size - m.used_space)*t.block_size/1024/1024 mb_free
    FROM dba_tablespace_usage_metrics m,
    dba_tablespaces t,
    v$parameter p
    WHERE p.name='statistics_level'
    AND p.value!='BASIC'
    AND t.tablespace_name = m.tablespace_name
    And this is the execution plan:
    SELECT STATEMENT Optimizer=ALL_ROWS (Cost=152 Cardinality=17 Bytes=2193)
    NESTED LOOPS (Cost=152 Cardinality=17 Bytes=2193)
    NESTED LOOPS (Cost=152 Cardinality=17 Bytes=2125)
    MERGE JOIN (CARTESIAN) (Cost=149 Cardinality=17 Bytes=1785)
    HASH JOIN (Cost=2 Cardinality=1 Bytes=49)
    FIXED TABLE (FULL) OF X$KSPPI (TABLE (FIXED)) (Cost=1 Cardinality=1 Bytes=31)
    FIXED TABLE (FULL) OF X$KSPPCV (TABLE (FIXED)) (Cost=1 Cardinality=1897 Bytes=34146)
    BUFFER (SORT) (Cost=148 Cardinality=502 Bytes=28112)
    VIEW OF DBA_TABLESPACE_USAGE_METRICS (VIEW) (Cost=147 Cardinality=502 Bytes=28112)
    SORT (UNIQUE) (Cost=147 Cardinality=502 Bytes=19122)
    UNION-ALL
    SORT (AGGREGATE) (Cardinality=1 Bytes=8)
    TABLE ACCESS (BY INDEX ROWID) OF RECYCLEBIN$ (TABLE) (Cost=4 Cardinality=389 Bytes=3112)
    INDEX (RANGE SCAN) OF RECYCLEBIN$_TS (INDEX) (Cost=1 Cardinality=388)
    SORT (AGGREGATE) (Cardinality=1 Bytes=14)
    FIXED TABLE (FULL) OF X$KTFBHC (TABLE (FIXED)) (Cost=0 Cardinality=1 Bytes=14)
    SORT (AGGREGATE) (Cardinality=1 Bytes=8)
    TABLE ACCESS (BY INDEX ROWID) OF RECYCLEBIN$ (TABLE) (Cost=4 Cardinality=389 Bytes=3112)
    INDEX (RANGE SCAN) OF RECYCLEBIN$_TS (INDEX) (Cost=1 Cardinality=388)
    SORT (AGGREGATE) (Cardinality=1 Bytes=14)
    FIXED TABLE (FULL) OF X$KTFBHC (TABLE (FIXED)) (Cost=0 Cardinality=1 Bytes=14)
    HASH (GROUP BY) (Cost=89 Cardinality=500 Bytes=19000)
    MERGE JOIN (Cost=87 Cardinality=500 Bytes=19000)
    TABLE ACCESS (CLUSTER) OF TS$ (CLUSTER) (Cost=86 Cardinality=426 Bytes=9372)
    INDEX (FULL SCAN) OF I_TS# (INDEX (CLUSTER)) (Cost=1 Cardinality=1)
    SORT (JOIN) (Cost=1 Cardinality=501 Bytes=8016)
    FIXED TABLE (FULL) OF X$KTTEFINFO (TABLE (FIXED)) (Cost=0 Cardinality=501 Bytes=8016)
    HASH (GROUP BY) (Cost=52 Cardinality=1 Bytes=38)
    NESTED LOOPS (Cost=50 Cardinality=1 Bytes=38)
    FIXED TABLE (FULL) OF X$KTTEFINFO (TABLE (FIXED)) (Cost=0 Cardinality=251 Bytes=4769)
    TABLE ACCESS (CLUSTER) OF TS$ (CLUSTER) (Cost=1 Cardinality=1 Bytes=19)
    INDEX (UNIQUE SCAN) OF I_TS# (INDEX (CLUSTER)) (Cost=1 Cardinality=1)
    HASH (GROUP BY) (Cost=5 Cardinality=1 Bytes=84)
    HASH JOIN (Cost=3 Cardinality=1 Bytes=84)
    NESTED LOOPS
    NESTED LOOPS (Cost=3 Cardinality=1 Bytes=65)
    HASH JOIN (Cost=2 Cardinality=1 Bytes=49)
    FIXED TABLE (FULL) OF X$KSPPI (TABLE (FIXED)) (Cost=1 Cardinality=1 Bytes=31)
    FIXED TABLE (FULL) OF X$KSPPCV (TABLE (FIXED)) (Cost=1 Cardinality=1899 Bytes=34182)
    INDEX (UNIQUE SCAN) OF I_TS1 (INDEX (UNIQUE)) (Cost=1 Cardinality=1)
    TABLE ACCESS (BY INDEX ROWID) OF TS$ (CLUSTER) (Cost=1 Cardinality=1 Bytes=16)
    FIXED TABLE (FULL) OF X$KTTEFINFO (TABLE (FIXED)) (Cost=0 Cardinality=251 Bytes=4769)
    TABLE ACCESS (BY INDEX ROWID) OF TS$ (CLUSTER) (Cost=1 Cardinality=1 Bytes=20)
    INDEX (UNIQUE SCAN) OF I_TS1 (INDEX (UNIQUE)) (Cost=1 Cardinality=1)
    FIXED TABLE (FIXED INDEX) OF X$KCFISTSA (ind:1) (TABLE (FIXED)) (Cost=0 Cardinality=1 Bytes=4)
    My question is two fold... does anybody know where in OEM you can control the execution of this query? I would like to reduce the frequency it is run, or if that is not a good idea does anybody have any ideas from a tuning perspective?
    Ignite is reporting 1,440 executions, 621,776,455 buffer gets, and 2 hours of CPU wait time per day.
    Thanks in advance,
    Zack

    A typical question for this forum.
    We use Oracle, we can't remember which version, and we can't be bothered to post it.
    We don't know Oracle, so we use a third party product (Ignite from Confio) to perform redundant monitoring on our databases, which is already being performed by Oracle Enterprise Manager, for free.
    Instead of trying to use the products which come with Oracle, we would like to wreck functionality, by tampering with things like frequency, and/or even adjusting Oracle provided queries, consequently invalidating our support contract for Oracle.
    And, no, we are not aware, provided the database is doing nothing, queries like this one will automatically surface in the list of top <n> queries.
    I would suggest you start to learn Oracle and dump Ignite. It is of no use to monitor your database with two tools, and OEM is fully integrated in Oracle.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Can not open ics files

    I am having a problem accepting calendar invites unless I enable a gmail calendar instead of the default calendar which I am syncing with outlook 2010 on the pc using windows 7. Has anyone else run in to this? what is the workaround? Thanks Mark

  • New g/l concept

    hi sap masters, i have some doubts belongs to new g/l concept. 1) is it different special g/l and new g/l 2) parrlel currancy is in the part of new g/l 3) is leading ledger max having 3 currancy? 4)if non leading ledgder how may max currencies we mai

  • Creating greyscale PDF's from coloured documents?

    When creating a Microsoft Publisher document (2003 to 2014 versions) to create a greyscales PDF by selecting Print: Adobe PDF AND having selected print as BLACK & WHITE, some clipart, shapes, lines and wordart remain in colour.  Is there a way to sto

  • Populating Text Field from Multi Checkboxes

    Need help with formula.  Not sure whether or not I should be using FormCalc or Javascript as I am not extremely familiar with either.  I have a form that has three checkboxes (Box1, Box2, & Box3) that need to auto populate a text field (EmpAck).  I h

  • CONVERSION MS WORD TO ACROBAT 8 ?

    This question is about my running Acrobat 8.1.4 under Windows 7 Ultimate - 64 bit.  Under Win XP Pro, I have no trouble converting a .doc file to .pdf by using the Create PDF feature.  In Win 7, however, I get a message "Missing PDFMaker Files" and "