Like i said in my other post, you can go back to using the file log method
and avoid that the file gets bigger with a cron job. For example you can
add a job that runs every 24 hours that would rename the ape.log file to
something like YYYY-MM-DD_HHHH.log
Ex: 2012-09-17_1301.log
On Sep 17, 2012 4:12 AM, "Nicolas Guibert" <[email protected]>
wrote:

> Hi Pablo,
>
> Many thanks for your reply.
>
> The problem with the standard file logging implementation is that log
> rotation does not work. My understanding is that the file is not closed and
> reopened when rotated. The file that is open by APE changes its name from
> log.txt to log.txt.1 then it becomes log.txt.2, etc. So the file keeps
> getting bigger and bigger. This makes it very difficult to use the logs
> when needed as I only have one huge file and not one per day as I would
> like.
>
> That's why I tried syslog but that does not seem to help much as the
> memory used by APE gets bigger and bigger until obviously APE crashes... I
> would much prefer if I did not need to restart APE every few days.
>
> I am not sure what version I am using, but it is very likely that it is
> the one that I mentionned in earlier posts, the one that was working fine
> with Mysql (1.0.8 maybe or some version with an 8 in any case). I have not
> updated lately for fear the Mysql would stop working. I have seen several
> threads on this issue so am not really keen on spending time dealing with
> Mysql again.
>
> Again many thanks. What do you think of this? Am I missing something?
>
>
>
> 2012/9/14 Pablo Tejada <[email protected]>
>
>> If you want to go back to the standard file logging implementation. You
>> can add a proper file rotation with a cron job. BTW which APE server build
>> are you using?
>>  On Sep 14, 2012 2:56 AM, "Nicolas" <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I have recently switched to syslog for my logs. It is great since I now
>>> have a proper log rotation (which was not possible with the standard file
>>> logging implementation)
>>>
>>> The problem is that I can see my aped process getting bigger and bigger.
>>> It looks that it is taking the exact same size as the logs.
>>>
>>> After one day of running my program, I already have 192m in Virt memory
>>> and 152 in Res.
>>>
>>> Not surprizingly my process crashed yesterday morning after a few days...
>>>
>>> Anything that can avoid that problem? It would be a shame to reload aped
>>> every day for that...
>>>
>>> Nicolas.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "APE Project" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/ape-project?hl=en
>>> ---
>>> APE Project (Ajax Push Engine)
>>> Official website : http://www.ape-project.org/
>>> Git Hub : http://github.com/APE-Project/
>>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "APE Project" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/ape-project?hl=en
>> ---
>> APE Project (Ajax Push Engine)
>> Official website : http://www.ape-project.org/
>> Git Hub : http://github.com/APE-Project/
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to