LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Server stop responding remoteconnections because of descriptior limit? (https://www.linuxquestions.org/questions/linux-general-1/server-stop-responding-remoteconnections-because-of-descriptior-limit-4175572333/)

postcd 02-15-2016 02:38 PM

Server stop responding remoteconnections because of descriptior limit?
 
Hello,

im having an Linux VPS based on OpenVZ virtualization.

And im using it as a proxy server. Sometimes VPS proxy stop delivering websites in my home computer webbrowser, and it also stop always when i try to launch torrent client which is using this proxy.

VPS CPU and RAM is iddle and free, data transfer is also quite minimal. someone adviced i check file file descriptor limit, and here is the result:

# ulimit -a
Quote:

pending signals (-i) 191532
max locked memory (kbytes, -l) 64
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
max user processes (-u) 191532
List Number Of Open File Descriptors
# cat /proc/sys/fs/file-max
Quote:

2451492
ount All Open File Handles
# lsof | wc -l
Quote:

6658
List File Descriptors in Kernel Memory
# sysctl fs.file-nr
Quote:

fs.file-nr = 1488 0 2451492
I wanted to ask for advice if these values are OK, or if i need any of these tweaked. I will then google how to do it.

Thank you

unSpawn 02-15-2016 05:55 PM

Quote:

Originally Posted by postcd (Post 5500674)
Sometimes VPS proxy stop delivering websites in my home computer webbrowser, and it also stop always when i try to launch torrent client which is using this proxy.

If system resource usage is low and data transfer is minimal then I'd look at network problems first? Turn on debug logging if the proxy allows for it, tcptraceroute from proxy to source when errors occur and keep count of stats the provider, erm, provides. Maybe your VPS shares resources with too many others and may experience problems if others hog resources?..

postcd 02-16-2016 09:35 AM

unSpawn:

I tried to enable maximum verbosity debug logging and here are results for both server/client proxy log: http://pastebin.com/t1xQwCTV

i also tried to install and run tcptraceroute from my server (proxy) to my home computer IP as suggested, the result is always same no matter if i do when internet works or when proxy is "not responding"/not loading webpages on my home computer. it is like:

Quote:

14 myisphotname.tld (ispIP) 126.862 ms 126.827 ms 126.981 ms
15 * * *
16 * * *
17 my-ip-here.myisphotname.tld (myIPhere) [closed] 126.708 ms 126.785 ms 126.794 ms
always [closed], always three stars two times..

i have full access to the VPS and dedicated server, please which commands i can run to discover cause?

unSpawn 02-16-2016 04:51 PM

Quote:

Originally Posted by postcd (Post 5501065)
I tried to enable maximum verbosity debug logging and here are results for both server/client proxy log: http://pastebin.com/t1xQwCTV

Helpful. Server side: clearly says "timed out". Client side: searching for "System.Net.Sockets.SocketException (0x80004005)" gives: an established connection was aborted by the software in your host machine. Ergo the connection between the VPS and your client doesn't seem too stable and suffers from timeouts. Can you elaborate on that?


Quote:

Originally Posted by postcd (Post 5501065)
i also tried to install and run tcptraceroute from my server (proxy) to my home computer IP as suggested, the result is always same no matter if i do when internet works or when proxy is "not responding"/not loading webpages on my home computer.

When you tcptraceoute use the shadowsocks port (TCP/8388 is the default).


All times are GMT -5. The time now is 11:03 PM.