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. Advertisements

  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. Advertisements

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,780
    Steve
    Jul 1, 2003
  2. Brian Birtle
    Replies:
    2
    Views:
    2,548
    John Saunders
    Oct 16, 2003
  3. Patrick Boulay

    JAI - Out of memory during encoding.

    Patrick Boulay, Jul 22, 2004, in forum: Java
    Replies:
    2
    Views:
    4,847
    Roedy Green
    Jul 22, 2004
  4. Kitaec Roman 1972452496

    Out of Memory in Java transformation for large XMLdata

    Kitaec Roman 1972452496, Nov 22, 2005, in forum: Java
    Replies:
    4
    Views:
    1,031
    Thomas Hawtin
    Nov 23, 2005
  5. Replies:
    10
    Views:
    907
    Keith Thompson
    Mar 10, 2005
  6. Sandor
    Replies:
    0
    Views:
    514
    Sandor
    Feb 6, 2009
  7. Replies:
    1
    Views:
    263
    Anno Siegel
    Apr 7, 2005
  8. Saqib Ali
    Replies:
    2
    Views:
    351
    Saqib Ali
    Jan 14, 2011
Loading...