Skip to content
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

Performance issue when sending a series of documents #116

Open
mgu7 opened this issue Apr 3, 2020 · 8 comments
Open

Performance issue when sending a series of documents #116

mgu7 opened this issue Apr 3, 2020 · 8 comments
Labels
bug Something isn't working issue Issue which are under review, can be bug
Milestone

Comments

@mgu7
Copy link

mgu7 commented Apr 3, 2020

During tests of sending series of documents via the AS4 protocol, incomprehensible delays occurred. The first dozen or so documents were sent normally (time about 5 sec per 4kb document), but the next time oscillated to over 300 sec. The transmission of 100 files took 50 minutes in sequential mode and over 55 minutes in multi-threaded mode (maximum 5 threads).
For comparison, I conducted a test using the AS2 protocol and the times were 5 minutes (1 thread) and 2.5 min in multi-threaded mode.

I attach files in the analysis of connection times at the TCP level for 4 and 38 seconds of transmission (I can attach a full dump from tcpdump).

Test environment: Debian Linux, Oxalis 4.1.3, AS4 4.1.9, Acceptacce environment (SMK)

as4-04sec.txt
as4-38sec.txt

Regards
Mieczyslaw Guja

@FrodeBjerkholt
Copy link
Contributor

Do you send to different APs and do know what software is running on each of these APs?

@mgu7
Copy link
Author

mgu7 commented Apr 3, 2020

The same software on each AP. Previously I have done the test on the same AP with the similar results, but to debug the sessions it was easier to do this on various AP.

@FrodeBjerkholt
Copy link
Contributor

How do you send the messages? Are you using an implementation based on the Transmitter interface or are you sending using multiple oxalis-standalone senders?

@mgu7
Copy link
Author

mgu7 commented Apr 3, 2020

I have used oxalis-standalone process.

@FrodeBjerkholt
Copy link
Contributor

To test mulitiple threads you can use a single oxalis-standalone sender using the -repeat argument.

To send 100 instances of the same file, add:

-repeat 100

Please note that the oxalis-standalone sender is not intended to be used in a production environment, because there are quite a lot of initialization being done each time you execute it.

In a production environment you should create a sender application based on the Transmitter interface, so that the initialization is done only at startup. This sender application can for instance have a message queue in a database or use JMS.

@ahaaje
Copy link

ahaaje commented Jan 25, 2021

I'm seeing similar issue as the OP using oxalis-standalone, and I have a question regarding transmission time. Our first files where sent with a time of 9sec, but then increased to 60-200 sec

From the debug output I see this returned

Average transmission time was 68934.0ms

Does that really mean transmission time across the wire, or does it involve other activities (initialization)? If it only include actual transmission across the wire, would not that point to a problem at the receiving end?

I would assume initialization time to be more or less the same on each run. We are sending all the files to same AP, so I'm trying to determine if the problem is on our or their side.

Would specifing the url to their AP improve performance by eliminating lookup?

@SuperJuell SuperJuell added bug Something isn't working enhancement New feature or request labels Feb 2, 2021
@ahaaje
Copy link

ahaaje commented Apr 22, 2021

I see there is pull request where the issue #120 mention similar problem with increasing transmission times. Will that PR fix this issue?

@SuperJuell SuperJuell added the Pri/M Medium priority label Jun 2, 2021
@aaron-kumar aaron-kumar added the issue Issue which are under review, can be bug label Dec 6, 2021
@aaron-kumar aaron-kumar added this to the 5.x.x milestone Dec 6, 2021
@aaron-kumar aaron-kumar moved this to Open Issues- Review Required in Oxalis Public Roadmap Dec 6, 2021
@aaron-kumar aaron-kumar removed Pri/M Medium priority enhancement New feature or request labels Jul 29, 2022
@aaron-kumar
Copy link
Member

@ahaaje : Can you confirm whether you are still facing performance issue?

If you still experiencing performance issue then then in most of case, it may be because of front end infrastructure setup (load balancer, firewall etc), or because of custom plugin implementation for file/database persistence etc. Please measure time taken at each steps and with different AP (using different AP library per say) and try to find out culprit. Please share your finding if it is something related to Oxalis.

Note: This issue will automatically moved to discussion if No response received in week time.

@aaron-kumar aaron-kumar modified the milestones: 5.x.x, Future, 6.x.x Jan 16, 2023
@aaron-kumar aaron-kumar moved this from Open Issues- Review Required to Q1 2023 –Jan-March in Oxalis Public Roadmap Jan 16, 2023
@aaron-kumar aaron-kumar moved this from Q2 2023 – April-June to Q4 2023 – October-December in Oxalis Public Roadmap Sep 25, 2023
@aaron-kumar aaron-kumar moved this from Q4 2023 – October-December to Future in Oxalis Public Roadmap Dec 9, 2023
@aaron-kumar aaron-kumar modified the milestones: 6.x.x, 7.x.x Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working issue Issue which are under review, can be bug
Projects
Status: Future
Development

No branches or pull requests

5 participants