This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread 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