Topic
  • 4 replies
  • Latest Post - ‏2013-12-18T09:18:47Z by sumany
Euskalduna
Euskalduna
1 Post

Pinned topic fetchInstance takes too long to respond

‏2013-11-05T18:15:19Z |

We have dealing with a performance issue when connecting to FileNet, from IBM BPM 7.5.

Our situation is that teh first time we connect to FileNet it takes around 80 seconds to respond, but then, during many minutes rsponse time is OK (bellow 200 ms).

This is the code we are using....

---

public void establishConnection(String userName, String password, String stanza, String uri) {   
con = Factory.Connection.getConnection(uri);   
Subject sub = UserContext.createSubject(con,userName,password,stanza);   
uc.pushSubject(sub);   logger.info("fectchDomain");   
dom = fetchDomain();   logger.info("get name");   
domainName = dom.get_Name();   
ost = getOSSet();   
isConnected = true;   
logger.info("establish connection END");}

public Domain fetchDomain() {   
dom = Factory.Domain.fetchInstance(con, null, null);   
return dom;}

---

We have also tried to change this by "getInstance" but got the same response time.

Versions used are IBM BPM 7.5 (client side, using Jace.jar from version 5.1), and Filenet 5.1 (server side).

The connection is through web services, and I am attaching a sample request (and response) which takes too long.

Any help?

Attachments

Updated on 2013-11-05T18:58:13Z at 2013-11-05T18:58:13Z by Euskalduna
  • Sunorth
    Sunorth
    16 Posts

    Re: fetchInstance takes too long to respond

    ‏2013-11-08T18:24:14Z  

    Just guess, maybe it took long time on login rather than fetching instance?

  • null
    null
    1 Post

    Re: fetchInstance takes too long to respond

    ‏2013-11-12T19:23:05Z  
    • Sunorth
    • ‏2013-11-08T18:24:14Z

    Just guess, maybe it took long time on login rather than fetching instance?

    something wrong with jaas authentication?

  • Sunorth
    Sunorth
    16 Posts

    Re: fetchInstance takes too long to respond

    ‏2013-12-11T23:38:37Z  

    Do you really need to fetch the whole domain over WSI? Maybe you want to use "getInstance" rather than "fetchInstance" in your fetchDomain method.

  • sumany
    sumany
    2 Posts

    Re: fetchInstance takes too long to respond

    ‏2013-12-18T09:18:47Z  
    • Sunorth
    • ‏2013-12-11T23:38:37Z

    Do you really need to fetch the whole domain over WSI? Maybe you want to use "getInstance" rather than "fetchInstance" in your fetchDomain method.

    please do not use object store set method which will be time consuming and it will fetch entire object stores set from the domain object

    ost = getOSSet();

    In case if required try to get the ObjectStore object directly instead using the object store set.. 

    ObjectStore objectStore = Factory.ObjectStore.fetchInstance(domain,objectStoreName, null);