Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LAPI Threads hanging when adding documents thru LAPI

Status
Not open for further replies.

chsatish

Programmer
Jul 22, 2003
9
US
I have built a custom explorer kind of web interface which exposes the folder structer in livelink. Users can add files to the folders from this interface. It works great with sequential usage of the interface. If 10 users simultaneously hitting the interface to upload the document (size of ~3MB), the threads are hanging and not responding to the requests. In the logs I found this error

com.opentext.api.LLIOException: Could not write bytes to socket

Any insight into this is highly appreciated.
 
how many threads do you run on cgi,is this any different if you are running livelink thru llisapi,provided you are a IIS user.Lapi is equivalent to a user session thru HTTP so in your lapi code if you have lot of procesing logic you will consume time.Simple benchmarks can be achieved by using the WantSummaryTimings=true in opentext.ini file.It will burn a csv file for every thread and you may be able to pinpoint which calls are consuming a lot of overhead.


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Hi Appnair,

Thanks for your quick input. Yes we are running the Livelink instance on IIS. We have 3 threads open for this service. All I'm doing is open the session with admin account, impersonate with the userid who logged in and then upload the document to the location selected. I guess this is pretty normal usage of LAPI functions.

Will ask our admins to enable the summary timings and see what it says?
 
Three is really low.It is the default livelink configuration.Bumping it upto 4 will give you a two fold increase(Sorry the math is not correct,thread tuning is becoming not an exact science),from my experience.If you give too many threads then it will just waste resources,you may have to benchmark your instance correctly.In our instance we have load balanced LLservers(2) and load balanced LAPI servers.This architechture is called vertical scaling.You have several instances of llserver running on the same box albeit different ports.Since LAPI traffic isolated our http users won't know the difference.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top