Re: Prolog, memory management and memory leaks
- From: Bart Demoen <bmd@xxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Jan 2008 09:02:59 +0100
A.L. wrote:
1. I am using SICStus,
2. I have application written long ago, in SICStus 3.10.2. It is
embedded in J++ (Microsoft dialect of Java, now known as J#) using
in-process DLL that was implemented using SICStus Visual Basic
interface. This application runs in production environment, 7/24,
since 2004 without any problems
3. The application mentioned above was obsoleted and rewritten in Sun
Java and SICStus 3.12.8. Since the official interface to SICStus is
now Prolog Beans, I replaced JNI by Prolog Beans. However, the Prolog
code was not changed at all. This was as simple as adding a layer of
code that registers predicates for Prolog Beans.
This application crashes after about 50,000 calls to the server
4. New application was written; much larger and more complex, also
with Prolog Beans interface. This one crashes after 200 calls to the
server.
Have you tried looking at the output from statistics after 50 and after
a 100 calls to the server ?
This will at least uncover any growing "normal" Prolog execution stacks/heaps.
But maybe it is just a leak in the SICStus Prolog Beans which you need to make
SICS aware off, or once you can locate it, work around it ?
Cheers
Bart Demoen
.
- Follow-Ups:
- Re: Prolog, memory management and memory leaks
- From: A . L .
- Re: Prolog, memory management and memory leaks
- References:
- Prolog, memory management and memory leaks
- From: A . L .
- Re: Prolog, memory management and memory leaks
- From: bart demoen
- Re: Prolog, memory management and memory leaks
- From: A . L .
- Prolog, memory management and memory leaks
- Prev by Date: Re: Prolog, memory management and memory leaks
- Next by Date: Re: Prolog, memory management and memory leaks
- Previous by thread: Re: Prolog, memory management and memory leaks
- Next by thread: Re: Prolog, memory management and memory leaks
- Index(es):
Relevant Pages
|
|