Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory issues #118

Open
rictorres opened this issue Jul 6, 2016 · 6 comments
Open

Memory issues #118

rictorres opened this issue Jul 6, 2016 · 6 comments

Comments

@rictorres
Copy link

rictorres commented Jul 6, 2016

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.

@kilianc
Copy link
Owner

kilianc commented Jul 6, 2016

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

@rictorres
Copy link
Author

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

@kilianc
Copy link
Owner

kilianc commented Jul 13, 2016

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 <notifications@github.com>
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=).

@rictorres
Copy link
Author

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

@rictorres
Copy link
Author

rictorres commented Jul 18, 2016

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.

@kilianc
Copy link
Owner

kilianc commented Jul 18, 2016

@rictorres def a memory leak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants