Hi Ferdindao,

I do not know what your process does. - but -
It does sound like there is an issue with memory.
Others have responded with ideas about changing cache settings, I would 
follow there suggestions, too.

As I suggested, below, it is possible to create a memory leak - a 
situation where 4D (your application) requests memory form 4D/system, 
does stuff, finishes but does NOT return all of the requested memory to 
4D/System. This is called a memory leak.

On a Mac, Safari and Firefox (windows too?) both have issues like this.
ex: open one of these programs memory usage is say 100 megs
You open 10, or 30, or 50 tabs
close all the tabs
memory usage might be 250 megs

repeat this enough times and your system slows down, or the application 
crashes.

for 4D, as I said below, you need to make sure at the end of each 
process (as it quits) the following items are cleared/emptied/removed 
from memory; this may not be exhaustive, and if not others i'm sure 
will chime in  :)
(it is often best to clear these items as you finish using them, rather 
then waiting until the end)
- sets
- selections
- arrays (locals are supposed to be cleared for you)
- Lists
- hierarchal lists (be sure to clear lowest level to highest)
- named selections
- and turn off Event, and Err call methods

if you have done the cache changes others suggest, and insure that all 
of the above items are cleared, I would expect your slow downs to go 
away.



On Fri, 4 Nov 2016 23:51:23 +0100, stardata.info wrote:
> Chip,
> 
> The issue regard one process, but you must consider that i close and 
> open the process every time.
> 
> The same process after restarted the application work fine, but if i 
> open the process after many time, that the application work, the same 
> process is more slow.
> 
> Thanks
> /Ferdinando/
> 
> Il 04/11/2016 20:00, 4d_tech-requ...@lists.4d.com ha scritto:
>> Message: 2
>> Date: Fri, 4 Nov 2016 10:37:41 -0400
>> From: Chip Scheide<4d_o...@pghrepository.org>
>> To: 4D iNug Technical<4d_tech@lists.4d.com>
>> Subject: RE: Progressive slow
>> Message-ID:<20161104103741651171.cf01d...@pghrepository.org>
>> Content-Type: text/plain; charset=us-ascii
>> 
>> Dennis -
>> I agree with you on the memory issue.
>> 
>> However, the initial question was/is:
>> Why are searches quick(er?) after a restart and slow down after some
>> period of server up time.
>> This is not/should not be a client side issue - it is most likely a
>> cache issue...
>> 
>> However there is one other thing that no one has pointed out -
>> it could be that OP's 4D code has a memory leak - i.e. the code is
>> using memory for some action(s) and NOT releasing that memory back to
>> 4D/system.  This could also causes a restricted memory issue which
>> could force 4D to start using the disk (virtual memory/paging) during a
>> query.
>> 
>> To fix this problem (memory leak) will require some code analysis, and
>> likely some time.
>> To insure that memory is returned (and yes I know 4D does a much better
>> job at this now).
>> clear the following items at the end of a process, if not when the code
>> is finished using it.
>> (local arrays are supposed to be cleared automagically).
>> - arrays (set to size zero or clear variable)
>> - sets (clear set)
>> - named selections (clear named selection)
>> - Lists (hierarchal especially) and Transient lists (created by Array
>> to list) - Clear List, be sure to clear all levels of an hierarchal
>> list)
>> - selections
>> - turn off On Err call, On event call
>> 
>> On Tue, 1 Nov 2016 21:06:29 +0000, Dennis, Neil wrote:
>>>>With a 4GB machine you shouldn't use more than 2GB cache memory for
>>>>4D server.
>>>>
>>>>You can consider a bigger/faster computer to help processing speed...
>>>>often this is the easiest to increase performance.
>>>>
>>>>If you watch the server processes when there is a slowdown or when it
>>>>starts to get slower, is the CPU, network, or disk higher than normal?
>>>>
>>>>A lot of 4D server performance can be controlled in the way that 4D
>>>>code is written. Try to figure out what the client is doing with the
>>>>server is slow. The watch pane can tell you a lot about the code that
>>>>is executing when you are seeing slowness.
>>>>
>>>>There are a lot of things that can cause slow performance... Once you
>>>>figure out what code is causing the slowness see if you can optimize
>>>>it for server.
>>>>
>>>>Neil
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to