-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Rocket Chat run out of memory while doing import #6898
Comments
Please see #6844 Can you give me some stats about your user count / connected when this happens? |
@geekgonecrazy there is no connectes users, it is fresh installation |
@teamfighter how much available ram do you have on the machine? It for sure shouldn't be going anywhere near that limit on a fresh install |
@geekgonecrazy i have 8 gb available |
So this is a brand new install having just run Can you stop the server via: |
@geekgonecrazy |
@geekgonecrazy so steps yo reproduce:
|
@teamfighter ah! That's what I was looking for. 😁. Do you have any counts on the number of channels / files / users / messages in the import? |
@geekgonecrazy it is more than 150 channels and users in archive, zip file is 42 Mb size. |
@geekgonecrazy |
@graywolf336 thoughts here on this slack import issue? |
Have you tried to import it again anytime recently? As that's odd it just hangs there... |
Still the same issue. RangeError: Out of memory What is the best way to import slack archive with size ~42 Mb? |
if you're still getting that error after having increased the Are you running mongo on the same server? If so which version of mongo? |
Yes, I am running mongo v.2.6.10 on same server and I have 16 Gb RAM at this node. |
If you're finding this because you got an "out of memory" error and you're not running a server with 16GB of RAM (e.g., you're using a minimal 1G setup), you might just need to add a swap file: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 |
I am using latest snap version of Rocket chat.
I have just installed it via snap and tried to import slack dump on it.
The result was that rocket chat instance is not starting anymore.
I have that in logs
May 05 15:01:05 ip-172-31-36-160 systemd[1]: Started Service for snap application rocketchat-server.rocketchat-server. May 05 15:01:05 ip-172-31-36-160 /usr/bin/snap[1741]: cmd.go:114: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" ([VERSION=2.24 2.24]): older than "/usr/bin/snap" (2.24.1) May 05 15:01:05 ip-172-31-36-160 snap[1741]: Checking if oplog has been enabled, and enabling if not May 05 15:01:05 ip-172-31-36-160 snap[1741]: MongoDB shell version: 3.2.7 May 05 15:01:05 ip-172-31-36-160 snap[1741]: connecting to: test May 05 15:01:07 ip-172-31-36-160 snap[1741]: Will load cache for users May 05 15:01:07 ip-172-31-36-160 snap[1741]: 2 records load from users May 05 15:01:07 ip-172-31-36-160 snap[1741]: Will load cache for rocketchat_room May 05 15:01:07 ip-172-31-36-160 snap[1741]: 1 records load from rocketchat_room May 05 15:01:07 ip-172-31-36-160 snap[1741]: Will load cache for rocketchat_subscription May 05 15:01:07 ip-172-31-36-160 snap[1741]: 1 records load from rocketchat_subscription May 05 15:01:07 ip-172-31-36-160 snap[1741]: Will load cache for rocketchat_settings May 05 15:01:07 ip-172-31-36-160 snap[1741]: 480 records load from rocketchat_settings May 05 15:01:08 ip-172-31-36-160 snap[1741]: Updating process.env.MAIL_URL May 05 15:01:08 ip-172-31-36-160 snap[1741]: Will load cache for rocketchat_permissions May 05 15:01:08 ip-172-31-36-160 snap[1741]: 69 records load from rocketchat_permissions May 05 15:01:08 ip-172-31-36-160 snap[1741]: Will load cache for rocketchat_roles May 05 15:01:08 ip-172-31-36-160 snap[1741]: 9 records load from rocketchat_roles May 05 15:01:10 ip-172-31-36-160 snap[1741]: LocalStore: store created at May 05 15:01:11 ip-172-31-36-160 snap[1741]: {"line":"147","file":"rocketchat_migrations.js","message":"Migrations: Not migrating, already at version 91","time":{"$date":1493996471941},"level":"info"} May 05 15:01:12 ip-172-31-36-160 snap[1741]: Using GridFS for custom sounds storage May 05 15:01:12 ip-172-31-36-160 snap[1741]: Using GridFS for custom emoji storage May 05 15:01:12 ip-172-31-36-160 snap[1741]: Updating process.env.MAIL_URL May 05 15:02:50 ip-172-31-36-160 snap[1741]: <--- Last few GCs ---> May 05 15:02:50 ip-172-31-36-160 snap[1741]: 103639 ms: Scavenge 1384.8 (1457.3) -> 1384.8 (1457.3) MB, 0.4 / 0 ms (+ 0.2 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep]. May 05 15:02:50 ip-172-31-36-160 snap[1741]: 104498 ms: Mark-sweep 1384.8 (1457.3) -> 1384.7 (1457.3) MB, 858.8 / 0 ms (+ 1.5 ms in 2 steps since start of marking, biggest step 1.2 ms) [last resort gc]. May 05 15:02:50 ip-172-31-36-160 snap[1741]: 105356 ms: Mark-sweep 1384.7 (1457.3) -> 1384.7 (1457.3) MB, 857.5 / 0 ms [last resort gc]. May 05 15:02:50 ip-172-31-36-160 snap[1741]: <--- JS stacktrace ---> May 05 15:02:50 ip-172-31-36-160 snap[1741]: ==== JS stack trace ========================================= May 05 15:02:50 ip-172-31-36-160 snap[1741]: Security context: 0xd260abb4629 <JS Object> May 05 15:02:50 ip-172-31-36-160 snap[1741]: 1: clone [packages/ejson.js:~482] [pc=0x2e27d402df6e] (this=0x3bf5d51be1f9 <an Object with map 0xe67e822e49>,v=0x4ba63549ff1 <an Object with map 0x35ac59683b91>) May 05 15:02:50 ip-172-31-36-160 snap[1741]: 2: clone [packages/ejson.js:~482] [pc=0x2e27d402dc66] (this=0x3bf5d51be1f9 <an Object with map 0xe67e822e49>,v=0x2583336cd089 <JS Array[1]>) May 05 15:02:50 ip-172-31-36-160 snap[1741]: 3: /* anonymous */ [packages/ejson.js:~520] [pc=0x2e27d133beaf] (this=0xd260abd78e1... May 05 15:02:50 ip-172-31-36-160 snap[1741]: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory May 05 15:02:51 ip-172-31-36-160 snap[1741]: /snap/rocketchat-server/616/bin/startRocketChat: line 3: 1758 Aborted (core dumped) node $SNAP/main.js May 05 15:02:51 ip-172-31-36-160 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Main process exited, code=exited, status=134/n/a May 05 15:02:51 ip-172-31-36-160 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Unit entered failed state. May 05 15:02:51 ip-172-31-36-160 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Failed with result 'exit-code'. May 05 15:02:51 ip-172-31-36-160 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Service hold-off time over, scheduling restart. May 05 15:02:51 ip-172-31-36-160 systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-server.
I found a solution to change node command line by adding "--max-old-space-size=4096" but I cant do it as directory /snap/rocketchat-server/616/ mounted read-only.
How can I change that parameter?
The text was updated successfully, but these errors were encountered: