I gave this a try and it works well for me with Win XP. I can run tens of
thousands of requests with no errors, and it seems about twice as fast as
before.

  ...ant

On 3/27/07, Asankha C. Perera (JIRA) <[EMAIL PROTECTED]> wrote:


     [
https://issues.apache.org/jira/browse/SYNAPSE-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]

Asankha C. Perera updated SYNAPSE-86:
-------------------------------------

    Attachment: pipefix.patch

This is a quick fix to the problem, re-using the buffered pipe code
already available in the JDK through the PipedInputStream and
PipedOutputStream. This patch would use the above pure Java pipe
implementation on Windows but continue to use the native Pipe
implementations on other operating systems where there are no issues.

This patch is for review and comment by the community - as I know this is
a simple and quick fix. Also this needs to be tested on Windows - Probably
by Indika/Ant under load.

> Overcome resource limitations in Windows systems due to use of Pipes
when the NIO transport is used under load
>
--------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-86
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-86
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 1.0-RC1-B2
>         Environment: Windows
>            Reporter: Asankha C. Perera
>         Assigned To: Asankha C. Perera
>         Attachments: pipefix.patch
>
>
> On Windows Systems the java.nio.channels.Pipe implementation (
sun.nio.ch.PipeImpl) uses a socket connection which is both expensive and
resource intensive. This causes TCP ports to be exhausted when the NIO
transport is being used under load. Linux and Solaris systems optimize this
to native calls.
> However, Synapse NIO transport must be able to perform well and
unhindered even on operating systems like Windows ;-)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to