realm / realm-object-server

Tracking of issues related to the Realm Object Server and other general issues not related to the specific SDK's
https://realm.io
293 stars 42 forks source link

cpu & network usage is too high when connected realm-js client on the node-js server #386

Closed bigparksh closed 6 years ago

bigparksh commented 6 years ago

Goals

I have been using realm-object-server with Android & iOS clients for about 11 months. Recently, I connected to the ROS using realm-js client on node-js server. Then, CPU and network usage of ROS is increasing too much.

Normally, if android & iOS client is connected, the CPU usage does not exceed 10%. However, when the realm-js client is connected for testing, the CPU usage increases to 100%.

Below is an old stackoverflow issue. https://stackoverflow.com/questions/50077066/cpu-network-usage-is-too-high-when-connected-realm-js-client-on-the-node-js-se

And I got a 100% case about this issue.

  1. Set the accessTokenTtl to 36 minutes or longer with server.start on the realm object server. (index.js file)
  2. Then realm js client re-connect to the ROS.

Expected Results

CPU usage should be normal.

Actual Results

CPU usage is over 100%.

Steps to Reproduce

Code Sample

accessTokenTtl: (1000 * 60 * 60)

Version of Realm and Tooling

Logs

systemctl status realm-object-server.service Paste output here
sudo journalctl -u realm-object-server.service Paste output here
cat /var/log/realm-object-server.log Paste output here
bigparksh commented 6 years ago

Can I get support from the Realm team?

astigsen commented 6 years ago

@bigparksh is this still an issue for you with the latest version of ROS?

astigsen commented 6 years ago

Closing this for now due to lack of response from reporter. Please reopen if the problem resurfaces.