I'm in the process of migrating a Mojolicious application that is hosted on a FreeBSD server to an Ubuntu server.

I had no problem installing all the packages and modules needed and got the application up and running in no time.
However I'm running into a problem when I query any SQL Server DB field of type varchar(max). Once the application hits one of these selectrow_array queries I get an Out of memory! error and it crashes.

I'm currently working on getting it running in a VM before I migrate it to the production server. I've tried to crank up the VM's memory, made the swap huge, I've configured the ulimit, and I've configured the the freetds config text size.
If I cast the field to varchar(8000) in the SELECT statement, everything runs perfectly fine. It's only when querying a field of type varchar(max). I know that the data that is being queried currently while testing is only about 1000 characters.

I'm at a stand still here. I cannot figure out what would cause this out of memory error.

What am I missing? Any help would be greatly appreciated.

In reply to DBD::SYBASE varchar(max) problem by Anonymous Monk

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.