[opensuse] FTP-server problem ?
Hi, We manufacture devices which download firmware to program themselves. For that I set up a KVM virtual machine with a dhcp-server, a DNS-server and a ftp-server. Everything works fine, except that after a number of devices have connected, the server runs out of memory and kills processes to recover memory space. One of those processes is named, which is needed for the devices to find the ftp-server. Top and ps aux don't display anything I can see that consumes much memory : about 80 processes, everyone using 0.1% of memory, some a little more. First the vm had 512M of memory, I tried 1G of memory with the same problems. Any suggestions where to look ? The procedure more in detail : A device gets an ip-address from the dhcp-server together with the address of the name-server. Then the device contacts the ftp-server by using its name. The device logs in anonymously and gets its files. Then the device logs in using a name and password to upload a log-file. The device configures itself and on a regular basis the device continues to log in to upload log-files, a few hundred bytes. After configuring itself (takes about 10 minutes), the device enters a loop to test itself. It also logs in to see if there are new files, and uploads a log-file. I have the impression that the upload in the testloop causes the memory-consumption, which I see with top. At more or less at the same time, there are 12 devices connected to the ftp-server. After all devices are physically disconnected from the network, I see the memory "recover" but that takes a while, not fast enough to continue connecting devices. After some 20-30 devices, the system becomes unusable, because of the killed processes. The ftp-server is vsftpd. More memory seemed to help nothing, even the contrary, I have the impression the machine runs out of memory faster. I decreased some time-outs, maybe not enough ? idle_session_timeout=120 data_connection_timeout=120 Unfortunately, it's difficult to debug this : after configured, it takes much work to put the devices in their "virgin" state. And now the devices are shipped to the customer. But there will be others in the near future, so I would like to solve this problem. I hope this makes sense so somebody might have an idea where to look, Thanks in advance, Koenraad Lelong. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Koenraad Lelong