Community discussions

MikroTik App
 
AlohaSpark
newbie
Topic Author
Posts: 45
Joined: Wed Jun 16, 2021 10:39 pm

CHR x86 - High CPU usage (ssl) when using www-ssl

Tue Dec 19, 2023 11:30 am

The title says it all. I am issuing REST commands via www-ssl.

Whenever I am using the SSL REST API, such as listing DHCP clients (~1k) or editing a comment on one of them, CPU usage spikes across all 16 cores (around additional 20%) with one or two pinned at 100%. SSL is also using 100% CPU.

Is there a way to resolve this?
 
AlohaSpark
newbie
Topic Author
Posts: 45
Joined: Wed Jun 16, 2021 10:39 pm

Re: CHR x86 - High CPU usage (ssl) when using www-ssl  [SOLVED]

Wed Dec 20, 2023 8:56 am

I have resolved the issue.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12014
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: CHR x86 - High CPU usage (ssl) when using www-ssl

Wed Dec 20, 2023 7:47 pm

I have resolved the issue.
Thanks for sharing the solution, you b–d.
 
AlohaSpark
newbie
Topic Author
Posts: 45
Joined: Wed Jun 16, 2021 10:39 pm

Re: CHR x86 - High CPU usage (ssl) when using www-ssl

Thu Dec 21, 2023 4:08 pm

I have resolved the issue.
Thanks for sharing the solution, you b–d.
Oh, right, the solution :lol: I made a new certificate with a 1024-bit key. It's more than sufficient, overkill even, for my use case.

Initially the key for the SSL certificate was 4096-bit RSA, which I believed was fine coming from a web hosting perspective.

The API took tens of seconds per operation before. Now it can do tens of operations per second.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12014
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: CHR x86 - High CPU usage (ssl) when using www-ssl

Thu Dec 21, 2023 8:07 pm

Thanks.

Who is online

Users browsing this forum: No registered users and 5 guests