LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2016, 09:37 PM   #1
cypollux
LQ Newbie
 
Registered: Dec 2016
Posts: 2

Rep: Reputation: Disabled
Unable to change ulimit in 'screen'


Hi everyone,

I'd like to know if, changing the ulimit would have an effect in the operations that are carried-out using 'screen'.

I'm using 'screen' to carry-on some operations using multiple processes, for this I need to change the number of files that can be used simoultaneously. I used first 'ulimit -n 9999' in the command line, no problem, but then I tried to do it in the 'screen' as I need to shut-off the pc during non-office times.

I haven't been able to do so, it always retrieve 4096. I even edited the /etc/security/limits.conf file by adding my username and "hard/soft nofile 9999" at the end of it. Nothing changed. I'm suspecting that this has no effect when I use the screens, my process is 'killed' after less than 1000 operations.

I'll appreciate any help

Cya
 
Old 12-02-2016, 08:41 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,157
Blog Entries: 13

Rep: Reputation: 4221Reputation: 4221Reputation: 4221Reputation: 4221Reputation: 4221Reputation: 4221Reputation: 4221Reputation: 4221Reputation: 4221Reputation: 4221Reputation: 4221
Hi cypollux, and welcome to LQ.

Yes a bit more information may be helpful. Besides the distribution which you're running, also informing a bit more about what you mean by screens. My assumption is that you mean the desktop, but please clarify.

Since you cite the number of files, and that the default is 4096, it then seems unusual that your process is being killed at less than 1000 operations, which once again I'm assuming this means "open files"?

Can you explain more what these processes are? Have you written a script or program to open files? Given that this fails below the system default limits, I wonder if there may be some other problem here.
 
1 members found this post helpful.
Old 12-03-2016, 09:35 AM   #3
cypollux
LQ Newbie
 
Registered: Dec 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by rtmistler View Post
Hi cypollux, and welcome to LQ.

Yes a bit more information may be helpful. Besides the distribution which you're running, also informing a bit more about what you mean by screens. My assumption is that you mean the desktop, but please clarify.

Since you cite the number of files, and that the default is 4096, it then seems unusual that your process is being killed at less than 1000 operations, which once again I'm assuming this means "open files"?

Can you explain more what these processes are? Have you written a script or program to open files? Given that this fails below the system default limits, I wonder if there may be some other problem here.
------------------------------------------------------------------------------------

Hi, thank you for your reply and sorry for my vague start...

I'm using linux through the command line only. By 'screen' I meant the use of multiple terminals to carry-out different operations.

http://www.tecmint.com/screen-comman...nux-terminals/

The process was killed only inside the screen, I didn't know how to increase the number of open files (yes you are right) in the way that it had an effect also in the 'screen'. However, I found out that by killing the screen (with exit) and starting over a new screen, I already get the number of open files that I need and set previously (9999), so it seems that it was a matter of re-starting the sessions. [problem solved]

Thank you again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ulimit -s 40960 vs ulimit ulimit -s 10240 centguy Linux - Software 2 10-23-2016 12:38 AM
Unable to change Screen resolution for RHEL5 johnsmith2020 Linux - Newbie 2 05-13-2009 04:00 AM
Unable to change screen resolution Osgad Linux - Laptop and Netbook 5 10-16-2006 05:34 AM
Unable to change the Splash Screen diam0nd Linux - General 1 04-19-2004 02:19 PM
unable to change screen resolution, Inspiron dardare Mandriva 10 09-17-2003 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 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