<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 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:black;}
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:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:windowtext'>Walt,<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'>Reduce the number of MailSanner child processes to 2 or 3. Unless your server is crazy busy, you don’t need more than that. <o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'>--<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'>Jerry Benton<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><a href="http://www.mailborder.com/"><span style='color:#0563C1'>www.mailborder.com</span></a><br>+1   (843) 800-8605<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'>+44 (020) 3883-8605<br><br><o:p></o:p></span></p></div><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='color:windowtext'>From:</span></b><span style='color:windowtext'> MailScanner [mailto:mailscanner-bounces+jerry.benton=mailborder.com@lists.mailscanner.info] <b>On Behalf Of </b>Walt Thiessen<br><b>Sent:</b> Wednesday, August 30, 2017 10:17 AM<br><b>To:</b> MailScanner Discussion <mailscanner@lists.mailscanner.info><br><b>Subject:</b> Re: any issues with MailScanner and locked pages?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><span style='font-family:"Arial",sans-serif'>Hi Jerry,</span><o:p></o:p></p><p><span style='font-family:"Arial",sans-serif'>Hi Jerry,</span><o:p></o:p></p><p><span style='font-family:"Arial",sans-serif'>I checked that file at your suggestion, and everything is commented out. Within the docblock, there are no settings for locks.</span><o:p></o:p></p><p><span style='font-family:"Arial",sans-serif'>The locks problem appears to be related to a limit set within my VPS container by my hosting provider. Apparently, my VPS server is allocated a little more than 3200 locks. After that, it degrades and crashes. The provider isn't willing to increase it without me buying more processing power from them. </span><o:p></o:p></p><p><span style='font-family:"Arial",sans-serif'>However, even with what I have right now, I'm not using much processor at all, and as I mentioned in the previous message I'm not using up my allocated memory (not even close). My server load is typically in the range of 0.20 to 0.50 on a three processor system. </span><o:p></o:p></p><p><span style='font-family:"Arial",sans-serif'>That's why I'm trying to search for another way to fix this instead of just throwing more processing power at it.</span><o:p></o:p></p><p><span style='font-family:"Arial",sans-serif'>Walt</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 8/30/2017 9:32 AM, Jerry Benton wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre>Do you mean lock files? Depending on your distro, it is set to something<o:p></o:p></pre><pre>small like 4096. You need to set it to 65535. in your<o:p></o:p></pre><pre>/etc/security/limits.conf<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>--<o:p></o:p></pre><pre>Jerry Benton<o:p></o:p></pre><pre><a href="http://www.mailborder.com">www.mailborder.com</a><o:p></o:p></pre><pre>+1   (843) 800-8605<o:p></o:p></pre><pre>+44 (020) 3883-8605<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>-----Original Message-----<o:p></o:p></pre><pre>From: MailScanner<o:p></o:p></pre><pre>[<a href="mailto:mailscanner-bounces+jerry.benton=mailborder.com@lists.mailscanner.in">mailto:mailscanner-bounces+jerry.benton=mailborder.com@lists.mailscanner.in</a><o:p></o:p></pre><pre>fo] On Behalf Of Walt Thiessen<o:p></o:p></pre><pre>Sent: Wednesday, August 30, 2017 9:27 AM<o:p></o:p></pre><pre>To: MailScanner Discussion <a href="mailto:mailscanner@lists.mailscanner.info"><mailscanner@lists.mailscanner.info></a><o:p></o:p></pre><pre>Subject: any issues with MailScanner and locked pages?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I'm trying to track down an issue on my VPS.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>For some reason, every 7-10 days or so the server crashes because the<o:p></o:p></pre><pre>container exceeds the allowed number of lockedpages.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><a href="https://openvz.org/UBC_auxiliary_parameters#lockedpages">https://openvz.org/UBC_auxiliary_parameters#lockedpages</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>MailScanner and MySQL are the two processes that use the most memory on my<o:p></o:p></pre><pre>system (CentOS 7) by far, so I'm investigating each as much as I can to try<o:p></o:p></pre><pre>to identify why this is happening.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>The server doesn't run out of memory. On the contrary, usually about half<o:p></o:p></pre><pre>the memory remains unallocated when these events occur.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Has anyone run into any issues with MailScanner locking too many pages in<o:p></o:p></pre><pre>memory?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Walt<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>--<o:p></o:p></pre><pre>MailScanner mailing list<o:p></o:p></pre><pre><a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><o:p></o:p></pre><pre><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</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><o:p> </o:p></pre></blockquote><p class=MsoNormal><o:p> </o:p></p></div></body></html>