We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [file-descriptors]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

Find out who hold the fd of one file which has been deleted?

Currently, I run a Java program will call some C++ library, and I find that after some files have been deleted, there still some thread holds the fd such as 3515991655 0 lr-x------ 1 user ...
0
votes
0answers
28 views

How do you log file descriptor requests?

System.IO.IOException: The process cannot access the file because it is being used by another process. I have a need for a historical log of file descriptor requests. The purpose is to determine ...
0
votes
0answers
103 views

using named-pipes to control a remote ssh session in BASH

My question is mostly based on this https://stackoverflow.com/questions/22479631/pipe-timely-commands-to-ssh?rq=1 I am following above question and I am able to connect to a server, like this: ...
2
votes
2answers
175 views

Why does writing to the console a process's STDIN is attached to doesn't send input to the application itself?

Taken from this answer: Terminal 1: [ciupicri@hermes ~]$ cat shows on the tty but bypasses cat Terminal 2: [ciupicri@hermes ~]$ pidof cat 7417 [ciupicri@hermes ~]$ echo "shows on the tty but ...
0
votes
1answer
512 views

Ubuntu 16.10 Server MariaDB (MySql) open_file_limit won't go higher than 16364

I'm running on Ubuntu 16.10 (yakkety yak) with MariaDB 10.x and experience the very same issue as Ubuntu 16.04 Server MySql open_file_limit won't go higher than 65536 with one exception, my open ...
0
votes
1answer
155 views

Apache vhosts limit and file descriptors limits

I need to host massive websites with SSL and I've read that there is an apache vhosts limit due to file descriptors. Each domain have a SSL certificate, so unable to do a global virtualhost. My ...
16
votes
1answer
11k views

Ubuntu 16.04 Server MySql open_file_limit won't go higher than 65536

I'm running Ubuntu 16.04 Server on XenServer and I'm running into an issue with MySql's open file limit. Here's what I've done so far: sudo nano /etc/security/limits.conf (reference) * soft nofile ...
7
votes
2answers
13k views

How to permanently increase RabbitMQ file descriptors limit

I'm trying to permanently increase the RabbitMQ file descriptors limit. I've already increased the system limit to 65535 and did the same for the RabbitMQ process by adding an entry to the /etc/...
25
votes
2answers
3k views

Why does password entering work in a piped sudo command?

If I do: sudo cat /etc/resolv.conf | less It will prompt me for the password, even though less (presumably) takes stdin. Over what fd's is the password prompt shown and how does it get the input ...
5
votes
1answer
3k views

Squid running out of filedescriptors on CentOS 7

I'm running Squid 3.3 (EPEL) on CentOS 7 and recently I have been getting the following error message in my cache.log WARNING! Your cache is running out of filedescriptors I am slightly confused by ...
1
vote
2answers
382 views

Dangers of closing file descriptors

In the Stack Overflow question Check if a program exists from a bash script the accepted answer notes that closing stderr is dangerous: (minor side-note: some will suggest 2>&- is the same 2>/...
0
votes
1answer
618 views

How to set up a global CustomLog on Apache2 for every virtualhost

Actually I got some issue with file descriptors on Debian Wheezy with 3.2.13 kernel and Apache/2.2.16. I would like to reduce this limit, actually each virtualhost got a CustomLog and an ErrorLog, I ...
3
votes
1answer
5k views

Mongodb error - Out of file descriptors. Waiting one second before trying to accept more connections

Details Here is what I see in the logs file 2014-09-08T10:22:43.143+0000 [initandlisten] ERROR: Out of file descriptors. Waiting one second before trying to accept more connections. 2014-09-08T10:...
6
votes
1answer
2k views

strace shows long time reading from mysql socket - mysql takes long time to execute query?

My Apache server takes long time to process request. I attached strace to it and can see the two following delays: 1) Very critical (143 seconds to process) 1335 0.000037 write(16, "\235\0\0\0\...
21
votes
3answers
46k views

Too many open files with nginx, can't seem to raise limit

The server is Ubuntu 13.04 (GNU/Linux 3.9.3-x86_64-linode33 x86_64). nginx is nginx/1.2.6. I've been working on this for an several hours now, so here's what I'm getting and here's what I've done. ...
3
votes
0answers
861 views

uwsgi through supervisor too many open files

I have uWSGI set up through supervisor on a ubuntu 12.04 box and lately I noticed that when trying to tail the logs (all the logs in that user account) I get message that too many files opened , uWSGI ...
1
vote
1answer
42 views

script reading from new descriptor in read

I have a script that asks some questions to the user and repeats the question until the user has answered something appropiate. This is done with an infinite loop that is break'd when an acceptable ...
0
votes
1answer
2k views

Apache File Descriptor Limits

I'm trying to change the file descriptor limits for Apache. The problem is that the limits set through "/etc/security/limits.conf" don't apply to system users like "apache" with no login shell. I've ...
2
votes
1answer
3k views

Tuning tcp_keepalive_time for Node.js leak

I'm currently having a socket leak with my Node.js application. This bug is also posted here. I hope to fix this soon. CLOSE_WAIT and FIN_WAIT2 seem to be the major problem. Connections: 1662 ...
7
votes
2answers
11k views

Number of file descriptors: different between /proc/sys/fs/file-nr and /proc/$pid/fd?

I would like to check how many file descriptors are actually used: cat /proc/sys/fs/file-nr 12750 0 753795 The first column (12750) indicates the number of file descriptors allocated since boot....