You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/12/21 23:59:40 UTC

DO NOT REPLY [Bug 2971] - The task does not release memory after it is completed which causes an out of memory error.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2971>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2971

The <sql> task does not release memory after it is completed which causes an out of memory error.

sbailliez@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From sbailliez@apache.org  2001-12-21 14:59 -------
Should be fixed in CVS HEAD or wait for the next nightly build.

I did a naive fix where I'm caching the loader based on the driver name.
It would be better to use a combination of driver name/classpath but I have 
rarely seen the need to run different versions of a driver in the same run, so 
this should not be such an issue.

I tested with mysql and everything goes well with 5000 calls in 160 secs. 
Roughly it is 10-15 times faster than without caching.

I will commit a simple testcase to make it easy for people to run such tests.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>