You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by ZZZ Liu <z2...@yahoo.com> on 2004/07/30 05:46:13 UTC
memory leak
Hi,
I am writing a tool to import data into database and
I am using OJB 1.0 as the persistence layer to do the
actual insertion/update into database. I found that I
will get OutOfMemoryError problem if I load a large
number (over 100, will commit for each file) of files'
data. It works fine if I only load a small number of
files. Did anybody encounter this problem before? Is
there any known issue regarding OJB memory usage?
Thanks in advance,
Zhe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: memory leak
Posted by Thomas Mahler <th...@web.de>.
Hi Zhe,
I don't know of any major memory issues with OJB.
In the OJB-junit test we execute ten-thousands of OJB calls without any
memory issues.
If your app usaes all memory it might well be because it allocates all
memory to hold the file data.
You should use a memory profiler to find out where the memory is used up.
cheers,
Thomas
ZZZ Liu wrote:
> Hi,
>
> I am writing a tool to import data into database and
> I am using OJB 1.0 as the persistence layer to do the
> actual insertion/update into database. I found that I
> will get OutOfMemoryError problem if I load a large
> number (over 100, will commit for each file) of files'
> data. It works fine if I only load a small number of
> files. Did anybody encounter this problem before? Is
> there any known issue regarding OJB memory usage?
>
> Thanks in advance,
> Zhe
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org