active mode ftp connection from linux

Hi,

We have one java client which connects to a windows server through ftp in active mode and gets files. When we run this client on hp-ux, it is able to transfer 100k files. But when we run the same client on Linux server it is able to transfer only 200 files at max and it is hanging there without any error. When we tried manually by mget command in active mode we are not able to get the files. Here also it is hanging without any error. But in passive mode we are able to get the files.

As we are able to get the files on unix from windows server in active mode, i assume that there are no problems on windows server side. I need to change setting on the linux server. I am new to linux and i wanted to know if there are any settings on linux server side which we need to make so that it can get the files from windows server in active mode. Our's is Red Hat Enterprise Linux (RHEL) 5.5 with Advanced Platform version .
Any help in this regard is appreciated.

Thanks
Pradeep

What, exactly, is the linux server doing? Are you trying to retrieve 100,000 files through mget * or what? Include lines of code if necessary.