Martin Sondergaard
2014-09-24 18:43:41 UTC
I have written a Prolog program that generates HTML pages,
and sends them out to the web.
This uses the Prolog server, "http_server".
Unfortunately if nobody uses the website for a few hours,
or a few days, the Prolog program will seem to fall asleep.
I mean it becomes very slow to respond, to the first input.
Then after it has responded once, it works fast again, its back to
normal speed.
Is there a way to stop the program slowing down?
I wonder if this is caused by the program being automatically
shifted out of RAM, into swap space.
I am using Fedora Linux, so if there is no Prolog command
to solve this problem, perhaps it can be done using a Linux command.
--
Martin Sondergaard,
London, U.K.
and sends them out to the web.
This uses the Prolog server, "http_server".
Unfortunately if nobody uses the website for a few hours,
or a few days, the Prolog program will seem to fall asleep.
I mean it becomes very slow to respond, to the first input.
Then after it has responded once, it works fast again, its back to
normal speed.
Is there a way to stop the program slowing down?
I wonder if this is caused by the program being automatically
shifted out of RAM, into swap space.
I am using Fedora Linux, so if there is no Prolog command
to solve this problem, perhaps it can be done using a Linux command.
--
Martin Sondergaard,
London, U.K.