-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid array buffer length #102
Comments
Can you try to increase the memory for your node instance....
https://stackoverflow.com/questions/34356012/how-to-increase-nodejs-default-memory
…On Fri, Jun 9, 2017 at 4:11 PM, gleidsonhenriques ***@***.***> wrote:
Hi all,
I'm trying to start some tests with this code and i'm getting the error
below:
RangeError: Invalid array buffer length
at new ArrayBuffer (native)
at new Uint8Array (native)
at createBuffer (buffer.js:23:15)
at allocate (buffer.js:98:12)
at new Buffer (buffer.js:53:12)
at DownloadController.getDownload (/root/Speed-testJS/controllers/
DownloadController.js:56:30)
at Layer.handle [as handle_request] (/root/Speed-testJS/node_
modules/express/lib/router/layer.js:95:5)
at next (/root/Speed-testJS/node_modules/express/lib/router/
route.js:137:13)
at Route.dispatch (/root/Speed-testJS/node_modules/express/lib/router/
route.js:112:3)
at Layer.handle [as handle_request] (/root/Speed-testJS/node_
modules/express/lib/router/layer.js:95:5)
I'm testing a Gigabit Network. Below are some specs and environment of the server:
Distro: Ubuntu 16.04.2 LTS
NodeJS: v4.2.6
NPM: 3.5.2
Memory:
total used free shared buff/cache available
Mem: 1999 222 1676 5 101 1639
If anyone knows what's going on and may help me i'll be really glad full.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#102>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC9YeOafYb4gX5JrNLuuDZ9LtzxiH_Ziks5sCabggaJpZM4N1yOC>
.
|
Hi @rotosonic ... thanks for your help. But no deal. I've tried with 1024,2048,4096. But always got same error. It's intriguing that's this error is showing only with me. You guys are testing Gigabit ? If yes, could you please share server environment and specs ? |
Hi, Just for clarification. After increase memory of the server. The problem is gone. Thanks for the help and attention. Please, close this issue. |
@gleidsonhenriques What did you increase your server memory to? |
Memory usage is decreased
Hi all,
I'm trying to start some tests with this code and i'm getting the error below every time that i try to start a test:
RangeError: Invalid array buffer length
at new ArrayBuffer (native)
at new Uint8Array (native)
at createBuffer (buffer.js:23:15)
at allocate (buffer.js:98:12)
at new Buffer (buffer.js:53:12)
at DownloadController.getDownload (/root/Speed-testJS/controllers/DownloadController.js:56:30)
at Layer.handle [as handle_request] (/root/Speed-testJS/node_modules/express/lib/router/layer.js:95:5)
at next (/root/Speed-testJS/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/root/Speed-testJS/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/root/Speed-testJS/node_modules/express/lib/router/layer.js:95:5)
If anyone knows what's going on and may help me i'll be really glad full.
The text was updated successfully, but these errors were encountered: