Hello Folks,

We've recently upgraded our LDAP server from Centos (due to the IBM takeover of RedHat) to run on Ubuntu Server. The server has 64GB of RAM, and an 8 GB swap partition on a 480 GB SSD drive. We have a perl script that queries a main LDAP server and returns hits on first or last name as well as userid. The total volume of returned data is less than 4K.

This script ran for years on Centos, but will not run on Ubuntu, with an error output of "Out of memory!".

The ulimit command output shows identical values on both Centos and Ubuntu for all relevant memory limits, with:
max memory size (kbytes, -m) unlimited virtual memory (kbytes, -v) unlimited
The free command on the Ubuntu server shows 557MB of free uncached memory, with 61GB available:
# free -h total used free shared buff/cache + available Mem: 62Gi 557Mi 867Mi 5.0Mi 61Gi + 61Gi
I've searched here and via search engines for a solution, but can find none. Thanks for any idea you have to resolve this.

In reply to Perl script works on Centos but not Ubuntu by harryhendo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.