RE: Time to create a new process instance

"Dahl, Greg (BLM) - contr" <[email protected]> Tue, 16 Aug 2005 16:32:05 -0500
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <A8155E0D38B9D84D88EAC58C2D8F47BA061EA6DD@blmms060.accounts.root.corp>
Unfortunately we're storing less than 200 characters into the Map - all
of it String data.  I guess I'm going to have to start to put some
timing into the Shark method to find out where its taking so long.
 

-----Original Message-----
From: Neville van Deventer [mailto:[email protected]] 
Sent: Tuesday, August 16, 2005 4:23 PM
To: [email protected]
Subject: RE: [shark] Time to create a new process instance


I Put a few more timers 
 
1 process.set_process_context Time
2 process.start Time

3 process.get_process_context Time
 
Law Package I Get this
 
*** SET_CONTEXT TIME WAS 16ms ***
*** START PROCESS TOOK 718ms ***
*** GET_CONTEXT TIME WAS 32ms ***
 
The result recieved here is about a 1K XML File
 
Next the BCO Package
 
*** SET_CONTEXT TIME WAS 16ms ***
*** START PROCESS TOOK 1078ms ***
*** GET_CONTEXT TIME WAS 31ms ***
 
Here the result is a 16K XML File, This XML File gets sent back to
Shark, and get's put on the Process context again (modified of course)
but still about 16K in Size .....
 
*** SET_CONTEXT ACTIVITY TIME WAS 46ms ***
 
 
Here is the Question, How Big is the Data you are placing on the Context
??
( Flying guess is that it takes longer the more data there is,
[shouldn't be thou])
 
Neville
 
 

  _____  

From: Dahl, Greg (BLM) - contr [mailto:[email protected]] 
Sent: 16 August 2005 10:55 PM
To: [email protected]
Subject: RE: [shark] Time to create a new process instance


I'm creating the process context map in the same manner.  Its
consistently taking 12 to 15 seconds to set_process_context().

-----Original Message-----
From: Neville van Deventer [mailto:[email protected]] 
Sent: Tuesday, August 16, 2005 3:34 PM
To: [email protected]
Subject: RE: [shark] Time to create a new process instance


Hi Greg,
 
Don't have any suggestions .......
 
But ....  How are you setting the Process Variables etc ....
 
Here is how I'm doing it (Small snippet, I'm sure you can guess the
surrounding code)
// Shark Message is a Object with the message to/from the MVC, Nothing
but strings
// However I Have used my own objects on the context and it worked fine
as well
// sConn is the logged in connection of the user
 
   WfProcess userProcess = sConn.createProcess(pkgId,
sharkMessage.getProcessname());
 
      Map messageData = null;
   try {
    messageData = userProcess.process_context();
    if( messageData.containsKey( "pIn" ) ){
        messageData.put("pIn", sharkMessage.getRequest() );
    }
    if( messageData.containsKey( "pUser" ) ){
     messageData.put("pUser", sharkMessage.getUsername() );
    }
       userProcess.set_process_context( messageData );
   } catch (Exception e) {}
 
 
Don't know what other suggerstions to make Greg ...
 
 
Neville

  _____  

From: Dahl, Greg (BLM) - contr [mailto:[email protected]] 
Sent: 16 August 2005 10:21 PM
To: [email protected]
Subject: RE: [shark] Time to create a new process instance


Well, I spoke too soon.
 
Here are sample numbers that I'm seeing (milliseconds)
 
*** BEFORE CREATE WORKFLOW PROCESS                            1124223
373  105
*** AFTER  CREATE WORKFLOW PROCESS                            1124223
381  116
*** AFTER  create context map BEFORE set_process_context      1124223
381  397
*** AFTER  set_process_context BEFORE START                   1124223
395  066
*** AFTER  start BEFORE disconnect                            1124223
400  564
*** AFTER  disconnect                                         1124223
400  674
 
Its only taking 5 to 9 seconds to create the process.  The bulk of the
time (in this case it was 14 seconds) seems to be taken up by the
set_process_context call on the new process.  This seems to make no
sense.  Any suggestions.
 




-----Original Message-----
From: Neville van Deventer [mailto:[email protected]] 
Sent: Tuesday, August 16, 2005 2:46 PM
To: [email protected]
Subject: RE: [shark] Time to create a new process instance


Hi Greg,
 
This does seem to be a bit long, fpr me to start my processes etc. takes
< 5 seconds (This is for the MVC To connect to the sharkserver over the
wire, for Shark Server to slam a few variables on the process context,
start the process, run the first few activities till it hits a manual
start, and return the manual start activity back to the MVC).
 
I Had a problem where this was taking up to 120seconds to do, and we
traced it down to a network issue of the network cards being forced to
100Mb, when we set it to Auto-Detect, the performace improved
substancially.
 
Just a bit of background info for you.
 
Personnally I Think that's a bit long, however, what are the 5
activities doing?? (They are not perhaps lingering on some time).
 
Neville van Deventer
 
PS: If you are running anything over the network, check your
connectivity. ( The network stuff took us about a week to figure out )

  _____  

From: Dahl, Greg (BLM) - contr [mailto:[email protected]] 
Sent: 16 August 2005 09:32 PM
To: [email protected]
Subject: [shark] Time to create a new process instance


I'm running Shark 1.1 using a Oracle 8i (I've also tried 9i) for a
database.  Its taking approximately 30 seconds to create a new process
and return using the workflowConnection.createProcess(package_id,
process_id);  method.
 
Our process is fairly simple and only have five activities.  We're
setting about 10 process context variables.  Is this typical for most
other people's experiences?  That seems like an awful lot of time to
create a process?  I haven't done any database tuning since running the
Shark configure when we setup the database.
 
Any feedback on your experience would be appreciated.
 
Greg




  _____  

******* Confidentiality Notice *******
This email, its electronic document attachments, and the contents of its
website linkages may contain confidential health information. This
information is intended solely for use by the individual or entity to
whom it is addressed. If you have received this information in error,
please notify the sender immediately and arrange for the prompt
destruction of the material and any accompanying attachments.
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws