Comments (9)
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.
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.
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.
@ooxi Any idea what could be going on here?
from jsdav.
@briangonzalez how are you uploading files? Through a browser POST form or using a file manager with PUT?
from jsdav.
Oh, and also an important question: which version of jsDAV are you using?
from jsdav.
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.
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.
No worries, take your time.
from jsdav.
Related Issues (20)
- jCal/jCard parsing HOT 1
- VObject/Property .hasFeature is not defined on String HOT 3
- Question: How to run server using HTTPS? HOT 1
- DavMount link dead HOT 1
- Passing multiple Trees as array to nodes to WebDAV Server instance? HOT 9
- Unable to run inside Docker container HOT 1
- How to filter response sent to client?
- Tree insideSandbox doesn't account for immediate parent directory
- Regular Expression Denial of Service HOT 1
- Delete locks on DELETE method HOT 6
- Unterminated character class HOT 1
- Space in filename is not recognized HOT 4
- User management for jsDAV
- How jsDAV callbacks work
- carddav
- jsDAV - Unsupported method
- Can you support hooks?
- Upgrade moment to 2.11.2 - CVE-2016-4055
- CalDAV Backend? HOT 2
- New webdav client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsdav.