[misc] drop the /heapdump route and related heapdump package

This commit is contained in:
Jakob Ackermann 2020-02-23 16:27:55 +01:00
parent 32557ab1d7
commit 6f27f7a1bf
4 changed files with 0 additions and 22 deletions

View file

@ -10,7 +10,6 @@ filestore acts as a proxy between the CLSIs and (currently) Amazon S3 storage, p
* `/project/:project_id/public/:public_file_id`
* `/project/:project_id/size`
* `/bucket/:bucket/key/*`
* `/heapdump`
* `/shutdown`
* `/status` - returns `filestore sharelatex up` or `server is being shut down` (HTTP 500)
* `/health_check`

View file

@ -122,18 +122,6 @@ app.get(
fileController.getFile
)
app.get('/heapdump', (req, res, next) =>
require('heapdump').writeSnapshot(
'/tmp/' + Date.now() + '.filestore.heapsnapshot',
(err, filename) => {
if (err) {
return next(err)
}
res.send(filename)
}
)
)
app.get('/status', function(req, res) {
res.send('filestore sharelatex up')
})

View file

@ -2716,14 +2716,6 @@
"resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz",
"integrity": "sha512-z/GDPjlRMNOa2XJiB4em8wJpuuBfrFOlYKTZxtpkdr1uPdibHI8rYA3MY0KDObpVyaes0e/aunid/t88ZI2EKA=="
},
"heapdump": {
"version": "0.3.15",
"resolved": "https://registry.npmjs.org/heapdump/-/heapdump-0.3.15.tgz",
"integrity": "sha512-n8aSFscI9r3gfhOcAECAtXFaQ1uy4QSke6bnaL+iymYZ/dWs9cqDqHM+rALfsHUwukUbxsdlECZ0pKmJdQ/4OA==",
"requires": {
"nan": "^2.13.2"
}
},
"hex2dec": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/hex2dec/-/hex2dec-1.1.2.tgz",

View file

@ -26,7 +26,6 @@
"body-parser": "^1.2.0",
"express": "^4.2.0",
"glob": "^7.1.6",
"heapdump": "^0.3.2",
"lodash.once": "^4.1.1",
"logger-sharelatex": "^1.7.0",
"metrics-sharelatex": "^2.2.0",