BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DCOM application server memory grow

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Milos
Guest





PostPosted: Tue Jun 28, 2005 3:43 pm    Post subject: DCOM application server memory grow Reply with quote



Hi all,
we have 3-thier application (database<->application server<->clients) using
Oracle, BDE and DCOM.
Approximately 40 clients.

Application server size grows constantly until it frezes . I presume that
some memory doesn't get free when clients disconnect from aplication server.
I run a simple test just start and stop client application and some memory
does not get free on application server (i examine memory with procexp
tool). I have checked the server code for any unfree memory (for example: if
i would forgot to free some stringlist in try - finally block) but haven't
found it.

Has anyone had similar expiriance?

Regards, Milos


Back to top
Robert Schieck (TeamB)
Guest





PostPosted: Wed Jun 29, 2005 11:31 pm    Post subject: Re: DCOM application server memory grow Reply with quote



Milos wrote:

Quote:
Has anyone had similar expiriance?

It has been many years since I did this..... We used midas for it...

Are you careful to close your queries and database connections on your
middle tier ?

hth

--
Rob Schieck
TeamB

Back to top
Milos
Guest





PostPosted: Thu Jun 30, 2005 8:09 am    Post subject: Re: DCOM application server memory grow Reply with quote



Hi,

On Application server we have TDataBase property KeepConnection set to True.
I'am not sure how
remote data module handle threads.
Our client is an MDI form (exe) that on stratup connects to application with
TDCOMConnection.

Forms are fsMDIchild and are located in seperated dll-s. Main client
application starts dll-s. So each dll connects to application server.

When we close dll or main exe, we have event on destroy datamodule where we
iterate through components and if it's TClientDataSet then we close it. So
we close all connections on client before destroying it.

Does that close querys on application server ?

Regards Milos

<Robert Schieck (TeamB)> wrote

Quote:
Milos wrote:

Has anyone had similar expiriance?

It has been many years since I did this..... We used midas for it...

Are you careful to close your queries and database connections on your
middle tier ?

hth

--
Rob Schieck
TeamB



Back to top
Milos
Guest





PostPosted: Mon Jul 04, 2005 7:36 am    Post subject: Re: DCOM application server memory grow Reply with quote

I have added on destroy remotedatamodule event where I close all querys
(TQuery), session (TSession) and connection to database (TDataBase), but the
server memory is still growing.

<Robert Schieck (TeamB)> wrote

Quote:
Milos wrote:

Has anyone had similar expiriance?

It has been many years since I did this..... We used midas for it...

Are you careful to close your queries and database connections on your
middle tier ?

hth

--
Rob Schieck
TeamB



Back to top
Robert Schieck (TeamB)
Guest





PostPosted: Wed Jul 06, 2005 12:28 pm    Post subject: Re: DCOM application server memory grow Reply with quote

Milos wrote:

Quote:
I have added on destroy remotedatamodule event where I close all
querys (TQuery), session (TSession) and connection to database
(TDataBase), but the server memory is still growing.

I really don't have any other ideas. With the BDE you did have to make
sure you commited the transaction, close the queries and close the
database connection.

IIRC they would have to reboot the midas server every couple of days.

--
Rob Schieck
TeamB

Back to top
Paul McKenzie
Guest





PostPosted: Thu Jul 14, 2005 1:07 am    Post subject: Re: DCOM application server memory grow Reply with quote

Robert Schieck (TeamB) wrote:
Quote:
Milos wrote:


I have added on destroy remotedatamodule event where I close all
querys (TQuery), session (TSession) and connection to database
(TDataBase), but the server memory is still growing.


I really don't have any other ideas. With the BDE you did have to make
sure you commited the transaction, close the queries and close the
database connection.

IIRC they would have to reboot the midas server every couple of days.

We had memory issues with our AppServer (D7 development) the memory grew and we received

"Out-Of-Memory" exceptions, before all memory was actually used.
One of the big fixes was using the D2005 Midas.dll.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.