1 Apr 2006 07:20
Re: possible memory leak with syslog feature in log4cxx-0.9.8.tar.gz?
Curt Arnold <carnold <at> apache.org>
2006-04-01 05:20:06 GMT
2006-04-01 05:20:06 GMT
On Mar 31, 2006, at 1:19 PM, Min Tjong wrote: > Hello, > > > > First of all, I apologize for this rather lengthy email. I am new > to log4cxx and have recently encountered a memory leak issue with > log4cxx-0.9.8.tar.gz. I downloaded it fromhttp:// > littletux.homelinux.org/log4cxx and started playing with the syslog > feature > > by modifying the console example code provided in the package. > Basically the configure function is modified to use SyslogAppender > and PatternLayout and the main function is modified to include a > while loop with a sleep statement between logging occurrences. The > entire modified code is presented below. > > > > Running the program on Windows XP, I am experiencing a memory leak > of approximately 120 bytes on each logging occurrence. > > I wonder if anybody has experienced something similar to this? > After some investigation, I found out that the leak was caused by > the call to apr_sockaddr_info_get in the DatagramSocket::send > (DatagramPacketPtr& p) method (datagramsocket.cpp). At this point > I wonder if I am missing something. Any comment/help would be much > appreciated.(Continue reading)
One other thing.. the following link seems to be broken:
>
RSS Feed