Open ajitam opened 7 years ago
Ok, I might have found some more leads around this problem.
After some additional research I noticed that - if I ran the script with DB which already existed everything was 0K, but if I started script with new DB CPU usage got hight again. So naturally on newly formatted mac I didn't had any old DBs.
So bottom line: If I start mosca with backend using mongoDB (and use new DB name) CPU usage is hight (DB is created)
@ajitam interesting. Is the CPU staying high, or does it lower after a while? Maybe there is a bug somewhere in the collection-creation logic. Would you like to try a PR? The problem is likely to be in https://github.com/mcollina/ascoltatori
p.s.: for now I have very dirty fix - I export mqtt
DB from the server and import it into my local mongoDB
Hello,
I've been using Mosca for some time know on different ENVs (macOS and Ubuntu). Last week I formatted my Macbook Pro and now whenever I ran nodejs script with Mosca inside
node
task in Activity monitor start burning 50% and more of CPU.Is there any why I can somehow debug this?
Here is what I know:
npm install mosca
) andindex.js
with a simple script from the readme file ☛ index.jszmq
thx, matija