Changeset 11386


Ignore:
Timestamp:
2006-03-17T13:11:00+13:00 (18 years ago)
Author:
mdewsnip
Message:

Added a comment about the memory usage when uploading large files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java

    r10726 r11386  
    10891089
    10901090    // read file and write it into form...
     1091    // !! This uses a lot of memory when the file being uploaded is big -- Java seems to need to keep
     1092    //   the entire file in the DataOutputStream? (Use Runtime.getRuntime().totalMemory() to see)
    10911093    int bytesRead = fileInputStream.read(buffer, 0, bufferSize);
    10921094    while (bytesRead > 0) {
Note: See TracChangeset for help on using the changeset viewer.