rtail icon indicating copy to clipboard operation
rtail copied to clipboard

Memory issues

Open rictorres opened this issue 9 years ago • 6 comments
trafficstars

I have a server running these:

┌────────────────────────────┬────┬──────┬───────┬────────┬─────────┬────────┬──────────────┬──────────┐
│ App name                   │ id │ mode │ pid   │ status │ restart │ uptime │ memory       │ watching │
├────────────────────────────┼────┼──────┼───────┼────────┼─────────┼────────┼──────────────┼──────────┤
│ cha-api                    │ 0  │ fork │ 8477  │ online │ 21      │ 33D    │ 204.242 MB   │ disabled │
│ cha-website                │ 1  │ fork │ 3716  │ online │ 21      │ 29D    │ 187.551 MB   │ disabled │
│ cha-front                  │ 2  │ fork │ 8770  │ online │ 15      │ 33D    │ 138.719 MB   │ disabled │
│ rtail-server               │ 3  │ fork │ 30432 │ online │ 3       │ 55D    │ 508.676 MB   │ disabled │
│ rtail.cli-api              │ 4  │ fork │ 30474 │ online │ 2       │ 55D    │ 28.000 KB    │ disabled │
│ rtail.cli-website          │ 5  │ fork │ 30488 │ online │ 1       │ 55D    │ 28.000 KB    │ disabled │
│ rtail.cli-front            │ 6  │ fork │ 30502 │ online │ 1       │ 55D    │ 32.000 KB    │ disabled │
│ rtail.cli-ngx.access       │ 7  │ fork │ 30516 │ online │ 1       │ 55D    │ 32.000 KB    │ disabled │
│ rtail.cli-ngx.error        │ 8  │ fork │ 30530 │ online │ 1       │ 55D    │ 32.000 KB    │ disabled │
│ rtail.cli-ngx.front.access │ 9  │ fork │ 30544 │ online │ 1       │ 55D    │ 32.000 KB    │ disabled │
│ rtail.cli-ngx.front.error  │ 10 │ fork │ 30558 │ online │ 1       │ 55D    │ 32.000 KB    │ disabled │
└────────────────────────────┴────┴──────┴───────┴────────┴─────────┴────────┴──────────────┴──────────┘

Should rtail-server be using 500MB+ of memory? It's a server handling less than 100 requests per day.

rictorres avatar Jul 06 '16 08:07 rictorres

@rictorres it depends on stdin back-pressure. What happens with all clients off?

kilianc avatar Jul 06 '16 16:07 kilianc

i will test that, but the clients are really light-weight.

rictorres avatar Jul 13 '16 19:07 rictorres

I know, but they can create back-pressure if they push too much. Do you have high data volume?

~

**
**

Kilian Ciuffolo****

__

+1 (415) 349-1822

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

![](https://link.nylas.com/open/6v1c1sngzbtk6basu120tpbod/local- e31974ff-4231?r=cmVwbHkrMDAwNWUyYjQ5ZmFlZTFiYzkzN2Y1N2MzYjJmOGUzNTYyNWM5MDg2Y2Q5YTdiNGE1OTJjZjAwMDAwMDAxMTM5ZTVkOTg5MmExNjljZTA5YzZjZGNhQHJlcGx5LmdpdGh1Yi5jb20=)

On Jul 13 2016, at 12:50 pm, Ricardo Torres <[email protected]> wrote:

i will test that, but the clients are really light-weight.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or [mute the thread](https://github.com/notifications/unsubscribe /AAXitA_Q9_Yjuo8ZExad- OyKQMFY0KgEks5qVUGYgaJpZM4JF2yW&r=cmVwbHkrMDAwNWUyYjQ5ZmFlZTFiYzkzN2Y1N2MzYjJmOGUzNTYyNWM5MDg2Y2Q5YTdiNGE1OTJjZjAwMDAwMDAxMTM5ZTVkOTg5MmExNjljZTA5YzZjZGNhQHJlcGx5LmdpdGh1Yi5jb20=).

kilianc avatar Jul 13 '16 20:07 kilianc

nope.. less than 100 reqs/day and logs are just basic stuff, no huge json objects. that's why i find it strange :)

rictorres avatar Jul 13 '16 21:07 rictorres

deploy@chaonline:~$ pm2 l
┌────────────────────────────┬────┬──────┬───────┬─────────┬─────────┬────────┬──────────────┬──────────┐
│ App name                   │ id │ mode │ pid   │ status  │ restart │ uptime │ memory       │ watching │
├────────────────────────────┼────┼──────┼───────┼─────────┼─────────┼────────┼──────────────┼──────────┤
│ cha-api                    │ 0  │ fork │ 21481 │ online  │ 22      │ 12D    │ 216.023 MB   │ disabled │
│ cha-website                │ 1  │ fork │ 21497 │ online  │ 22      │ 12D    │ 195.191 MB   │ disabled │
│ cha-front                  │ 2  │ fork │ 21513 │ online  │ 16      │ 12D    │ 175.559 MB   │ disabled │
│ rtail-server               │ 3  │ fork │ 560   │ online  │ 5       │ 4D     │ 126.754 MB   │ disabled │
│ rtail.cli-api              │ 4  │ fork │ 0     │ stopped │ 2       │ 0      │ 0 B          │ disabled │
│ rtail.cli-website          │ 5  │ fork │ 0     │ stopped │ 1       │ 0      │ 0 B          │ disabled │
│ rtail.cli-front            │ 6  │ fork │ 0     │ stopped │ 1       │ 0      │ 0 B          │ disabled │
│ rtail.cli-ngx.access       │ 7  │ fork │ 0     │ stopped │ 1       │ 0      │ 0 B          │ disabled │
│ rtail.cli-ngx.error        │ 8  │ fork │ 0     │ stopped │ 1       │ 0      │ 0 B          │ disabled │
│ rtail.cli-ngx.front.access │ 9  │ fork │ 0     │ stopped │ 1       │ 0      │ 0 B          │ disabled │
│ rtail.cli-ngx.front.error  │ 10 │ fork │ 0     │ stopped │ 1       │ 0      │ 0 B          │ disabled │
└────────────────────────────┴────┴──────┴───────┴─────────┴─────────┴────────┴──────────────┴──────────┘

it seems stable now, however there are no clients connected.

rictorres avatar Jul 18 '16 14:07 rictorres

@rictorres def a memory leak.

kilianc avatar Jul 18 '16 16:07 kilianc