As per our project requirement we are using Zehon FTP to download the zip files from FTP.
Generally we download bulk no.of files from FTP at a time.
It is working fine for 2 or 3 times. but we try after 3 times it is giving the exception OutOfMemoryError or some times Buffer space is not available . Can any have the solution?
Please let us know.
My code is:
I recommended this jvisualvm tool. This tool helps to see what objects are taking up your memory.
The VisualVM can allow developers to generate and analyse heap dumps, track down memory leaks, perform and monitor garbage collection, and perform lightweight memory and CPU profiling. docs.oracle.com/javase/6/docs/technotes/tools/share/jvisualvm.html