Skip to content

ktor graalvm problem #572

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

Open
ozkanpakdil opened this issue Feb 26, 2023 · 1 comment
Open

ktor graalvm problem #572

ozkanpakdil opened this issue Feb 26, 2023 · 1 comment

Comments

@ozkanpakdil
Copy link
Owner

ozkanpakdil commented Feb 26, 2023

some requests failing with ktor graalvm native image
image
https://ozkanpakdil.github.io/microservicetests/2023-02-26-microservice-framework-test-17.html#graalvm-native-ktor-rest-service

when I test local I see these errors

================================================================================
---- Global Information --------------------------------------------------------
> request count                                     800000 (OK=735068 KO=64932 )
> min response time                                      7 (OK=7      KO=6413  )
> max response time                                 225965 (OK=224689 KO=225965)
> mean response time                                 68711 (OK=61016  KO=155817)
> std deviation                                      73632 (OK=69995  KO=55486 )
> response time 50th percentile                      23143 (OK=15418  KO=157646)
> response time 75th percentile                     134432 (OK=122630 KO=213433)
> response time 95th percentile                     208258 (OK=197420 KO=221201)
> response time 99th percentile                     219875 (OK=214830 KO=223348)
> mean requests/sec                                2857.143 (OK=2625.243 KO=231.9 )
---- Response Time Distribution ------------------------------------------------
> t < 800 ms                                         13558 (  2%)
> 800 ms <= t < 1200 ms                               9015 (  1%)
> t >= 1200 ms                                      712495 ( 89%)
> failed                                             64932 (  8%)
---- Errors --------------------------------------------------------------------
> Request timeout to localhost/127.0.0.1:8080 after 60000 ms      32752 (50.44%)
> j.n.ConnectException: connect(..) failed: Cannot assign reques  22377 (34.46%)
ted address
> Request timeout after 60000 ms                                   8788 (13.53%)
> i.n.c.ConnectTimeoutException: connection timed out: localhost   1015 ( 1.56%)
/127.0.0.1:8080

probably because of "slow response" getting timeouts...

@ozkanpakdil
Copy link
Owner Author

hey @e5l and @rsinukov I am getting timeouts in my tests, it is the simplest code on earth https://github.com/ozkanpakdil/test-microservice-frameworks/blob/main/ktor-demo/src/Application.kt#L45 any suggestions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant