mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[misc] drop the /heapdump route and related heapdump package
This commit is contained in:
parent
32557ab1d7
commit
6f27f7a1bf
4 changed files with 0 additions and 22 deletions
|
@ -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`
|
||||
|
|
|
@ -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')
|
||||
})
|
||||
|
|
8
services/filestore/package-lock.json
generated
8
services/filestore/package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue