thoeve / ptnotifications

41 stars 2 forks source link

Lot of memory usage #15

Closed jokaorgua closed 6 years ago

jokaorgua commented 6 years ago

The notification should be small and tiny but i have PT-Notifications │ 4 │ fork │ 20536 │ online │ 6 │ 2D │ 0% │ 660.5 MB

660mb of memory usage. I think this is not normal

timh77 commented 6 years ago

Same here.

afbeelding

thoeve commented 6 years ago

Are you guys running on Linux by any chance?

jokaorgua commented 6 years ago

yes. linux ubuntu 16.04 from my side (I would say 90% of PT users run linux)

thoeve commented 6 years ago

Could you give this a shot and share your results after a couple of hours? pm2-PTNotifications.json.zip

jokaorgua commented 6 years ago

data right after the start status │ online │ │ name │ PT-Notifications │ │ restarts │ 0 │ │ uptime │ 64s │ │ script path │ /usr/bin/java │ │ script args │ -XX:+UseConcMarkSweepGC -Xmx128M -jar PTNotifications.jar │ │ error log path │ /home/joka/.pm2/logs/PT-Notifications-error-7.log │ │ out log path │ /home/joka/.pm2/logs/PT-Notifications-out-7.log │ │ pid path │ /home/joka/.pm2/pids/PT-Notifications-7.pid │ │ interpreter │ none │ │ interpreter args │ N/A │ │ script id │ 7 │ │ exec cwd │ /home/joka/pttnotifications │ │ exec mode │ fork_mode │ │ node.js version │ N/A │ │ watch & reload │ ✘ │ │ unstable restarts │ 0 │ │ created at │ 2018-04-26T07:50:10.518Z

PT-Notifications │ 7 │ fork │ 32249 │ online │ 0 │ 89s │ 0% │ 86.1 MB │ joka

will wait couple of hours to update the post

jokaorgua commented 6 years ago

2 hours passed PT-Notifications │ 7 │ fork │ 32249 │ online │ 0 │ 2h │ 0% │ 114.6 MB will update in 8-9 hours once again

jokaorgua commented 6 years ago

worked for 15h PT-Notifications │ 7 │ fork │ 30163 │ online │ 1 │ 15h │ 0% │ 127.8 MB

so at least better than that josn in zip file in releases

timh77 commented 6 years ago

Server 1: pt-notifications │ 2 │ fork │ 10673 │ online │ 4 │ 31h │ 0% │ 111.5 MB Server 2: pt-notifications │ 3 │ fork │ 32079 │ online │ 2 │ 29h │ 0% │ 137.0 MB

Server 2 sends about double the messages compared to server 1.

thoeve commented 6 years ago

Good to see that we are no longer seeing ~500mb of usage.