Giter Site home page Giter Site logo

Comments (9)

ooxi avatar ooxi commented on July 18, 2024

Is this reproduceable? Does it depend on the file contents? Is 2 GB the exact border when this starts happening? How much RAM do you have?

from jsdav.

briangonzalez avatar briangonzalez commented on July 18, 2024

Yes, reproducible in that it happens every upload. of a "large" file. I am not sure about the file's contents, but I have mostly been testing with .zip files.

I has jsDAV running on a an RPi with 512MB of memory.

I am going to test files of the following sizes generated using the shell command: dd if=/dev/zero of=output_400MB.dat bs=1024 count=400240. Not that these are all .dat files.

Files

  • 400MB (just under memory cap) - SUCCESS
  • 600MB (just over memory cap.) - SUCCESS
  • 750MB - SUCCESS
  • 850MB - FAIL
  • 1GB - FAIL
  • 1.5GB - FAIL

from jsdav.

briangonzalez avatar briangonzalez commented on July 18, 2024

Tailed the syslog, and look what I've found:

# tail -f /var/log/syslog --lines 5
Aug 13 07:53:18 raspberrypi kernel: [121175.599784] [16287]     0 16287     1219        8       6       98             0 bash
Aug 13 07:53:18 raspberrypi kernel: [121175.599801] [16344]     0 16344     1121       19       6       44             0 screen
Aug 13 07:53:18 raspberrypi kernel: [121175.599819] [16374]     0 16374   137706   105056     265    18933             0 nodejs
Aug 13 07:53:18 raspberrypi kernel: [121175.599833] Out of memory: Kill process 16374 (nodejs) score 871 or sacrifice child
Aug 13 07:53:18 raspberrypi kernel: [121175.599849] Killed process 16374 (nodejs) total-vm:550824kB, anon-rss:419436kB, file-rss:788kB

from jsdav.

briangonzalez avatar briangonzalez commented on July 18, 2024

@ooxi Any idea what could be going on here?

from jsdav.

mikedeboer avatar mikedeboer commented on July 18, 2024

@briangonzalez how are you uploading files? Through a browser POST form or using a file manager with PUT?

from jsdav.

mikedeboer avatar mikedeboer commented on July 18, 2024

Oh, and also an important question: which version of jsDAV are you using?

from jsdav.

briangonzalez avatar briangonzalez commented on July 18, 2024

I am using a clone of master at 558377a.

Also, I am using Transmit and Cyberduck on the Mac, both of which have the same issue.

from jsdav.

mikedeboer avatar mikedeboer commented on July 18, 2024

Ugh, I have so little time :( I will take a look at this, because it's something a NodeJS lib should do well!

from jsdav.

briangonzalez avatar briangonzalez commented on July 18, 2024

No worries, take your time.

from jsdav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.