You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2012/08/21 08:32:59 UTC

[Bug 49326] OutOfMemoryError: Map failed

https://issues.apache.org/bugzilla/show_bug.cgi?id=49326

--- Comment #12 from Krishnan Ganapathy <kr...@gmail.com> ---
We are still able to reproduce this issue in our app deployed on JBoss server
(5.1.0). We are using ANT 1.8.2 version which from what i understand contains
this fix. 

Interestingly as mentioned in one of the comments, we are getting this error
only on 32 bit m/c with Xmx setting as 1024M. We then lowered it to 800M and
this error did not occur. 

>From our analysis, its seems that whatever be the block size (16M in the patch
applied), there is always a chance that this error might occur as there might
be stray cases where the native map0 call in the FileChannel class might fail.

Hence, the code should fallback on using the read/write methods on FileChannel
or use the classic IO to accomplish this copy instead of throwing an
IOException. 

We would like to go ahead, make changes and submit the patch but wanted to know
if there are any other suggestions that we can try out.

-
Krishnan

-- 
You are receiving this mail because:
You are the assignee for the bug.