[jcifs] OutOfMemoryError when writing with SmbFileOutputStream

Krum Valkov k.valkov at bg.seeburger.com
Tue Nov 3 00:54:45 MST 2009


Hi Mike,

Here is the program. The problem does not occur when I use local user 
and no domain, so the domain is important. I hope you coud find the problem.

Best regards Krum

Michael B Allen ??????:
> Hi Krum,
>
> If you disable DFS the client will not support DFS. But even disabling
> it probably is not really making everything "ok". The OOM condition is
> probably not being caused by creating threads for the trusted domains
> lookup. It is more likely related to some byte[] array data not being
> released or something unrelated to the trusted domains lookup. It's
> just that creating a thread requires a chunk of memory and so that
> happens to be the moment at which you see the failure.
>
> Please resend your test program as an attachment and without line
> numbers and I will look into it.
>
> Mike
>
> On Mon, Nov 2, 2009 at 5:54 AM, Krum Valkov <k.valkov at bg.seeburger.com> wrote:
>   
>> Hi,
>>
>> When I set the jcifs.smb.client.dfs.disabled property to true the resolve method
>> does not call getTrustedDomains and everything is ok. Is there some case in
>> which this property may cause some problems?
>>
>>
>>
>>     
>
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20091103/0157fb5b/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TestFileStore.java
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20091103/0157fb5b/attachment-0001.ksh>


More information about the jCIFS mailing list