1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-14 20:45:16 +00:00

added heapdump and endpoint to make dump

This commit is contained in:
Henry Oswald 2014-11-27 13:48:39 +00:00
parent 72df59e81e
commit dee7799fd4
2 changed files with 19 additions and 14 deletions
services/filestore

View file

@ -66,6 +66,10 @@ app.del "/project/:project_id/file/:file_id", keyBuilder.userFileKey, fileContro
app.get "/template/:template_id/v/:version/:format", keyBuilder.templateFileKey, fileController.getFile
app.post "/template/:template_id/v/:version/:format", keyBuilder.templateFileKey, fileController.insertFile
app.get "/heapdump", (req, res)->
require('heapdump').writeSnapshot '/tmp/' + Date.now() + '.filestore.heapsnapshot', (err, filename)->
res.send filename
app.post "/shutdown", (req, res)->
appIsOk = false
res.send()

View file

@ -2,22 +2,23 @@
"name": "filestore-sharelatex",
"version": "0.0.1",
"dependencies": {
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#master",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#master",
"request": "2.14.0",
"lynx": "0.0.11",
"grunt-mocha-test": "~0.8.2",
"knox": "~0.8.8",
"node-uuid": "~1.4.1",
"underscore": "~1.5.2",
"express": "~3.4.8",
"longjohn": "~0.2.2",
"async": "~0.2.10",
"pngcrush": "0.0.3",
"stream-buffers": "~0.2.5",
"coffee-script": "~1.7.1",
"express": "~3.4.8",
"grunt-mocha-test": "~0.8.2",
"heapdump": "^0.3.2",
"knox": "~0.8.8",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master",
"longjohn": "~0.2.2",
"lynx": "0.0.11",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#master",
"node-transloadit": "0.0.4",
"coffee-script": "~1.7.1"
"node-uuid": "~1.4.1",
"pngcrush": "0.0.3",
"request": "2.14.0",
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#master",
"stream-buffers": "~0.2.5",
"underscore": "~1.5.2"
},
"devDependencies": {
"sinon": "",