Community discussions

MikroTik App
 
User avatar
rendezz
just joined
Topic Author
Posts: 16
Joined: Mon Sep 17, 2018 11:07 am

REST API causes high load

Thu Sep 29, 2022 3:37 pm

There is quite a bit problem with the REST api

On a single core mikrotik, the CPU will spike to 100% on a REST call

From the API docs
curl -k -u admin: https://10.155.101.214/rest/system/resource
on a single core CPU will return a cpu-load of greater than 90%.

If you add a query parameter onto that
curl -k -u admin: https://10.155.101.214/rest/system/resource?.proplist=cpu-load
The CPU will rise to 100% and stay there for a few minutes. That query never returns. This is valid for 7.4.1 and 7.5. It pretty much makes the REST api useless.
You do not have the required permissions to view the files attached to this post.
Home of the Badjr, the cloud-managed business network router built on Mikrotik http://baselinecloud.com/badjr

Who is online

Users browsing this forum: eldoncito2019 and 6 guests