phax / as2-lib

A generic Java AS2 library, servlet and server
107 stars 43 forks source link

Performance issues in AS2 servlet when transferring files #124

Closed ihudedi closed 3 years ago

ihudedi commented 3 years ago

Hi @phax The performance when transfering files with sockets in comparison to servlet is significant. The bit rate in servlet is very small. Could you please let me know if it's an known issue? Thanks, Itay

avnerw74 commented 3 years ago

Hi @phax , are you aware of performance issue with the servlet? We switched from AS2 server to AS2 Servlet recently in our code, and files in our test environments are now transferred extremely slow. With AS2 Server, uploading a single file with size of 100KB took less than 1 second. With AS2 Servlet, uploading a single file with size of 100KB takes 295 seconds!!

Any idea? Any parameters/configuration we might be missing?

Best Regards, Avner

phax commented 3 years ago

Hi guys, this is a duplicate of #121 As stated there: that depends on your environment. The code is exactly the same, except, that all the logic of the application server (Tomcat, Jetty, Wildfly, ....) is inbetween, and there might be lots of custom JEE filters, listeners etc. There is no generic answer to your question - sorry.