-
Notifications
You must be signed in to change notification settings - Fork 39
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
Http Client benchmark #527
base: main
Are you sure you want to change the base?
Conversation
<dependency> | ||
<groupId>software.amazon.awssdk.crt</groupId> | ||
<artifactId>aws-crt</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version doesn't work for me on an M1. I get the following error
java.io.IOException: Unable to open library in jar for AWS CRT: /osx/x86_64/libaws-crt-jni.dylib
at software.amazon.awssdk.crt.CRT.extractAndLoadLibrary(CRT.java:190)
at software.amazon.awssdk.crt.CRT.loadLibraryFromJar(CRT.java:242)
at software.amazon.awssdk.crt.CRT.<clinit>(CRT.java:34)
at software.amazon.awssdk.crt.CrtResource.<clinit>(CrtResource.java:104)
at com.canary.Http2StreamManagerCanary.createStreamManager(Http2StreamManagerCanary.java:51)
at com.canary.Http2StreamManagerCanary.runCanary(Http2StreamManagerCanary.java:174)
at com.canary.Http2StreamManagerCanary.main(Http2StreamManagerCanary.java:195)
Exception in thread "main" java.lang.ExceptionInInitializerError
at software.amazon.awssdk.crt.CrtResource.<clinit>(CrtResource.java:104)
at com.canary.Http2StreamManagerCanary.createStreamManager(Http2StreamManagerCanary.java:51)
at com.canary.Http2StreamManagerCanary.runCanary(Http2StreamManagerCanary.java:174)
at com.canary.Http2StreamManagerCanary.main(Http2StreamManagerCanary.java:195)
Caused by: software.amazon.awssdk.crt.CrtRuntimeException: software.amazon.awssdk.crt.CrtRuntimeException: Unable to unpack AWS CRT library UNKNOWN(-1) UNKNOWN(-1)
at software.amazon.awssdk.crt.CRT.loadLibraryFromJar(CRT.java:252)
at software.amazon.awssdk.crt.CRT.<clinit>(CRT.java:34)
... 4 more
I changed it to 0.19.3 and it is working now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, you need mvn install on the root directory
first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, that seems like weird...
It's search for x86_64
on your arm machine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What JAVA_HOME
you set? Do you have a x86 java on you machine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My Java Home is /Users/waqarak/Library/Java/JavaVirtualMachines/corretto-11.0.16/Contents/Home. I did run mvn install on the root directory.
This reverts commit f941879.
mvn install
on the root directorycd samples/HttpClientCanary && mvn install
mvn exec:exec@netty
to run SDK netty client benchmarkmvn exec:exec@crt
to run CRT benchmarkThe netty client here means the
netty-nio-client
from aws-java-sdk-v2.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.