the classic out of memory during large request

Discussion in 'Perl Misc' started by Tim, Jun 20, 2004.

  1. Tim

    Tim Guest

    I'm getting errors like this

    Out of memory during "large" request for 528384 bytes, total sbrk() is
    16302080 bytes at ... line 176.

    when the server is busy. This is for a background perl script. What
    I would like to do is to check to see if memory for the request is
    available before running the offending the command, and just pause
    everything until memory is available. Is that possible?

    Thanks all,
    Tim
    Tim, Jun 20, 2004
    #1
    1. Advertising

  2. Tim

    Ben Morrow Guest

    Quoth (Tim):
    > I'm getting errors like this
    >
    > Out of memory during "large" request for 528384 bytes, total sbrk() is
    > 16302080 bytes at ... line 176.
    >
    > when the server is busy. This is for a background perl script. What
    > I would like to do is to check to see if memory for the request is
    > available before running the offending the command, and just pause
    > everything until memory is available. Is that possible?


    You could try investigating $^M...

    Ben

    --
    I must not fear. Fear is the mind-killer. I will face my fear and
    I will let it pass through me. When the fear is gone there will be
    nothing. Only I will remain.
    Frank Herbert, 'Dune'
    Ben Morrow, Jun 20, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    0
    Views:
    5,319
    Steve
    Jul 1, 2003
  2. Sandor
    Replies:
    0
    Views:
    411
    Sandor
    Feb 6, 2009
  3. And Wan
    Replies:
    3
    Views:
    909
    bruce barker
    Aug 9, 2009
  4. And Wan
    Replies:
    3
    Views:
    1,087
    bruce barker
    Aug 9, 2009
  5. Replies:
    1
    Views:
    162
    Anno Siegel
    Apr 7, 2005
Loading...

Share This Page