Advertisement

05.20.2008 at 04:32PM PDT, ID: 23419224
[x]
Attachment Details

Sending messages to the AS400 - how to increase throughput.

Asked by Syd-IT-Development in Message Queue, Programming for iSeries / AS400, .NET

Tags: , , ,

I have written a basic .NET program to write to a MQ queue on an AS400 and I would like to increase the message throughput.

The programs sends about 2.5 messages per second, which is very slow. Looking into where the time is spent, the longest part of the operation is the Put.

Here is some additional information:
* The ping time to the AS400 is approx. 400ms.
* Creating each message takes less than 10ms.
* The message payload is 1250 bytes but I get the same performance with 20 byte payload.
* The link tested is 2MB.
* Additional testing was done a 45MB/200ms link. Message throughput increased to 5 messages per second which appears to be directly proportional to the latency.

Here is a snippet of the log file and I have attached the code fragment that generates it.
2008-05-15 10:09:09,657 DEBUG GMIFormat Message sent in 406ms
2008-05-15 10:09:10,063 DEBUG GMIFormat Message sent in 406ms
2008-05-15 10:09:10,469 DEBUG GMIFormat Message sent in 406ms
2008-05-15 10:09:10,860 DEBUG GMIFormat Message sent in 390ms
2008-05-15 10:09:11,266 DEBUG GMIFormat Message sent in 390ms
2008-05-15 10:09:11,672 DEBUG GMIFormat Message sent in 406ms

I can supply additional MQ configuration information if required.

Thanks in advance.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
t = Now()
Try
   mqq.Put(msg, pmo)
Catch mqex As MQException
   logger.Error("Error putting message on queue", mqex)
   Exit While
Catch ex As Exception
   logger.Error("Error putting message on queue", ex)
   Exit While
End Try
 
logger.Debug("Message sent in " & Now.Subtract(t).Milliseconds & "ms")
[+][-]05.21.2008 at 01:40AM PDT, ID: 21613040

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 03:22AM PDT, ID: 21613501

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 12:46PM PDT, ID: 21618392

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 02:25PM PDT, ID: 21619157

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 03:07PM PDT, ID: 21619449

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 05:09PM PDT, ID: 21620009

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 06:06PM PDT, ID: 21620195

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 01:50AM PDT, ID: 21621865

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 04:30PM PDT, ID: 21628427

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 01:11AM PDT, ID: 21630290

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Message Queue, Programming for iSeries / AS400, .NET
Tags: IBM, MQSeries, .NET Classes for MQ, MQClient V6 for Windows, MQServer V6 for iSeries, C#, VB.NET
Sign Up Now!
Solution Provided By: lgacs
Participating Experts: 3
Solution Grade: B
 
 
[+][-]05.23.2008 at 01:32AM PDT, ID: 21630384

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 06:03PM PDT, ID: 21656935

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628