ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 2971] - The <sql> task does not release memory after it is completed which causes an out of memory error.
Date Fri, 21 Dec 2001 22:59:40 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message