In my java application i have created a JettyServer.
In GraalVM i have implemented it and did a load test with it , i didn't find any issues.
I then converted the java application to a static native-image binary .
And if I do load test with this, I get many Connection refused
errors
For example : in 10k requests atleast 3k gave me connection refused errors, where as in graalvm-java it worked fine.
The following args i have given while building the image
native-image -J-Xmx359M -J-Xms256M -J-Xmn256M --static -H:+MultiThreaded
Asked
Active
Viewed 20 times
0

Roop Sai
- 11
- 2
-
**Can anyone help me how to overcome this ..??** – Roop Sai Dec 08 '22 at 06:07
-
looks like they are waiting for commands at https://github.com/oracle/graal/issues/5578, if you put a reproducer it will help to investigate the issue. – ozkanpakdil Mar 05 '23 at 11:28