<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@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 lang="NL-BE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><a name="_MailEndCompose"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Thomas,<o:p></o:p></span></a></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Nope, no OOM errors (server has 128G ram also..)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Only strange I see is this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[51314200.930086] traps: apache2[7324] general protection ip:7f308fc53fe9 sp:7f3089657b10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[51314204.940646] traps: apache2[7469] general protection ip:7f308fc53fe9 sp:7f3082ffcb10 error:0 in libmapcache.so.1.4.1[7f308fc10000+56000]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Pieter C<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> thomas bonfort [mailto:thomas.bonfort@gmail.com]
<br>
<b>Sent:</b> Tuesday, 7 March, 2017 17:56<br>
<b>To:</b> Pieter Callewaert <pieter.callewaert@be-mobile.com>; mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-users] Mapcache segmentation faults under high load<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">this doesn't seem to be a segfault, but the server that received a kill signal... could you be getting out of memory errors ?<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">--<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">thomas <o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Mar 7, 2017 at 8:18 AM Pieter Callewaert <</span><a href="mailto:pieter.callewaert@be-mobile.com"><span lang="EN-US">pieter.callewaert@be-mobile.com</span></a><span lang="EN-US">> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Thanks Andreas, you brought me on a lead, indeed the ulimit for core size was on 0. Also it seems ubuntu running apport does not generate coredumps, had to change the core pattern.<br>
<br>
I've a core dump now, checked with GDB, but not sure what I'm searching at...<br>
</span><a href="http://pastebin.com/fAXdEg15" target="_blank"><span lang="EN-US">http://pastebin.com/fAXdEg15</span></a><span lang="EN-US"><br>
<br>
Kind regards,<br>
Pieter C<br>
<br>
-----Original Message-----<br>
From: Eichner, Andreas - SID [mailto:</span><a href="mailto:Andreas.Eichner@sid.sachsen.de" target="_blank"><span lang="EN-US">Andreas.Eichner@sid.sachsen.de</span></a><span lang="EN-US">]<br>
Sent: Monday, 6 March, 2017 15:40<br>
To: Pieter Callewaert <</span><a href="mailto:pieter.callewaert@be-mobile.com" target="_blank"><span lang="EN-US">pieter.callewaert@be-mobile.com</span></a><span lang="EN-US">>;
</span><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank"><span lang="EN-US">mapserver-users@lists.osgeo.org</span></a><span lang="EN-US"><br>
Subject: AW: [mapserver-users] Mapcache segmentation faults under high load<br>
<br>
Hi Pieter,<br>
<br>
have you checked the ulimit for the user the Apache runs under? See man core(5) for possible reasons why no core is dumped.<br>
<br>
</span>HTH<br>
<br>
> -----Ursprüngliche Nachricht-----<br>
> Von: mapserver-users [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>]<br>
> Im Auftrag von Pieter Callewaert<br>
> Gesendet: Montag, 6. <span lang="EN-US">März 2017 11:01<br>
> An: </span><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank"><span lang="EN-US">mapserver-users@lists.osgeo.org</span></a><span lang="EN-US"><br>
> Betreff: Re: [mapserver-users] Mapcache segmentation faults under high<br>
> load<br>
><br>
> Hi Thomas,<br>
><br>
><br>
><br>
> The documentation for debug compiling is not complete<br>
> (</span><a href="http://mapserver.org/mapcache/install.html" target="_blank"><span lang="EN-US">http://mapserver.org/mapcache/install.html</span></a><span lang="EN-US"><br>
> <</span><a href="http://mapserver.org/mapcache/install.html" target="_blank"><span lang="EN-US">http://mapserver.org/mapcache/install.html</span></a><span lang="EN-US">> ).<br>
><br>
> If I add -DCMAKE_BUILD_TYPE="Debug" to the cmake, it this enough?<br>
><br>
> Also added CoreDumpDirectory /tmp/apache2-gdb-dump to apache2.conf,<br>
> and now I see this in the error log:<br>
><br>
><br>
><br>
> [Thu Mar 02 08:46:42.588518 2017] [core:notice] [pid 13:tid<br>
> 140052444931968] AH00051: child pid 14 exit signal Segmentation fault<br>
> (11), possible coredump in /tmp/apache2-gdb-dump<br>
><br>
> [Thu Mar 02 08:46:55.606507 2017] [core:notice] [pid 13:tid<br>
> 140052444931968] AH00051: child pid 2097 exit signal Segmentation<br>
> fault (11), possible coredump in /tmp/apache2-gdb-dump<br>
><br>
><br>
><br>
> Unfortunately, no dumps yet, so I’m afraid I did something wrong with<br>
> the debug compiling.<br>
><br>
><br>
><br>
> Kind regards,<br>
><br>
> Pieter C<br>
><br>
><br>
><br>
> From: thomas bonfort [mailto:</span><a href="mailto:thomas.bonfort@gmail.com" target="_blank"><span lang="EN-US">thomas.bonfort@gmail.com</span></a><span lang="EN-US">]<br>
> Sent: Wednesday, 1 March, 2017 09:33<br>
> To: Pieter Callewaert <</span><a href="mailto:pieter.callewaert@be-mobile.com" target="_blank"><span lang="EN-US">pieter.callewaert@be-mobile.com</span></a><span lang="EN-US">>; mapserver-<br>
> </span><a href="mailto:users@lists.osgeo.org" target="_blank"><span lang="EN-US">users@lists.osgeo.org</span></a><span lang="EN-US"><br>
> Subject: Re: [mapserver-users] Mapcache segmentation faults under high<br>
> load<br>
><br>
><br>
><br>
> Try to get a backtrace from the crashes by compiling mapcache in debug<br>
> mode, and configuring apache to allow coredumps. The "stale lock"<br>
> messages you are seeing are side effects of the crashes so that's not<br>
> where I'd investigate at first.<br>
><br>
><br>
><br>
> regards,<br>
><br>
> thomas<br>
><br>
><br>
><br>
><br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
</span><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank"><span lang="EN-US">mapserver-users@lists.osgeo.org</span></a><span lang="EN-US"><br>
</span><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank"><span lang="EN-US">https://lists.osgeo.org/mailman/listinfo/mapserver-users</span></a><span lang="EN-US"><o:p></o:p></span></p>
</blockquote>
</div>
</div>
</body>
</html>