Author | Topic: memory consumption | |
---|---|---|
Simone Degl'Innocenti | memory consumption on Fri, 29 Mar 2002 10:21:54 +0100 Hello We made an app with xbase and ASINET that is on the CLIENT / SERVER samples of sockets, the SERVER part should reside on an internet server and should obviously wait for client connections. This works but with the task manager of win2000 we see that there is a memory consumption for every client connection and this memory is never released... so the memory used by the server app increases until we restart the app. Is there something to check to avoid this and to have the memory use stable or to release the memory after a client connection? We observed also that if we minimize the window of the server app (is XbpCRT()) a lot of memory is released. Thanks for the help Simone | |
Andreas Herdt | Re: memory consumption on Tue, 02 Apr 2002 11:10:36 +0200 If you have purchased a subscription, you might use the memwatch to track down memory leaks. Beside this, some lines of code would be very helpfull to demonstrate the problem. By the way, I not convinced yet it is a memory leake you are observing. When a Xbase++ application is started it is normal that memory usage increases. This is due to the fact that there is a memory menager working in the background which is requesting resources from the operating system and which is not releasing these resources as soon as they are no longer needed. -- Andreas Herdt Alaska Software Technology AG ------------------------------------------------------------- Technical Support EMEA: mailto:support@de.alaska-software.com Technical Support APRA: mailto:support@us.alaska-software.com News Server: news://news.alaska-software.com Homepage: http://www.alaska-software.com ------------------------------------------------------------- "Simone Degl'Innocenti" <hot@albalog.it> schrieb im Newsbeitrag news:3ca4315a$1@asgcom.alaska-software.com... > Hello > > We made an app with xbase and ASINET that is on the CLIENT / SERVER samples > of sockets, the SERVER part should reside on an internet server and should > obviously wait for client connections. This works but with the task manager > of win2000 we see that there is a memory consumption for every client > connection and this memory is never released... so the memory used by the > server app increases until we restart the app. Is there something to check > to avoid this and to have the memory use stable or to release the memory > after a client connection? > > We observed also that if we minimize the window of the server app (is > XbpCRT()) a lot of memory is released. > > Thanks for the help > > Simone > > > | |
Simone Degl'Innocenti | Re: memory consumption on Tue, 02 Apr 2002 13:14:48 +0200 I have professional subscription...but I can't find the memwatch on the CD.. where is it? For a sample you can look at standard socket samples of ASINET ver 1.7 if you run CLIENT and SERVER on same computer (win2000) and open the win 2000 TASK MANAGER in TASK MANAGER you see that the MEMORY utilized by the CLIENT remains more or less the same (6376KB on my machine) but the SERVER increases the MEMORY USED every time the client request a record.. after a while the memory decreases but is HIGHER than the memory used when the SERVER starts. If you minimize the SERVER window a lot of memory is freed but I think this is a standard behaviour of Windows. Thanks for the help Simone "Andreas Herdt" <ah@de.alaska-software.com> ha scritto nel messaggio news:3ca97596@asgcom.alaska-software.com... > If you have purchased a subscription, you might use the memwatch to track down memory leaks. > Beside this, some lines of code would be very helpfull to demonstrate the problem. > > By the way, I not convinced yet it is a memory leake you are observing. When a Xbase++ application is started > it is normal that memory usage increases. This is due to the fact that there is a memory menager working in > the background which is requesting resources from the operating system and which is not releasing these > resources as soon as they are no longer needed. > > > -- > > > Andreas Herdt > Alaska Software Technology AG > > ------------------------------------------------------------- > Technical Support EMEA: mailto:support@de.alaska-software.com > Technical Support APRA: mailto:support@us.alaska-software.com > News Server: news://news.alaska-software.com > Homepage: http://www.alaska-software.com > ------------------------------------------------------------- > > > > > "Simone Degl'Innocenti" <hot@albalog.it> schrieb im Newsbeitrag news:3ca4315a$1@asgcom.alaska-software.com... > > Hello > > > > We made an app with xbase and ASINET that is on the CLIENT / SERVER samples > > of sockets, the SERVER part should reside on an internet server and should > > obviously wait for client connections. This works but with the task manager > > of win2000 we see that there is a memory consumption for every client > > connection and this memory is never released... so the memory used by the > > server app increases until we restart the app. Is there something to check > > to avoid this and to have the memory use stable or to release the memory > > after a client connection? > > > > We observed also that if we minimize the window of the server app (is > > XbpCRT()) a lot of memory is released. > > > > Thanks for the help > > > > Simone > > > > > > > > |