4
votes
1answer
89 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, ...
3
votes
2answers
2k 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 ...