Ubuntu Servers :: Maximum Simultaneous Socket Connection?

Sep 16, 2010

I'm writing a client-server program. There are more than 500 clients. I start a thread to process and response to each client and the processing needs some MySQL query. I'm looking for any possible hazards on my server!

1- Any limitation on "Maximum Simultaneous Socket Connection"?

2- Any limitation on using mysql?

3- As socket on Linux are file, Any limitation on number of sockets or threads?

I'm using a Linux server (Centos or Fedora or Ubuntu) and clients are both Linux and Windows.

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: SSH Error: Read From Socket Failed: Connection Reset By Peer?

Dec 8, 2010

figure out this error?

Code:
kradalby@hpcompaq6530b-laptop ~/.ssh $ ssh -vvv -p 110 kradalby@dfekt.no
OpenSSH_5.5p1 Debian-5+b1, OpenSSL 0.9.8o 01 Jun 2010

[code]....

View 3 Replies View Related

Networking :: Configuring Socket Timer To Release Socket Once The Connection Is Terminated?

Jun 4, 2010

I want to configure socket timer to release socket(port) once the connection is terminated. Do we have something in Linux OS to configure this delay to release socket?.

Any command, link or man-page anything will be helpful.

I browsed a lot but unable to find it.

View 1 Replies View Related

Server :: Socket Connections / Socket And TCP Connection For Connecting To An External System?

Dec 7, 2010

Anyone knows the difference between a socket and TCP connection for connecting to an external system?

View 1 Replies View Related

Software :: What Is Maximum Number Of Bytes Is Possible To Send From Udp Socket?

Oct 1, 2010

I am created one udp socket. i want to send the data(bytes) to another PC.i need to send 614400 bytes of data. while sending it saying error like" message is too long ". so what is the maximum possible data can i send from a socket?

View 3 Replies View Related

Networking :: Multiple FTP Upload Socket Error "Connection Reset By Peer: Socket Write"

Jan 31, 2010

I am pragmatically trying to upload a list of files from my client machine to a proFTPd server I have running on Ubuntu. Every time I get several (around fifty) files into the transfer, I get the following error: Quote: Connection reset by peer: socket write error

I am able to remotely upload 25,000 small files of ~ 1K in size, but when I go to upload hundreds of 2-4 Mb files, I get a socket write error. Am I using up all available sockets before they can be released? If so, how do I release the sockets? If not, what does this error mean and why am I getting it?

View 1 Replies View Related

Ubuntu Servers :: GUI For Several Thousand Simultaneous Users

Jan 30, 2011

GUI for several thousand simultaneous users. I know this post may at first seem a little out of place here when you begin to read it but please bear with me and I think you will understand why I am seeking feedback here. The company I work for (whose name I am withholding for now) is currently running a little over 5,000 Linux servers. Each of these servers has a minimum of 500 users, some as many as 3,000 users on them during a business day.

These servers are serious pieces of hardware. They have hot swappable raid arrays, redundant well most everything is redundant on them, frankly. Our conversion to Linux took place about 8 years ago. We have a proprietary database and development environment that was originally built in the 1970s. All but the most recent applications run in this proprietary environment, whereas our newer applications are using PostgreSQL and executables that are delivered using Apache web server and run inside each users Windows Explorer session on their local PC.

Really, our situation is rather typical of any organization that has legacy software that still gets the job done - with the possible exception of the **massive** number of total users we keep up-and-running every day. more, our next Linux servers are expected to support somewhere between 6,000-8,000 users [exact figure yet to be determined]. You may ask this is all very interesting but why are you posting this here?.

I am researching alternate ways of presenting attractive and functional GUI to users of Linux servers. I find the Ubuntu GUI to be attractive and very functional. the user input these forums get. Finally I am looking for points of view outside my own organization so I don't fall into the 'but we don't do it that way here' mental trap and miss a really great concept.

I have an idea about how to solve this growing challenge, and I want to present it here for your review and comments. For those who might think I have never worked on systems of this size; I can't imagine my opinion would be valuable remember this: The Ark was built by a passionate volunteer; The Titanic was built by paid professionals.....

View 9 Replies View Related

Ubuntu Networking :: Windows Socket Connection ?

Mar 17, 2010

I am trying to connect with Winsock Windows sockets from a PC running Windows XP with a utility program that enables a dialogue over sockets. I have the listener running on Ubuntu on Port 6330. I can telnet to the listener and interact from both the Ubuntu desktop and the XP PC. But my utility program using Winsock is unable to connect. I have no firewalls impeding this. Maybe there is a better vehicle than the Windows Winsock.dll? I dont need network file access, just TCP ports/.sockets.

View 1 Replies View Related

Ubuntu Servers :: Set Maximum Attachment Size?

Jun 4, 2011

I use U-server. I set up an mail server as described in Ubuntu Documentation > Ubuntu 11.04 > Ubuntu Server Guide > Email Services.

How can I turn off maximum attachment size. On my server I don't want to limit the size of e mails that arrives.

I manage my server with webmin

View 2 Replies View Related

Ubuntu Servers :: Can't Get Near Theoretical Network Maximum Speed

Mar 10, 2010

With three 1.5TB, 7200RPM drives in RAID0, they thrash. And yet the network out, 4 gigabit ports LAG'd together to create a single 4 gigabit connection, can't even push a single gigabit a second.

Here's what I've done so far:

I've enabled jumbo frames on the bond: ifconfig bond0 mtu 9000

Tweaked SAMBA performance:

Tweaked hdparm:

I haven't enabled jumbo frames on the switch but I'm almost sure that won't help me much after trying all this.

I'm running out of ideas here guys. The clients connected are pulling down images in both Ghost and WIM (ImageX) format. Large files too, upwards of 12 gigabytes.

View 6 Replies View Related

Ubuntu Networking :: Java Socket Connection Created In More Than 3 Minutes

Mar 7, 2011

I'm running Ubuntu 10.10. I have a problem with any client side network communication from any java based program/application. I've tried to run the following code:

Code:
public static void main(String[] args) throws Exception {
long start = System.currentTimeMillis();
Socket s = new Socket("ubuntuforums.org", 80);
System.out.println("1. connection created in "+ (System.currentTimeMillis() - start)/1000.0 +" s");
s.close(); start = System.currentTimeMillis();
s = new Socket("ubuntuforums.org", 80);
System.out.println("2. connection created in "+ (System.currentTimeMillis() - start)/1000.0 +" s");
s.close(); }

The result is the following:
Code:
1. connection created in 189.31 s
2. connection created in 0.085 s

I've tried both java-1.6.0-openjdk and java-6-sun-1.6.0.24 with almost the same results. During the extremely long 189 seconds, the processor is doing almost nothing (java thread has 0 %). I've tried also a wireshark to check what is going on, but the first packet was released after those 189 seconds. There is nothing in log files, I have no exceptions or errors, and the connections work (after the first long delay) just fine.

View 2 Replies View Related

Debian :: Find Out Connection Between Process And Socket?

Feb 20, 2010

I have the following problem. I want to find out connection between process and socket. When I type to the terminal the following command netstat -anpetu so I get the following output:

[Code]....

As you can see just some connection have assign PID/Programme. How can I find out Program of this socket without PID/programme. like this 0.0.0.0:52472? Certainly I know that some port are well-known but there are a lot of unknown ports(like 8307 3350 and so on).

View 3 Replies View Related

Ubuntu Servers :: Maximum Of 1024 File Descriptor Limit?

May 4, 2011

I'm running nginx for static files and as a proxy server for a comet IM server on ubuntu Jaunty. On high load I'm hitting a limit of 1024 file descriptors. I've tried increasing this limit but still can't pass 1024. Does "more /proc/sys/fs/file-nr" gives me the global count of used file descriptors? Why do I see a maximum of 1024 open file descriptors in /proc/sys/fs/file-nr if this is the global count for the machine and each user should have at least 1024 allowed file descriptors by default? Is there a way to increase the limit while the server is running?

Some relevant info on my server:
sudo more /proc/sys/fs/file-nr
1024038001
sudo sysctl fs.file-max
fs.file-max = 38001
sudo nano /etc/security/limits.conf
...
* hard nofile 30000
* soft nofile 30000

I also added this to /usr/local/nginx/conf/nginx.conf:
worker_rlimit_nofile 10240;
Uncommented the following line in /etc/pam.d/su:
session required pam_limits.so

View 1 Replies View Related

Fedora Servers :: Getting A Cheap UPS, The Powercuts Will Last Usually A Maximum Of 30 Seconds?

Jan 17, 2009

I'm out in a village and we get more powercuts than I like, and recovering the journal on my server is getting rather irritating. I'm looking into getting a cheap UPS, the powercuts will last usually a maximum of 30 seconds, so I only need a few minutes.

I've been looking at:Plexus V 500VA UPS
Plexus V 1200VA UPS
APC SUA750I Smart-UPS 750VA

I know near to nothing about these things, my question is will those work with a machine with a 700W PSU? How do you know? The 500VA doesn't really mean much to me. Ideally I'd like to get my desktop on there too, but that's more for convenience than anything.

Will any of these do the job? Any Linux compatibility issues I should plan for? Any recommendations from personal experience is greatly welcome Edit: I will be happy with a UPS that can inform Linux power is down, and get the server to cleanly shutdown straight away, I'm more interested in a clean shutdown than maintaining power to use the machines during the outage. Edit 2: Can UPS devices be piggybacked to one another to provide extra uptime? i.e. Could I run 2 of the 30's so when the first runs down, the 2nd carries on?

View 14 Replies View Related

Networking :: Kill A Socket Connection WITHOUT Killing Its Parent Application?

Mar 9, 2010

Is there any command in Linux to kill a socket connection WITHOUT killing its parent application? For example, I have streaming server with several connected users and I want to close socket connection to one of them?

View 1 Replies View Related

Ubuntu Servers :: Smbd. Failed To Connect To Socket?

Nov 21, 2010

I have a new install of Ubuntu 10.04.1 LTS server. But I get errormessages trying to start samba.

caesar@klem:/etc/samba$ restart smbd
restart: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

I have tride to remove an install samba. And deleted smb.conf. And startet with the original.

smb.conf:
workgroup = Easyways
server string = %h server (Samba, Ubuntu)
log file = /var/log/samba/log.%m
max log size = 1000

[Code]....

View 2 Replies View Related

Networking :: /usr/sbin/in.telnetd: Getpeername: Socket Operation On Non-socket?

May 5, 2009

I had installed Fedora 10

Below is the output of uname -a

Linux 2.6.27.5-117.fc10.i686.PAE #1 SMP Tue Nov 18 12:08:10 EST 2008 i686 i686 i386 GNU/Linux

I need to enable telnet service on it, then found xinetd and telnet-server not installed,

Then I had installed below
First I had installed Xinetd: xinetd-2.3.14-21.fc10.i386.rpm
then I had installed telnet-server: xinetd-2.3.14-21.fc10.i386.rpm

After installation I executed below commands

Service xinetd start
Chkconfig xinetd on
Chkconfig telnet on
Service iptables stop
Chkconfig iptables off
Iptables �F

After I had tried telnet localhost ----IT FAILED

when I run telnet server manually by issuing the below command
/usr/sbin/in.telnetd, I get below error
[COLOR="Red"]/usr/sbin/in.telnetd: getpeername: Socket operation on non-socket[/COLOR]

I have other system running same OS, I had followed the same steps discussed above to enable telnet, It works fine on it.

View 1 Replies View Related

Ubuntu Servers :: ERROR 2002 (HY000): Can't Connect To Local MySQL Through Socket

Apr 2, 2011

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2). I've had this problem to the point where I thought I messed up my actual configuration so bad that I reinstalled Ubuntu to get rid of all the MySQL configuration; I ran MySQL through Windows with a breeze, but I'm getting some errors like that after restarting my computer just a few minutes ago and I have not changed anything in my SQL settings. I'm on Ubuntu 10.10 64 bit and running MySQL 5.1. the actual error that I get from Navicat and from the website is at [URL]... Update: 20110402. Connection for controluser as defined in your configuration failed. Just got that when I tried to log in to phpmyadmin.

View 4 Replies View Related

General :: Socket Programming - Feed Some Words One By One To The Socket

Jul 6, 2010

i'm writing a simple program of client socket program. Here below is the code sample which i'm writing...

Code:
//tcp_client.c
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include<string.h>
#include<stdlib.h>
[Code].....

the above code works fine.if we copmile and run ./a.exe 192.xx.xx.xxx 1111 and press enter it works fine..everytime it asks "Please enter the message: " and if give that will be displayed in server. but my problem is i dont want to print everytime "Please enter the message: " i just want to feed some words one by one to the socket.

View 4 Replies View Related

Programming :: Setsockopt : Socket Operation On Non-socket Getting Error?

Mar 30, 2009

im getting that error in my code for some reason. I compiled my code, and when i try to run this server it throws me an error on my call to setsocketopt(). The only way it can reach that part of my loop is if it succeeds when it calls sock() so I dont understand why the error says its an operation on a non-socket. Im just trying to set up a server to pass messages from a client to it a viceversa. Here is the code:

Code:
int main()
{
int socket_fd, new_socket_fd, k;
struct addrinfo hints, *server_info, *p;
struct sockaddr_storage peer_address;
code....

View 7 Replies View Related

Ubuntu Servers :: Dual Socket X5550 Platform With Hyperthreading Disabled - Bad Scheduling On Nehalem?

Feb 25, 2010

I'm running Ubuntu Server 9.10 on a dual socket X5550 platform with hyperthreading disabled. There should be 8 cores available for running processes: dual-socket, quad-core. When I start 8 single-threaded, cpu-intensive processes running, top shows six processes running at 100% and two at 50% (presumably sharing the seventh core). No other processes are reported as having >1% cpu, and yet the 1-minute load average is listed as over 11.0?!

1) Why is it not running each process on its own core?
2) Why is the load average so much greater than 8?
3) Is there anything I can change in the configuration to fix this?

View 3 Replies View Related

Fedora Servers :: OpenVPN - Socket Bind Failed On Local Address

May 4, 2011

I finally got the certs to configure:
openvpn --config server.conf
Tue May 3 17:26:27 2011 OpenVPN 2.1.1 i686-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Jan 5 2010
Tue May 3 17:26:27 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue May 3 17:26:27 2011 Diffie-Hellman initialized with 1024 bit key
Tue May 3 17:26:27 2011 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue May 3 17:26:27 2011 ROUTE default_gateway=192.168.122.1
Tue May 3 17:26:27 2011 TUN/TAP device tun0 opened
Tue May 3 17:26:27 2011 TUN/TAP TX queue length set to 100
Tue May 3 17:26:27 2011 /sbin/ip link set dev tun0 up mtu 1500
Tue May 3 17:26:27 2011 /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Tue May 3 17:26:27 2011 /sbin/ip route add 10.8.0.0/24 via 10.8.0.2
Tue May 3 17:26:27 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Tue May 3 17:26:27 2011 Socket Buffers: R=[114688->131072] S=[114688->131072]
Tue May 3 17:26:27 2011 UDPv4 link local (bound): [undef]:1194
Tue May 3 17:26:27 2011 UDPv4 link remote: [undef]
Tue May 3 17:26:27 2011 MULTI: multi_init called, r=256 v=256
Tue May 3 17:26:27 2011 IFCONFIG POOL: base=10.8.0.4 size=62
Tue May 3 17:26:27 2011 IFCONFIG POOL LIST
Tue May 3 17:26:27 2011 Initialization Sequence Completed

But openvpn still won't start; where to go from here.
Tue May 3 17:54:25 2011 TCP/UDP: Socket bind failed on local address 192.168.122.3:1194: Address already in use
Tue May 3 17:54:25 2011 Exiting

View 3 Replies View Related

Ubuntu Networking :: Interhack And Error "Can't Access() Script - Could Not Create Socket: Connection Refused"

Feb 12, 2010

I'm trying to run Interhack (spoiled variant of Nethack) for local game. Is looking through settings I saw that:

[Code]....

