ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 49326] OutOfMemoryError: Map failed
Date Tue, 21 Aug 2012 06:32:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49326

--- Comment #12 from Krishnan Ganapathy <krishnan.ganapathy@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.

Mime
View raw message