Re: [JSch-users] Exceptions in ls, get or rm commands
Status: Alpha
Brought to you by:
ymnk
From: M <ma...@lu...> - 2006-07-18 22:40:54
|
> Ada, > > I guess you are trying to list a huge directory and run the JVM with a > small stack (try calling java with -Xms32m and see, if the stack is big > enough then). > How do you call your test-program and how many entries does the dir have? The example showed just a few files. It might be worth checking that the connection ends up in the expected directoy. Have you tried with a bigger heap size -Xmx=1024M if you have the memeory... Does sound like a bug though... > And if you have to catch an OutOfMemoryError for cleanup, rethrow it > afterwards! I would not trust any message I get after suppressing an > OutOfMemoryError. I believe the sun recomendation is never to catch throwables, all bets are off after you run out of memeory and creating more objects which is most likley if you try to handle it is unlikly to work if your out of memory... -- M |