keymetrics / pm2-io-apm

PM2.io APM for Node.JS
Apache License 2.0
147 stars 40 forks source link

issue uploading big files with big files #236

Closed Unitech closed 5 years ago

Unitech commented 5 years ago
Hi, we're having an issue uploading big files to Amazon s3. Looking at the stacktrace, it looks like the pm2/http plugin seems to be the culprit. Please see attachment. This only happens for large files over 1MB. It only happens when our node process is wrapped in pm2. If we run the node server directly, we don't have this problem. Have you seen this before?

https://github.com/googleapis/cloud-trace-nodejs/issues/763

"dependencies": {
 "@google/maps": "^0.4.5",
 "acl": "^0.4.11",
 "algoliasearch": "^3.27.1",
 "async": "^2.6.0",
 "aws-sdk": "^2.262.1",
 "bcrypt": "^2.0.0",
 "body-parser": "^1.18.2",
 "chai": "^4.2.0",
 "chai-asserttype": "^1.0.5",
 "commander": "^2.11.0",
 "contentful": "^6.1.1",
 "cors": "^2.8.4",
 "ejs": "^2.5.7",
 "env-configs": "^0.1.1",
 "express": "^4.16.2",
 "gm": "^1.23.1",
 "google-auth-library": "^0.12.0",
 "helmet": "^3.10.0",
 "intercom-client": "^2.10.3",
 "ip": "^1.1.5",
 "joi": "^14.3.1",
 "jwt-simple": "^0.5.1",
 "knex": "^0.14.6",
 "knex-migrate": "^1.6.1",
 "libphonenumber-js": "^0.4.49",
 "lodash": "^4.17.10",
 "logdna-winston": "^1.0.0",
 "make-runnable": "^1.3.6",
 "mime-types": "^2.1.18",
 "moment": "^2.22.2",
 "moment-timezone": "^0.5.14",
 "multer": "^1.3.0",
 "mysql": "^2.15.0",
 "node-mailjet": "^3.2.1",
 "nodemailer": "^4.4.0",
 "pg": "^7.4.0",
 "request": "^2.87.0",
 "request-ip": "^2.0.2",
 "shortid": "^2.2.8",
 "slugify": "^1.2.9",
 "striptags": "^3.1.1",
 "swagger-jsdoc": "^1.9.7",
 "twilio": "^3.23.1",
 "uuid": "^3.1.0",
 "vimeo": "^2.1.0",
 "winston": "^2.4.0"
},
"devDependencies": {
 "mocha": "^5.2.0",
 "nodemon": "^1.17.5"
}