Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
f-w committed May 13, 2024
1 parent 81be4ea commit 7893a3e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
Binary file modified .github/values.ocp4.dev.yaml.gpg
Binary file not shown.
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default defineUserConfig({
text: 'Miscellaneous',
children: [
'/docs/health-check/',
'/docs/memory-dump/',
'/docs/benchmarks/',
'/docs/bulk-import/',
'/docs/developer-notes/',
Expand Down
24 changes: 24 additions & 0 deletions docs/docs/miscellaneous/memory-dump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
permalink: /docs/memory-dump/
---

# Memory Dump

To troubleshoot memory related issues, Super-admin can get a memory dump of _NotifyBC_ by querying `/memory` API end point. For example

```sh
$ curl -s http://localhost:3000/api/memory
Heap.20240513.114015.22037.0.001.heapsnapshot
```

The output is the file name of the memory dump. The dump file can be loaded by, for example, Chrome DevTools.

_fileName_ query parameter can be used to specify the file path and name

```sh
$ curl -s http://localhost:3000/api/memory?fileName=/tmp/my.heapsnapshot
/tmp/my.heapsnapshot
```

::: tip How to get memory dump of a particular node?
If you call `/memory` from a client-facing URL end point, which is usually load balanced, the memory dump occurs only on node handling your request. To perform it on the node you want to troubleshoot, in particular the _master_ node, run the command from the node. Make sure 127.0.0.1 is in _adminIps_.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notify-bc",
"version": "5.1.1",
"version": "5.1.2",
"dbSchemaVersion": "0.9.0",
"description": "A versatile notification API server",
"author": "f-w",
Expand Down

0 comments on commit 7893a3e

Please sign in to comment.