how to truncate the logs without kill memcached

Jeremy Ashcraft jashcraft at edgate.com
Mon Oct 22 21:45:06 UTC 2007


if you're in a pinch, you could always echo an empty string into the log 
file as long as you're not concerned about retaining its contents....

echo '' > memcached.log

Steven Grimm wrote:
> No, and that's nothing to do with memcached; it's true of any program 
> where you're redirecting the output directly into a file.
>
> Try piping output to some helper program that opens a new logfile 
> every so often. There are several such available (cronolog springs to 
> mind).
>
> Running with -vv in any kind of production environment is unusual. 
> What do you use all that information for, out of curiosity?
>
> -Steve
>
>
> Sheldon Chen wrote:
>> I have used memcached -d -m 1024 -vv 2>memcached.log to start the
>> memcached and found that the log file memcached.log grows too fast.  Is
>> there a way to remove the logs without killing the memcached first?
>>
>> thanks,
>> sheldon
>>   
>
>


-- 
jeremy ashcraft
jashcraft at edgate.com
253.853.7133x228



More information about the memcached mailing list