LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-15-2016, 02:38 PM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
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
 
Old 02-15-2016, 05:55 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by postcd View Post
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?..
 
Old 02-16-2016, 09:35 AM   #3
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-16-2016, 04:51 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by postcd View Post
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 View Post
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).
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache close wait error :Apache stop responding,Server get hangs jsaravana87 Linux - Server 1 06-19-2012 11:49 AM
Windows stop responding to keyboard (13.1) raela Slackware 7 06-03-2010 02:47 PM
Linux server will stop responding to telnet requests lab123 Linux - Security 3 10-25-2005 12:37 PM
GUI's stop responding in RH9 Charlie Spencer Linux - Newbie 4 05-27-2004 02:39 PM
Slackware stop responding... /bin/false Slackware 6 03-12-2004 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration