Re: [users@httpd] Apache2 slow with protfpd

2011-07-06 Thread Jeroen Geilman

On 2011-07-06 21:56, Guille wrote:
Yeah it's sad but apache is serving a php page to connecto to a FTP 
server on the same machine.
It's supposed to be another kind of access for customers. Not all 
customers know how to use an ftp program correctly, so i want to offer 
them another way to connect via browser directly.




... so allow them to use a browser directly.
Why does there have to be FTP in between ?

Apache excels at serving files.


2011/7/6 Jeroen Geilman mailto:jer...@adaptr.nl>>

On 2011-07-06 17:47, Guille wrote:

I'm using:
- Debian Squeeze
- Server version: Apache/2.2.16 (Debian)
- ProFTPD Version 1.3.3c
- Net2FTP v 0.98

Hi guys i'm currently using a php script (Net2FTP) as a web
FTP client. But i'm experiencing some issues when i try to
access big files.
I know this is an Apache list but I've already asked in
proftpd forums and net2ftp forums and nobody could help me.


So let me get this straight - you're using apache to serve a PHP
page that connects to an FTP server ON THE SAME MACHINE to
transfer files over the network ?

Wow.

Really - wow.


When i try to access a big file (1GB or more) from my web
server through apache2 directly it works well i get the
download start immediately.
When i access a big file connecting to my proftpd server
through a normal client like Filezilla i get no problem too,
it works as intended.

The problem occurs when i connect through net2ftp script.


Contact its author and ask him to fix it.


Connection and file listing it's ok. But when i try to get a
big file, is when i get the issue. It takes for e.g 15minutes
to serve the net2ftp script client a 500Mb file.


Obviously the bad script tries to retrieve the FTP file completely
before serving it via apache.
Try it with a file larger than you have virtual memory.
The process should die.


I think the problem is the connection between apache2 and proftpd.


No, it's not. it's the bad script.

--
J.


-
The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org

 "   from the digest: users-digest-unsubscr...@httpd.apache.org

For additional commands, e-mail: users-h...@httpd.apache.org







Re: [users@httpd] Apache2 slow with protfpd

2011-07-06 Thread Guille
Yeah it's sad but apache is serving a php page to connecto to a FTP server
on the same machine.
It's supposed to be another kind of access for customers. Not all customers
know how to use an ftp program correctly, so i want to offer them another
way to connect via browser directly.

2011/7/6 Jeroen Geilman 

> On 2011-07-06 17:47, Guille wrote:
>
>> I'm using:
>> - Debian Squeeze
>> - Server version: Apache/2.2.16 (Debian)
>> - ProFTPD Version 1.3.3c
>> - Net2FTP v 0.98
>>
>> Hi guys i'm currently using a php script (Net2FTP) as a web FTP client.
>> But i'm experiencing some issues when i try to access big files.
>> I know this is an Apache list but I've already asked in proftpd forums and
>> net2ftp forums and nobody could help me.
>>
>
> So let me get this straight - you're using apache to serve a PHP page that
> connects to an FTP server ON THE SAME MACHINE to transfer files over the
> network ?
>
> Wow.
>
> Really - wow.
>
>
>  When i try to access a big file (1GB or more) from my web server through
>> apache2 directly it works well i get the download start immediately.
>> When i access a big file connecting to my proftpd server through a normal
>> client like Filezilla i get no problem too, it works as intended.
>>
>> The problem occurs when i connect through net2ftp script.
>>
>
> Contact its author and ask him to fix it.
>
>
>  Connection and file listing it's ok. But when i try to get a big file, is
>> when i get the issue. It takes for e.g 15minutes to serve the net2ftp script
>> client a 500Mb file.
>>
>
> Obviously the bad script tries to retrieve the FTP file completely before
> serving it via apache.
> Try it with a file larger than you have virtual memory.
> The process should die.
>
>
>  I think the problem is the connection between apache2 and proftpd.
>>
>
> No, it's not. it's the bad script.
>
> --
> J.
>
>
> --**--**-
> The official User-To-User support forum of the Apache HTTP Server Project.
> See 
> http://httpd.apache.org/**userslist.html>
> for more info.
> To unsubscribe, e-mail: 
> users-unsubscribe@httpd.**apache.org
>  "   from the digest: 
> users-digest-unsubscribe@**httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Apache2 slow with protfpd

2011-07-06 Thread Jeroen Geilman

On 2011-07-06 17:47, Guille wrote:

I'm using:
- Debian Squeeze
- Server version: Apache/2.2.16 (Debian)
- ProFTPD Version 1.3.3c
- Net2FTP v 0.98

Hi guys i'm currently using a php script (Net2FTP) as a web FTP 
client. But i'm experiencing some issues when i try to access big files.
I know this is an Apache list but I've already asked in proftpd forums 
and net2ftp forums and nobody could help me.


So let me get this straight - you're using apache to serve a PHP page 
that connects to an FTP server ON THE SAME MACHINE to transfer files 
over the network ?


Wow.

Really - wow.

When i try to access a big file (1GB or more) from my web server 
through apache2 directly it works well i get the download start 
immediately.
When i access a big file connecting to my proftpd server through a 
normal client like Filezilla i get no problem too, it works as intended.


The problem occurs when i connect through net2ftp script. 


Contact its author and ask him to fix it.

Connection and file listing it's ok. But when i try to get a big file, 
is when i get the issue. It takes for e.g 15minutes to serve the 
net2ftp script client a 500Mb file.


Obviously the bad script tries to retrieve the FTP file completely 
before serving it via apache.

Try it with a file larger than you have virtual memory.
The process should die.


I think the problem is the connection between apache2 and proftpd.


No, it's not. it's the bad script.

--
J.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Apache2 slow with protfpd

2011-07-06 Thread Guille
I'm using:
- Debian Squeeze
- Server version: Apache/2.2.16 (Debian)
- ProFTPD Version 1.3.3c
- Net2FTP v 0.98

Hi guys i'm currently using a php script (Net2FTP) as a web FTP client. But
i'm experiencing some issues when i try to access big files.
I know this is an Apache list but I've already asked in proftpd forums and
net2ftp forums and nobody could help me.

When i try to access a big file (1GB or more) from my web server through
apache2 directly it works well i get the download start immediately.
When i access a big file connecting to my proftpd server through a normal
client like Filezilla i get no problem too, it works as intended.

The problem occurs when i connect through net2ftp script. Connection and
file listing it's ok. But when i try to get a big file, is when i get the
issue. It takes for e.g 15minutes to serve the net2ftp script client a 500Mb
file.
I think the problem is the connection between apache2 and proftpd.

Watching the processes with "top" on my server i get something like this.


top - 17:39:59 up 2 days,  6:44,  3 users,  load average: 0.00, 0.00, 0.00
Tasks: 198 total,   1 running, 197 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.1%us,  0.2%sy,  0.0%ni, 99.6%id,  0.2%wa,  0.0%hi,  0.0%si,
0.0%st
Mem:   3504560k total,  3154244k used,   350316k free,86552k buffers
Swap:  2654792k total,0k used,  2654792k free,  2718484k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 9129 www-data  20   0 36788 9260 3484 S1  0.3   0:00.13 apache2
10371 10008 20   0 10348 3260 1928 S1  0.1   0:00.07 proftpd

While my server is trying to serve the file it also totally blocks the
apache2 server.

I've tried looking for apache2 config, php5 config and proftpd configs. And
I'm going mad at this point.

I don't know if there's any option to make apache2 use more memory for php
scripts, but i've already edited php config to use more memory on request
etc.. I've also checked max execution time, timeouts etc...

Thank you very much all of you in advance.

Best regards,
Guille.