Originally posted by: sarujanai
When redirecting stderr to a log file we see a memory leak on AIX.
Further investigation showed that the following simple test program reproduces the problem when compiled and run on AIX redirecting the output to a file, eg:
./test &> log.txt
-------------------------------------------------------
#include <unistd.h>
#include <stdio.h>
int main()
{
while (1)
{
write(2, "Testing!\n", 9);
}
}
-------------------------------------------------------
You can watch the memory leaking with "svmon -P <pid>" and see the Inuse count go up and up.
Is this a known issue?