This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
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