Primvs
Member
Hi!
I'm having major problem using TOracleSessionPool. I created Homogen. Session pool for Max. 25 Sessions.
It is being used in a service. Each time I get a request I acquire Session for this request using following code:
(FCS is Critical section)
The problem is, that when I get a time consuming request (OK, basically any request, it's just that I noticed it with time consuming request), new requests get stuck in "Result.Logon;" line, until the first request is completed.
Can you help me?
Primvs
I'm having major problem using TOracleSessionPool. I created Homogen. Session pool for Max. 25 Sessions.
It is being used in a service. Each time I get a request I acquire Session for this request using following code:
Code:
function TdmdData.aquireOraSession: TOracleSession;
begin
Result := Nil;
Try
FCS.Acquire;
Try
Result := TOracleSession.Create(Nil);
Result.ThreadSafe := False;
Result.AutoCommit := True;
Result.Pool := oraPool;
Result.Pooling := spInternal;
Result.Logon;
Except
On E:Exception Do Begin
logEvent(EventSourceApp,'aquireOraSession: '+E.Message,EVENTLOG_ERROR_TYPE,1,0);
Raise;
End;
End;
Finally
FCS.Release;
End;
The problem is, that when I get a time consuming request (OK, basically any request, it's just that I noticed it with time consuming request), new requests get stuck in "Result.Logon;" line, until the first request is completed.
Can you help me?
Primvs