Cannot list directories when connecting via FTP while running Litespeed

#1
Hello,

I have installed Litespeed on my server. The traffic is pretty much high. When the server load is high, I am not able to log in properly using FTP. It returns error :
-----
Command: MLSD
Response: 500 ,113 not understood
-----

When I stop the litespeed, I am able to login without any issues. I have tried many workarounds suggested but with no effect.

These are my settings :

Litespeed configuration :-
Max Connections 5000
Max Keep-Alive Requests 10000

Sysctl parameters :
net.ipv4.netfilter.ip_conntrack_buckets = 8192
net.ipv4.netfilter.ip_conntrack_count = 34055
net.ipv4.netfilter.ip_conntrack_max = 655360

# sysctl -w net.core.somaxconn=4096
net.core.somaxconn = 4096

If you guys need any other settings details please let me know. Kindly help in in this.

Thanks in Advance,
 

NiteWave

Administrator
#4
please provide the access to the server and detail steps to reproduce the issue.

another possibility is that the NIC card already reach its max limit --- 1Gbit during high traffic.
if so, what can do at litespeed side is to set
lsws web admin->Server->General->Security->Per Client Throttling

you can watch if NIC is full roughly by
lsws web admin->Actions->Real-Time Stats->Http Out

if it shows >= 80MB, it's nearly full.
 
#5
Hello,

It seems the NIC is full. The http out value is 112,609KB.
====
if so, what can do at litespeed side is to set
lsws web admin->Server->General->Security->Per Client Throttling
====

What should I do? What should I set 'per client throttling'.?

I am not at liberty to disclose the server login credentials. Hope you understand.
And thanks for your help.
 

NiteWave

Administrator
#6
ok. but the info already enough. root cause found.

here's a configuration example FYR only -- you need adjust it yourself per your server's status.
Static Requests/second:20
Dynamic Requests/second:2
Outbound Bandwidth (bytes/sec): 512K
Connection Soft Limit: 20
Connection Hard Limit:15
 

NiteWave

Administrator
#8
>Would it affect the user downloads if I set the parameters as you have provided?
yes, as the function suggests, it'll limit per user's bandwidth / connections etc.

in the graph,
Http Used: 3,997
Http Free: 3

the free http connections is too few --- please increase
lsws web admin -> Server -> Tuning -> Max Connections
to keep more free connections.
 
#9
Okay currently it is set as:

Static Requests/second:0
Dynamic Requests/second:0

Here, 0 stands for 'unlimited' or 'nil' ?

Would changing it to the one that you provided will help me in the FTP issue as well as provide decent environment for the users to download datas?

Also, if I increase the Max Connections, wouldn't it inturn increase the network throughput ?

> another possibility is that the NIC card already reach its max limit
 
#10
>Here, 0 stands for 'unlimited' or 'nil' ?
unlimited

>Would changing it to the one that you provided will help me in the FTP issue as well as provide decent environment for the users to download datas?
should be. the NIC won't be full and ftp can work. only 1 user shouldn't be able to download too fast from your server as before.

>Also, if I increase the Max Connections, wouldn't it in turn increase the network throughput ?
you have to watch/monitor. since individual user can't download too fast as before, your NIC should have more free bandwidth to serve more users as well as ftp download.
 
Top