in reply to Re: Getting problem while downloading large file(1.9GB)
in thread Getting problem while downloading large file(1.9GB)

Error log on server says

Out of memory!
Callback called exit.

  • Comment on Re^2: Getting problem while downloading large file(1.9GB)

Replies are listed 'Best First'.
Re^3: Getting problem while downloading large file(1.9GB)
by CountZero (Bishop) on Jan 16, 2012 at 11:14 UTC
    Well, that settles it then.

    You now have two options:

    1. Get more memory in the server; or
    2. Re-write your application so you do not need to have the wholehave less of the file in memory at the same time.
    Update: edited the above to make it more clear.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      Re-write your application so you do not need to have the whole file in memory at the same time.

      Great idea :) Too bad that is what the OP is asking help with (though without providing all required details)

        Not at all.

        The OP asked:

        Can you please help me to find out why it is not working?

        He answered that himself ("Out of memory") in his reply to my post. Then I gave him two possible solutions. Maybe he will come back and ask how to rewrite his script. We will deal with the questions when they arrive. The OP may very well be able to solve his problem himself now that he knows the cause and it would be presumptuous of us to assume he cannot do that.

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re^3: Getting problem while downloading large file(1.9GB)
by Anonymous Monk on Jan 16, 2012 at 10:52 UTC