[ 
https://issues.apache.org/jira/browse/AXIS2-5487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17149445#comment-17149445
 ] 

Robert Lazarski commented on AXIS2-5487:
----------------------------------------

Well the ArrayIndexOutOfBoundsException error means you have an "off by one 
error" , actually two in your case. You first need to fix that. 

[https://en.wikipedia.org/wiki/Off-by-one_error]

However the limit of open files you are exceeding as shown by lsof is another 
problem that can cause unexpected side effects. 

In Linux/Unix everything is a file, including sockets. Java itself opens lots 
of files, you can filter java only by the command below though its an "all 
process" limit, not just java. 

lsof -u iscpadm | grep java | wc -l

Anyways, this limit is per user because its meant to stop one user account from 
using too much of the system resources.

All the user accounts should exceed no more than half of the system limit. 
Mostly these days, for example, on a Linux machine with 64k open files as max I 
will run a server with an account that has a 32k limit.

So you could (a) increase your account open files limit from 2000 to 4000 and 
see what happens, (b) move to another machine that has 4000 or more open file 
limit, (c) throttle the server by load balancing it with multiple servers via a 
proxy.

> Attempted read on closed stream - II
> ------------------------------------
>
>                 Key: AXIS2-5487
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5487
>             Project: Axis2
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.6.2
>         Environment: Windows XP SP2, JDK 1.7, AXIS2-1.6.2, Jetty 7.2.0
>            Reporter: Espen Rydningen
>            Priority: Major
>              Labels: apache-mime4j-core-0.7.2, axiom_1.2.13, axis2_1.6.2
>         Attachments: DebugAndStacktrace.txt, wsRequest.txt, wsResponse.txt
>
>
> After upgrading from Axis2 1.5.6 to Axis2 1.6.2 we started receiving this 
> "org.apache.axiom.om.OMException: java.io.IOException: Attempted read on 
> closed stream." 
> WS request and response is attached
> Debug log and stacktrace is attached



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to