-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Severe performance regression after 2.2.0 (debian bullseye -> bookworm) #460
Comments
It could be caused by the check if the port is actually open. |
Wow, quick response - thanks :) First the output of
With Full I didn't see anything suspicious (timing wise), only |
I just installed bookworm and something is very strange: a standard check on github.com takes more than 32 seconds. On all the other Linux systems (Fedora, Debian) it takes less than 4 seconds. I'll investigate further |
Something to do with Example
|
Nope ist 'curl'
|
It really seems a problem with curl:
This takes around 10 ms on all other machines and systems I tested with. As the problem is not related to the script, I'll close the issue. |
I'm quite certain it isn't timeout/curl (should also be visible in the
Given what I was seeing in |
|
Ok then it's only on my machine ... |
And the issue is gone (as of today)
|
Could be, but should not have such a big impact |
I looked at your output with the timing (total around 5 seconds). The only calls to OpenSSL that I see are:
Do you get longer times only with LDAP checks or generally even with HTTPS? |
Found some time to take a look at this again. I built a wrapper script to measure openssl times, comparing debian bookworm openssl (OpenSSL 3.0.13) with a locally built OpenSSL 1.1.1w (in #!/bin/sh
exec 9>/dev/tty
echo >&9 "TIME: openssl $@"
# exec /usr/bin/time -o /dev/fd/9 /usr/bin/openssl "$@"
LD_LIBRARY_PATH=~/src/openssl exec /usr/bin/time -o /dev/fd/9 ~/src/openssl/apps/openssl "$@"
It seems |
Setting |
Describe the bug
Seeing high CPU usage and load on icinga2 master after upgrade to bookworm:
Bookworm should have version 2.60.0 of check_ssl_cert, but same issue with 2.70.
Using the old 2.2.0 script (with a small patch for the new "-m|--match" option) fixes the issue.
To Reproduce
AMD EPYC 7313P
Expected behavior
Less CPU usage, no timeouts, ...
System (please complete the following information):
openssl version
):OpenSSL 3.0.9 30 May 2023 (Library: OpenSSL 3.0.9 30 May 2023)
Additional context/output
Invocations look like this:
/usr/lib/nagios/plugins/check_ssl_cert --no-ssl3 --no-tls1 --no-tls1_1 -H $IPADDRESS -P ldap -c 14 -m $SERVERNAME -p 3268 -r /etc/ssl/trusted-cas.crt -w 30
Manual calls usually work, but are slower than before.
The text was updated successfully, but these errors were encountered: