I’m on meteor 1.8 & Mongo 3 and trying to call Meteor.loginWithPassword, but it is taking a very very long time to return a result, like 25 seconds, and then it seems to slow down the entire meteor server afterwards until I reboot and logout the user.
The application is very bare bones. The client only subscribes to a tiny amount of data. Same data loads very quickly before logging in. After logging in the publication starts to hang and takes a very long time to respond. I’ve isolated the behavior to calling loginWithPassword(). If I skip that call everything behaves as expected.
I only have a single user account defined, so I don’t know what could be causing it to take so long. All other queries and database interactions are fast, as long as I’m not logged in.
Have you tried using a kadira alternative, like https://montiapm.com? It is free for 8h retention, and works like the original kadira with some improvements. It will catch the traces of your long running methods like the login method so you can explore which step is taking a long time.
You can see that the find on users takes 0ms, while the fetch on users takes 29912ms! Why is that fetch taking so long? The query it is performing is very simple and it only returns a single document.
I am running into the same issue, which is causing my instance to crash with a JS heap dump, I am running the database with Atlas in US-east-1 and meteor in US-east-1. I am using Oplog on an M30 and an 8 octa on meteor for only 380 concurrent connections.
Nearly 4 second ping… not sure why you are paying for that. Just setup your own, I have it all on the same LAN in my rack at the datacenter so latency is 0ms internal between my machine and my db and outside it’s 30ms because I use tier 1 business grade DNS.
Never paid AWS or any of these clouds a penny and we use a data center that donates profits to veterans instead of woke causes.