File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes FTPClient problem in different Win OS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "FTPClient problem in different Win OS" Watch "FTPClient problem in different Win OS" New topic
Author

FTPClient problem in different Win OS

Arsen Lupen
Greenhorn

Joined: Nov 20, 2008
Posts: 15
Hi there,
I have developed new application which uses apachi commons.net FTPClient to connect to a Windows OS FTP Server and checks approximately 4000 folders on FTP Server.
I am generating Threads to minimize the looping over folders.Every thread tries to loop for example 250 folders.When i run the application on my local computer WinXP no problem.When i yesterday installed WIN2003 Server and run the application i realized that program runs tries 3-5 times for every thread sleeps ...and suddenly i see that threads are blocked.
I use JRE6 and JConsole also i can see very well that every thread are in state RUNNABLE and RMI TCP threads are time waited state.I could not find any solution the whole day.
is it Apache problem or JRE problem or should am i using threads wrong?
Thanks in advance for your helps

BTW there is a code ftp.listfiles(); threads are waiting for this i think but why i dont know
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: FTPClient problem in different Win OS