Skip to content
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

Open
gleidsonhenriques opened this issue Jun 9, 2017 · 4 comments
Open

Invalid array buffer length #102

gleidsonhenriques opened this issue Jun 9, 2017 · 4 comments

Comments

@gleidsonhenriques
Copy link

gleidsonhenriques commented Jun 9, 2017

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)

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
               1999         222        1676           5         101        1639

If anyone knows what's going on and may help me i'll be really glad full.

@rotosonic
Copy link
Collaborator

rotosonic commented Jun 9, 2017 via email

@gleidsonhenriques
Copy link
Author

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 ?

@gleidsonhenriques
Copy link
Author

gleidsonhenriques commented Jun 9, 2017

Hi,

Just for clarification. After increase memory of the server. The problem is gone.

Thanks for the help and attention.

Please, close this issue.

@hackzilla
Copy link

@gleidsonhenriques What did you increase your server memory to?

mehmetali added a commit to mehmetali/Speed-testJS that referenced this issue Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants