BTW. npm audit give me whole bunch of so called "security issues".
No, now just one ...
npm audit fix could not fix these - so how can that be fiexed?
*puzzled*
Anyone knows what to do here?
My site is very fast for visitors, but as soon as the admin user logs in, the node process CPU usage rises to 100.What could be the problem?
This is because probably you're in ddos attack, kindly opt for good ddos protection or use nginx and configure and block those ddos.
@Sandeep-Bhuiya DDoS that only happen when an administrator logs-in? That would be just stupid.
can you mention the nodejs version and verify all ip connection via this command if you find some suspicious ip ranges:
netstat -an | grep :80 | sort
@Sandeep-Bhuiya said in node process CPU usage rises to 100:
This is because probably you're in ddos attack, kindly opt for good ddos protection or use nginx and configure and block those ddos.
This can't really be the issue. It has to be some process spinning trying to do some action for the dashboard.
I put the code of an old station in the past, with the data of the new station, there is no problem
So I wonder if there's something wrong with the code, or is it a plug-in?
The CPU now does not take at least 3 seconds for 100% of logged in users to refresh the page, but the request API is very fast
The visitor refreshes the page and USES the API to request data very quickly
I don't know if the user is logged in, what method causes the page to display slowly when the code is executed
@Sandeep-Bhuiya I use a clean environment, redeploy, it's still the same problem.There is no ddos case, should be the code problem, login user access, CPU 100%, no problem with visitors