<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#0050d0">
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif";">The
only other case I can think that would cause this is an internal limit
in the
code that prevents it from using more than a certain amount, and that I
have no
clue about.<o:p></o:p></span></p>
<span
style="font-size: 10pt; font-family: "Helvetica","sans-serif"; color: rgb(31, 73, 125);">-possibly...but
how come the older versions of syslog-ng
work? Maybe a new addition to syslog-ng-3.0.<br>
</span>A likely case is that whatever structures syslog-ng uses for
parsing out config options grew in size. Like if the structure for a
'filter' config directive grew from 30 bytes to 36 bytes, and you have
that in your config hundreds of times, then its making it use a lot
more memory<span
style="font-size: 10pt; font-family: "Helvetica","sans-serif"; color: rgb(31, 73, 125);"></span>.
But thats just a theory.<br>
<br>
-Patrick<br>
<br>
<br>
Sent: Mon Nov 08 2010 17:57:04 GMT-0700 (Mountain Standard Time)<br>
From: Mukarram Syed <a class="moz-txt-link-rfc2396E" href="mailto:msyed@walmart.com"><msyed@walmart.com></a><br>
To: Syslog-ng users' and developers' mailing list
<a class="moz-txt-link-rfc2396E" href="mailto:syslog-ng@lists.balabit.hu"><syslog-ng@lists.balabit.hu></a> <br>
Subject: Re: [syslog-ng] memory exhausted in
/opt/syslog-ng/etc/syslog-ng.conf at line 5347
<blockquote
cite="mid:826FDB5E3069DF4CB486469FA92DC82A6B022ADB98@MAILCLUSTER01.corp.walmart.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:#0050D0;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:#0050D0;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:#0050D0;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif";">I
imagine a config that large has got to make syslog-ng really slow, and
I cant
imagine why it would need to be that large in the first place.<br>
</span><span style="color: rgb(31, 73, 125);">-its pulling syslog
info from about 1500
servers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif";">Do
you have any sort of ulimit in place controlling memory? (ulimit -m on
most
shells)</span><span style="color: rgb(31, 73, 125);"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"># ulimit
-m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Unlimited<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif";">Are
you actually running out of memory (watch top while the process is
starting
up)?<br>
</span><span style="color: rgb(31, 73, 125);">-I haven’t tried
that…it’s
a good idea though.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif";">The
only other case I can think that would cause this is an internal limit
in the
code that prevents it from using more than a certain amount, and that I
have no
clue about.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif"; color: rgb(31, 73, 125);">-possibly...but
how come the older versions of syslog-ng
work? Maybe a new addition to syslog-ng-3.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"># mukarram<o:p></o:p></span></p>
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>
[<a class="moz-txt-link-freetext" href="mailto:syslog-ng-bounces@lists.balabit.hu">mailto:syslog-ng-bounces@lists.balabit.hu</a>] <b>On Behalf Of </b>Patrick
H.<br>
<b>Sent:</b> Monday, November 08, 2010 4:41 PM<br>
<b>To:</b> Syslog-ng users' and developers' mailing list<br>
<b>Subject:</b> Re: [syslog-ng] memory exhausted in
/opt/syslog-ng/etc/syslog-ng.conf at line 5347<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif";">I
imagine a config that large has got to make syslog-ng really slow, and
I cant
imagine why it would need to be that large in the first place.<br>
Do you have any sort of ulimit in place controlling memory? (ulimit -m
on most
shells)<br>
Are you actually running out of memory (watch top while the process is
starting
up)?<br>
The only other case I can think that would cause this is an internal
limit in
the code that prevents it from using more than a certain amount, and
that I have
no clue about.<br>
<br>
-Patrick<br>
</span><br>
Sent: Mon Nov 08 2010 17:33:35 GMT-0700 (Mountain Standard Time)<br>
From: Mukarram Syed <a moz-do-not-send="true"
href="mailto:msyed@walmart.com"><msyed@walmart.com></a><br>
To: Syslog-ng users' and developers' mailing list <a
moz-do-not-send="true" href="mailto:syslog-ng@lists.balabit.hu"><syslog-ng@lists.balabit.hu></a>
<br>
Subject: Re: [syslog-ng] memory exhausted in
/opt/syslog-ng/etc/syslog-ng.conf
at line 5347 <o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I was
migrating from
syslog-ng-1.6 to a new version of syslog-ng in a veritas cluster. The
original config file has >5000 lines and we want to keep it that way
since
it’s Production.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I got
around it using
syslog-ng-2.0 but 3.0 did not work due to this error.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Thanks
for the response.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"># mukarram</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<div>
<div
style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
<a moz-do-not-send="true"
href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>
[<a moz-do-not-send="true"
href="mailto:syslog-ng-bounces@lists.balabit.hu">mailto:syslog-ng-bounces@lists.balabit.hu</a>]
<b>On Behalf Of </b>Patrick H.<br>
<b>Sent:</b> Monday, November 08, 2010 4:31 PM<br>
<b>To:</b> Syslog-ng users' and developers' mailing list<br>
<b>Subject:</b> Re: [syslog-ng] memory exhausted in
/opt/syslog-ng/etc/syslog-ng.conf at line 5347</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Helvetica","sans-serif";">You
seriously have a config thats 5000+ lines??? May I ask why?<br>
<br>
-Patrick<br>
</span><br>
Sent: Mon Nov 08 2010 16:54:45 GMT-0700 (Mountain Standard Time)<br>
From: Mukarram Syed <a moz-do-not-send="true"
href="mailto:msyed@walmart.com"><msyed@walmart.com></a><br>
To: '<a moz-do-not-send="true" href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>'
<a moz-do-not-send="true" href="mailto:syslog-ng@lists.balabit.hu"><syslog-ng@lists.balabit.hu></a>
<br>
Subject: [syslog-ng] memory exhausted in
/opt/syslog-ng/etc/syslog-ng.conf at line 5347 <o:p></o:p></p>
<p class="MsoNormal">Hi ,<o:p></o:p></p>
<p class="MsoNormal">I am getting the following error when starting
syslog-ng.conf file which has more than 5000 lines in it and getting
the
following error:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"># service syslog-ng start<o:p></o:p></p>
<p class="MsoNormal">memory exhausted in
/opt/syslog-ng/etc/syslog-ng.conf at
line 5347.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">syslog-ng documentation: <a
moz-do-not-send="true"
href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><o:p></o:p></p>
<p class="MsoNormal">mailing list: <a moz-do-not-send="true"
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><o:p></o:p></p>
<p class="MsoNormal">
[FAILED]<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">When I truncate the file to < 5000 lines it
starts up
fine.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">This is running version
syslog-ng-3.0.8-1.rhel5.x86_64<o:p></o:p></p>
<p class="MsoNormal">Mailing list does not have any clues to it.<o:p></o:p></p>
<p class="MsoNormal">Anything in the syslog-ng.conf file that needs
to be done to
accept more lines? <o:p></o:p></p>
<p class="MsoNormal">Any ideas would be appreciated.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"># mukarram<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b>Mukarram Syed</b><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<pre> <o:p></o:p></pre>
<pre style="text-align: center;"><o:p> </o:p></pre>
<pre style="text-align: center;">
<hr align="center" size="4" width="90%">
</pre>
<pre style="text-align: center;"><o:p> </o:p></pre>
<pre style="text-align: center;"><o:p> </o:p></pre>
<pre style="text-align: center;"> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>______________________________________________________________________________<o:p></o:p></pre>
<pre>Member info: <a moz-do-not-send="true"
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><o:p></o:p></pre>
<pre>Documentation: <a moz-do-not-send="true"
href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><o:p></o:p></pre>
<pre>FAQ: <a moz-do-not-send="true"
href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre style="text-align: center;">
<hr align="center" size="4" width="90%">
</pre>
<pre><o:p> </o:p></pre>
<pre>______________________________________________________________________________<o:p></o:p></pre>
<pre>Member info: <a moz-do-not-send="true"
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><o:p></o:p></pre>
<pre>Documentation: <a moz-do-not-send="true"
href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><o:p></o:p></pre>
<pre>FAQ: <a moz-do-not-send="true"
href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
</div>
<pre wrap="">
<hr size="4" width="90%">
______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>
</pre>
</blockquote>
</body>
</html>