When I try to start it with ih_server option it gives me that error: Code: Can't access() script Could not create socket: Connection refused I think my problem is closed port: Code: nc localhost 9999 localhost [127.0.0.1] 9999 (?) : Connection refused How do I fix this?

View 2 Replies View Related

General :: Socket Error / Socket 31: 0x36?

Sep 15, 2009

We are seeing recv err on socket 31: 0x36. What could be meaning of the error?.

View 1 Replies View Related

Programming :: Timer In Socket Programming - Wait For X Sec After Read() And Then Disconnect The Client Connection

Mar 8, 2011

I have a server listening on incoming client connections. Once the client establishes SSL connection with the server, the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.

View 3 Replies View Related

Ubuntu Servers :: SSL Setup - Connection Error Unable To Make A Secure Connection To The Server

Feb 10, 2011

I am running an Ubuntu Server on a VirtualBox VM running on my windows machine. So I've created a self-signed certificate using the following tutorial: [URL]

From this tutorial I'm left with 3 files:
server.key
server.csr
server.crt

Then I found this very similar tutorial that has an extra bit on installing the certificates in apache: [URL] So I followed it's instructions which boil down to this:

[Code]...

So I'm thinking this should work now. However in Chrome I get: SSL connection error Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have. Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error. IE8 gives me a typical "Internet Explorer cannot display the webpage" Note that [URL] fails while [URL] works fine, so it's definitely something in my ssl setup I'm thinking.

View 5 Replies View Related

Ubuntu Servers :: Can't Connect To Local MySql Through Socket '/var/run/mysqld/mysqld.sock' (2)

Apr 18, 2011

installing mysql server manually. i have successfully installed mysql server but when i am try to create database, it shows error like this

ERROR 2002 (HY000): Can't connect to local MySql server through socket '/var/run/mysqld/mysqld.sock' (2)

** mysqld is not available in /var/run and error log file is also not available in /var/log **

View 5 Replies View Related

Ubuntu Servers :: Unable To Connect To System Bus: Failed To Connect To Socket

May 29, 2010

I tried to install vsftpd on my server and while the installation went fine, I can't run

Code:
restart vsftpd
As I the get error
Code:

restart: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Though I'm able to restart the service with

sudo /etc/init.d/vsftpd restart with a warning telling me to use the service utility. Not only that, but despite the port being open it won't allow me to log in, it just hangs, and I have local users enabled (I've used the default .conf file). Does dbus not come installed in 10.04, and if I did install it would it make a difference for restarting the service? Are there further steps needed not available in the tutorial on the Ubuntu Server Guide for 10.04 to enabling local user authentication? -edit- Figured it out, dbus wasn't installed, vsftpd is working fine now.

View 4 Replies View Related

Ubuntu Servers :: Error: 'Can't Connect To Local MySQL Server Through Socket '/var/run/mysqld/mysqld.sock' (2)

Apr 10, 2010

After the upgrade from 8.10 to 9.04, all was well. But after the upgrade from 9.04 to 9.10, I lost the MySQL server. Now, I recall during the upgrade, I was asked if I wanted to keep the existing my.cnf file or replace it with a newer one. I did as suggested and kept the original as I had edited it before. The same question was asked with a couple other config files. I kept the original in each case. After the first step, I checked the server was running and the websites were up, all was well. After the update to 9.10, when I checked the server, I get the following error:

Code: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! Can anyone point me in the right direction to getting this resolved?

View 2 Replies View Related

Ubuntu Servers :: Upgrading From Mysql5.1 To Mysql5.5 - Get An Error :2002 : Can't Connect To Local MySQL Server Through Socket ?

Apr 28, 2011

how to upgrade from mysql5.1 to mysql5.5 version. Pls guide me in briefly.I did upgrade with the help of this url

http://www.ovaistariq.net/490/a-step...-to-mysql-5-5/ but i got error like this error:2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect FATAL ERROR: Upgrade failed

In /etc/my.cnf , i didnt get like this. Is this is the error
user = mysql; socket = /var/run/mysqld/mysqld.sock; port = 3306; basedir = /usr/local/mysql; datadir = /usr/local/mysql/data; tmpdir = /tmp; log_error = /var/log/mysql/error.log

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved