LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-18-2012, 02:58 PM   #1
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Rep: Reputation: 17
Samba having to many open files...


Hello:
I'm having an issue with a Samba server having too many opened files. I'm running CentOS 5.7 with: samba-x86_64.3.0.33, release 3.29.el5_7.4.

Samba has around 700 processes running to server all clients.
[root@hostname ~]# lsof | grep smb | grep '/usr/sbin/smbd' | wc -l
698

The problem is that EACH process has ~70 files opened, so I end up with a LOT of opened files owned by samba.
[root@hostname ~]# lsof | grep smb | wc -l
58448
For example, this file:
[root@hostname ~]# lsof | grep smb | grep '/var/cache/samba/messages.tdb' | wc -l
1390

This eventually hits the maximum number for opened files 65k and I have to eventually restart Samba server (service smb restart), but the number of open files increases until the process repeats.

Question: How can alleviate this problem without restarting Samba?
 
Old 04-18-2012, 07:44 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try /etc/security/limits.conf
Quote:
# - nofile - max number of open files
 
Old 08-09-2012, 04:26 PM   #3
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Original Poster
Rep: Reputation: 17
Unhappy

I have already set limits for open file of 65k and sometimes I pass that!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome and Samba (why can't I open certain files?) alan99 Linux - Server 3 09-22-2010 09:22 PM
open files and restricted files on the same Samba server Teckno Linux - Server 3 12-05-2007 11:25 PM
Cannot open files, Samba Missing_QuarK Linux - Networking 4 12-18-2006 09:20 AM
Samba domain server 95/98 cannot open files cstuff Linux - Networking 2 08-03-2004 02:22 PM
SAMBA: Too many files open causing error valsus Linux - Software 1 04-29-2004 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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