Basic TCP and file descriptor question
Hi all,
I have DS 5.1 sp 1 and Solaris 8.
how does the configurable "nsslapd-maxdescriptors" and "ulimit -n" works ?
I assume that :
1. nsslapd-maxdescriptors <= "ulimit -n".
Current configuration is, nsslapd-maxdescriptors = 4096 and "ulimit -n" = 256. There are "currentconnections: 3212". These crazy connections is the "connection pool" from weblogic and others. I still able to browse using "ldapsearch" and similiar tool like "ldapbrowser".
2. "tcp_conn_req_max_q" is not directly related to these parameters, since it describes concurrent connections. My "tcp_conn_req_max_q" = 128.
"nsslapd-threadnumber", (=512 currently). How is this related to "nsslapd-maxdescriptors" and "tcp_conn_req_max_q" ? It this threadnumber per client connection perspective or Sun DS perspective.
can some1 shed a light on this ? or give me some reference to read.
thanks alot,
got it !
It's all in reference guide.... should have ransack SUN repository first....
cheers
Similar Messages
-
Time Machine and File Vault question
I just completed a clean install of OS x mavericks and then used my time machine back up to restore the mac.
The whole process was confusing for many reasons and I just want to get some clarification/verification on my next actions.
When I enter time machine preferences and click select disk. It gives me two choices. One in the group Back Up Disks and One in available disks. The confusing I have is that it is the same external hd. So which should I pick if I want to keep my original time machine backups?
The other question I have is, this whole journey started with me wanting to turn on file vault. I am using a late 2012 Mac Mini updated to Mavericks came with Mountain Lion.
Should I be able to use both an encrypted time machine (external hd) and file vault?
Thanks for the help.The difference is that do yo want to combine the backus you made before with the previous backups (group Back Up Disks) or start a whole new backup (available disks). Either option will retain the previous backups unless you overtly delete them. I would select that later to start a new set of backups.
See the following for using FileaFault with Time Machine
http://apple.stackexchange.com/questions/46833/with-file-vault-on-are-time-machi ne-backups-encrypted
http://kb.mit.edu/confluence/display/istcontrib/Enable+FileVault+(whole+disk+enc ryption)+on+Time+Machine+backup+drives+on+OS+X+10.9 -
Solaris file descriptor question
Hi,
We have an application on Solaris 2.6 and
the shell in which the server runs has a
file descriptor limit of 1024. What does
this mean? Does this mean that every process
from the shell will have 1024 fds? What
is the maximum # of fds that a solaris 2.6
system can provide?
When I run "sysdef", I get:
ffffffff:fffffffd file descriptors
How do I interpret this line?
Is this 64K - some value?
If system limit is 64K and if each
shell has 1024, how are the fds allocated
to the shells?
What I mean is:
say I have 3 shells each with descriptor
limit of 1024, then is the distribution
something like 1024-2047 for shell 1,
2048 - 3071 for shell 2 (i.e. 3072) and
3072 - 4095 for shell 3?
Appreciate any explanation of this anyone
can offer.
thanks,
mshyamHi There,
About File Descriptors and Their Limitations:
All versions of Solaris (including Solaris 7 64-bit) have a default "soft" limit of 64 and a default "hard" limit of 1024.
Processes may need to open many files or sockets as file descriptors. Standard I/O (stdio) library functions have a defined limit of 256 file descriptors as the fopen() call, datatype char, will fail if it can not get a file descriptor between 0 and 255. The open() system call is of datatype int, removing this limitation. However, if open() has opened 0 to 255 file descriptors without closing any, fopen() will
not be able to open any file descriptors as all the low-numbered ones have been used up. Applications that need to use many file descriptors to open a large number of sockets, or other raw files, should be forced to use descriptors numbered above 256. This allows system functions such as name services, to work as they depend upon stdio routines.
(See p 368 "Performance and Tuning - Java and the Internet").
There are limitations on the number of file descriptors
available to the current shell and its descendents. (See the ulimit man page). The maximum number of file descriptors that can be safely used for the shell and Solaris processes is 1024.
This limitation has been lifted for Solaris 7 64-bit which can be 64k (65536).
Therefore the recommended maximum values to be added to /etc/system are:
set rlim_fd_cur=1024
set rlim_fd_max=1024
To use the limit command with csh:
% limit descriptors 1024
To use the ulimit command with Bourne or ksh:
$ ulimit -n 1024
However, some third-party applications need the max raised. A possible recommendation would be to increase rlim_fd_max, but not the default (rlim_fd_cur). Then rlim_fd_cur can be raised on a per-process basis if needed, but the higher setting
for rlim_fd_max doesn't affect all processes.
I hope this helps your understanding about systemwide file descriptor max limit in conjunction with shell and per process file descriptor limits.
....jagruti
Deveoper Technical Support
Sun Microsystems Inc. -
ID Mac, save as and file extension questions
I'm converting a bunch of Quark files over to ID and have a few niggles that I need help with:
1. Can ID be configured so that it doesn't save the .indd extension every time (when writing a PostScript file as well).
2. Every time the Save/Save As dialog opens it's a small window & I have to drag the corner to enlarge, is there a way to make it stick?
TIA,
GeoffNo, nor should you. This isn't OS9.
Those file extension should be left alone.
Bob -
IMovie music rights and file size questions
1. I'm producing a movie of videos and still photos from a recent vacation strictly for personal family use, not commercial. Is there any violation at all of copyrights if I add songs or loops from a commercial artists music CD? Also, I'm assuming no rights problem with using in my home movie the Garage Band loops that came with my iLife'06.
2. I'm wondering about the file size of my movie so far. It is 26 minutes long and 6.5 GB! I'm guessing I'll end up with about 40 minutes. What is the compression procedure so I can later record the movie to a typical 4.9 GB DVD disc? BTW I'm using an external LaCie burner to get around problems with the 2X DVD burner in my 2002 G4 Quicksilver.
Many thanks in advance.
RaymonThe "personal use" issue (in the U.S. anyway) was resolved in the users favor when the first VHS recorders started shipping.
There are also millions of files that are "royalty free" that be used in any fashion.
Don't worry about the file size of your iMovie project. iDVD only uses the "time" (up to 2 hours) and will handle the compression automatically. -
Workflow, capturing, and file sizes question
I currently use FCE strictly for DV work, but need to upgrade to either FCE HD or FCP for use with HDV.
My workflow now consists of capturing to a scratch disk, then archiving the captured DV file to an external HD for backup purposes and storing the original tape in a safe location.
With FCE HD, can I similarly archive the captured HDV file prior to transcoding to AIC? Or, must I archive the much larger transcoded file? I would perfer to archive the smaller file, and then retranscode it if necessary to work on the project again at a later date (similarly to how I can now just copy the original captured DV file back and reopen the project).
Thanks,
RandyTom,
Thanks for the info. I know that FCE HD cannot EDIT HDV natively, but since the transcoding is not done in real time during capture, I wondered if the captured HDV data was stored in a temporary file until transcoded (and if the temporary file could be archived).
Unless FCE HD can export to MPEG-2 with minimal loss, it sounds like I would need to archive the AIC file, or use FCP to edit native HDV and export.
- Randy -
Bash, awk and file descriptors
Hi guys,
I'm thinking about this piece of command lines:
[user@host ~]$ echo "first word" > test
[user@host ~]$ cat test
first word
[user@host ~]$ { rm ./test && awk -F' ' '{ print $2,$1 }' > ./test; } < ./test
[user@host ~]$ cat test
word first
[user@host ~]$ { awk -F' ' '{ print $2,$1 }' > ./test; } < ./test
[user@host ~]$ cat test
[user@host ~]$ ls -l test
-rw-r--r-- 1 user user 0 17 apr 22.06 test
I wonder why:
{ rm ./test && awk -F' ' '{ print $2,$1 }' > ./test; } < ./test
works as I expect (the file "test" have words in reverse order), while instead:
{ awk -F' ' '{ print $2,$1 }' > ./test; } < ./test
give a file "test" empty, with size 0.
Why and how the leding "rm" make the difference?
ThanksMine wrote:
bohoomil wrote:OP
AHAHAH... you're very amusing.
Op has many meanings, what of the thoundas I find on internet is the meaning /dev/zero was thinking?
OP=OPerating system
OP=Original Poster
OP=Operator Access
(and so on...)
Less sarcasm (offsite) and more pragmatism, please.
http://netforbeginners.about.com/od/int … -Is-OP.htm
Happy ? -
Basic In and Out Points Questions
I captured one long continuous segment of video. Previously, I used the razor tool to chop it up and then I used the arrow tool to trim it.
I am now trying to use In and Out points to create my edits.
1.) If I understand correctly, you can only have 1 In and 1 Out point per clip, is tis correct?
2.) If so, does this mean that the captured video segment needs to be chopped into pieces in order to use In and Out points over the duration of the video?
3.) If so, what do you generally do to determine where/when to make the razor cuts?
Thanks.Hi Mark,
For this and other topics that in the near future might matter to you I suggest you to visit Ken Stone web site, where you might find many useful tutorials.
Here there are couple of links:
http://www.kenstone.net/fcphomepage/basic_edit1.html
http://www.kenstone.net/fcphomepage/cutting_to_thebeat.html
Good luck,
G. -
SAVING PSD and FILE RESOLUTION QUESTION
I have built a business card file that my printer says does not have enough resolution. When I check image size, it appears correct to me. It states the original size is 2.25in x 3.75 in at 300 resolution. However, as I look at the saved file, it shows .psd @ 66.7% (CMYK/8). Is that my problem. Should the file be saved at 100% (CMYK/8)? If so, how do I do that? Thank you. Tom
What is the specific error that your printer is giving you? Even if the file was a terrible resolution, the printer should still print a terrible picture. So it is odd that it won't print at all.
-
[SOLVED] Maximun TCP open connections and Open File Descriptors
Hi,
back when I was using XP I needed to patch a system file to increase max amount of open TCP connections - you surely know about this. I'm wondering how do I do the same in GNU/Linux and if that's real important here.
Also, by default open files are set to 1024, how do I change that? I'm running x86_64 + KDE SC 4.4.2
Last edited by martin77 (2010-04-12 04:17:27)Thanks for replying.
I mean "open file handler" or in a better GNU/Linux terminology "open file descriptors" aka the maximun number of files that can be accessed at a given time.
For instance, VMWare will need you increase them to 4096 to work properly - and I presume something in the order of 5120 would be ok.
Following The Arch Way, already found the solution and want to share it with all of you fellow n00bs:
1. you need to open for edit /etc/security/limits.conf file with root privileges
2. at the end of the file add:
* soft nofile nn
* hard nofile nn
where nn is the number of open file descriptors you want. I set them to 8196 (probably too high) so for instance it should read:
* soft nofile 8192
* hard nofile 8192
Read the embedded help for a better understanding of this crucial configuration file.
As usual, thank you very much to this great community, devs and users, best!
Last edited by martin77 (2010-04-12 04:18:47) -
When I ask for help finding bookmarks, the answer tells me to click on bookmarks as shown in the illustration, but there is no such line displayed on my computer.
'''''"Firefox does not display the basic menu line File Edit View etc."''''': That is the Menu Bar; see below.
'''<u>Menu Bar</u>''' (File, Edit, View, History, Bookmarks, Tools, Help)<br /> <u>Firefox 3.6.x versions allow the user to hide the Menu Bar.</u><br />
*Tap the ALT key or the F10 key, Menu Bar will display, click View, click Toolbars, click Menu Bar to place a check mark next to it, '''''OR'''''
*Press and hold the ALT key while pressing the letters VTM on your keyboard, then release the ALT key
*See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
'''<u>Other Toolbars</u>''', see: https://support.mozilla.com/en-US/kb/Back+and+forward+or+other+toolbar+items+are+missing<br />
'''<u>Status Bar</u>''': click View, click Status Bar to place a check mark<br />
'''<u>Full Screen Mode</u>''': If you have no Toolbars or Tab Bar: Press F11 (F11 is an on/off toggle). See: http://kb.mozillazine.org/Netbooks#Full_screen<br />
Also see: http://kb.mozillazine.org/Toolbar_customization_-_Firefox#Restoring_missing_menu_or_other_toolbars
<br />
<br />
'''Other items that need your attention'''
The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.<br />
<br />
*Adobe PDF Plug-In For Firefox and Netscape
**Current versions are 9.4.2 and 10.0.1 (aka Reader X)
**More info about version 10 (aka Reader X)
***New Adobe Reader X (version 10) with Protected Mode was released 2010-11-19
***See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
#'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
#*'''Note: plugin check page does not have information on all plugin versions'''
#'''Update Adobe Reader (PDF plugin):'''
#*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
#**Open the Adobe Reader program from your Programs list
#**Click Help > Check for Updates
#**Follow the prompts for updating
#**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
#*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
#**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
#**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
#**Click "Save to File"; save to your Desktop (so you can find it)
#**After download completes, close Firefox
#**Click the installer you just downloaded and allow the install to continue
#***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
#**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
#***Choose your OS
#***Choose the latest #.x version (example 9.x, for version 9)
#***Choose the highest number version listed
#****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
#***Choose your language
#***Download the file, SAVE it to your hard drive, when complete, close Firefox, click on the installer you just downloaded and let it install.
#***Windows: choose the .exe file; Mac: choose the .dmg file
#*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
#**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
#**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
#*After the installation, start Firefox and check your version again. -
TCP and LCP files location...
1°
Observing that Lr displays only very few camera calibration profiles and also very few couples camera/lens profiles (for the brand of camera's I use), I made a thorough search of all ".TCP" and ".LCP" files existing in my computer.
Wow ! ... these files are located in a lot of different places ! This certainly from successive updates.
But, I imagine that Lr5 refers only to one "specific directory", showing only the the profiles stored in it.
Here all the directories path where I've found those profiles (Win7-64):
LCP files : by us Program Files = Program (not Program Files (x86)
C:\Program Fifes\Adobe\Adobe Photoshop Lightroom 5.7\Resources\LensProfiles\1.0\(Brand name)\LCP Files
C:\Program Files (x86)\Common Files\Adobe\CameraProfiles\Lens Correction\LCP Files
C:\Users\(User Name)\AppData\Roaming\Adobe\CameraRaw\LensProfileDefault\LCP Files
C:\Users\(User Name)\AppData\Roaming\Adobe\CameraRaw\LensProfiles\LCP Files
C:\Users\(User Name)\AppData\Roaming\Adobe\CameraRaw\LensProfiles\1.0\LCP Files
C:\Users\(User Name)\AppData\Roaming\Adobe\CameraRaw\LensProfiles\1.0\Downloaded\LCP Files
C:\Users\(User Name)\AppData\Roaming\Adobe\Lightroom\LensProfiles\LCP Files
C:\Users\(User Name)\AppData\Roaming\Adobe\Lightroom\LensProfileDefaults\LCP Files
DCP files :
C:\Programmes\Program Files\Adobe\Adobe Photoshop Lightroom 5.7\Resources\CameraProfiles\Adobe Standart\
C:\Programmes\Program Files\Adobe\Adobe Photoshop Lightroom 5.7\Resources\CameraProfiles\Camera\(Brand name/Camera model)\ \DCP Files
C:\Users\(User Name)\AppData\Roaming\Adobe\Lightroom\Color Profiles\DCP Files
Now... "where" the profiles (involved in the latest version of Lr5) have to be located ?
2°
What to do if a profile doesn't exist in this "good" directory, but well in another (perhaps from a previous version). Are they usable under Lr5-7 ?
3°
What to do with the directories not more used by Lr5-7 ?
Many thanks for your answers.Many thanks, Bob
Fm Julieanne Kost's :
Lightroom reads camera and lens profiles "from several locations"...
If you use the Adobe Lens Profile Creator utility to create your own lens and camera profiles, Lightroom installs them here:
X:\Program Files\Adobe\Adobe Photoshop Lightroom 4.2 RC\Resources\CameraProfiles\
X:\Program Files\Adobe\Adobe Photoshop Lightroom 4.2 RC\Resources\LensProfiles\
Well, if I understand, the correct paths at home are :
LCP files → C:\Program Fifes\Adobe\Adobe Photoshop Lightroom 5.7\Resources\LensProfiles\1.0\(Brand name)
DCP files → C:\Programmes\Program Files\Adobe\Adobe Photoshop Lightroom 5.7\Resources\CameraProfiles\Adobe Standart
+ → C:\Programmes\Program Files\Adobe\Adobe Photoshop Lightroom 5.7\Resources\CameraProfiles\Camera\(Brand name/Camera model)
Could the other directories found in my PC been used by other application(s) ? (I also have PS)
Stay 2 other questions:
1. What to do if a profile doesn't exist in a "correct directory", but well in another (perhaps from previous versions).
Are they usable under Lr5-7 ?
May I transfer them into the right place for Lr ?
and
2. What to do with the directories not more used by Lr5-7 ?
Thanks for complementary answers. -
Genunix: basic rctl process.max-file-descriptor (value 256) exceeded
Hi .,
I am getting the following error in my console rapidly.
I am using Sun Sparc server running with Solaris 10 ., We start getting this error
suddently after a restart of the server and the error is continously rolling on the console...
The Error:
Rebooting with command: boot
Boot device: disk0 File and args:
SunOS Release 5.10 Version Generic_118822-25 64-bit
Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hardware watchdog enabled
Failed to send email alert for recent event.
SC Alert: Failed to send email alert for recent event.
Hostname: nitwebsun01
NOTICE: VxVM vxdmp V-5-0-34 added disk array DISKS, datype = Disk
NOTICE: VxVM vxdmp V-5-3-1700 dmpnode 287/0x0 has migrated from enclosure FAKE_ENCLR_SNO to enclosure DISKS
checking ufs filesystems
/dev/rdsk/c1t0d0s4: is logging.
/dev/rdsk/c1t0d0s7: is logging.
nitwebsun01 console login: Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 439
Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 414
Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 413
Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 414
Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 413
Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 121
Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 414
Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 413
Nov 20 14:56:41 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 121
Nov 20 14:56:41 nitwebsun01 last message repeated 1 time
Nov 20 14:56:43 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 470
Nov 20 14:56:43 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 467
Nov 20 14:56:44 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 470
Nov 20 14:56:44 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 121
Nov 20 14:56:44 nitwebsun01 last message repeated 1 time
Nov 20 14:56:49 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 503
Nov 20 14:56:50 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 510
Nov 20 14:56:50 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 121
Nov 20 14:56:50 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 519
Nov 20 14:56:50 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 516
Nov 20 14:56:50 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 519
Nov 20 14:56:53 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 540
Nov 20 14:56:53 nitwebsun01 last message repeated 2 times
Nov 20 14:56:53 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 549
Nov 20 14:56:53 nitwebsun01 last message repeated 4 times
Nov 20 14:56:56 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 665
Nov 20 14:56:56 nitwebsun01 last message repeated 6 times
Nov 20 14:56:56 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 667
Nov 20 14:56:56 nitwebsun01 last message repeated 2 times
Nov 20 14:56:56 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 121
Nov 20 14:56:57 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 868
Nov 20 14:56:57 nitwebsun01 /usr/lib/snmp/snmpdx: unable to get my IP address: gethostbyname(nitwebsun01) failed [h_errno: host not found(1)]
Nov 20 14:56:58 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 887
Nov 20 14:57:00 nitwebsun01 genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 976
nitwebsun01 console login: root
Nov 20 14:57:00 nitwebsun01 last message repeated 2 times
Here I attached my /etc/project file also..
[root@nitwebsun01 /]$ cat /etc/project
system:0::::
user.root:1::::
process.max-file-descriptor=(privileged,1024,deny);
process.max-sem-ops=(privileged,512,deny);
process.max-sem-nsems=(privileged,512,deny);
project.max-sem-ids=(privileged,1024,deny);
project.max-shm-ids=(privileged,1024,deny);
project.max-shm-memory=(privileged,4294967296,deny)
noproject:2::::
default:3::::
process.max-file-descriptor=(privileged,1024,deny);
process.max-sem-ops=(privileged,512,deny);
process.max-sem-nsems=(privileged,512,deny);
project.max-sem-ids=(privileged,1024,deny);
project.max-shm-ids=(privileged,1024,deny);
project.max-shm-memory=(privileged,4294967296,deny)
group.staff:10::::
[root@nitwebsun01 /]$
Help me to came out of this issue
Regards
Suseendran .AThis is an old post but I'm going to reply to it for future reference of others.
Please ignore the first reply to this thread... by default /etc/rctladm.conf doesn't exist, and you should never use it. Just put it out of your mind.
So, then... by default, a process can have no more than 256 file descriptors open at any given time. The likelyhood that you'll have a program using more than 256 files very low... but, each network socket counts as a file descriptor, therefore many network services will exceed this limit quickly. The 256 limit is stupid but it is a standard, and as such Solaris adheres to it. To look at the open file descriptors of a given process use "pfiles <pid>".
So, to change it you have several options:
1) You can tune the default threshold on the number of descriptors by specifying a new default threshold in /etc/system:
set rlim_fd_cur=1024
2) On the shell you can view your limit using 'ulimit -n' (use 'ulimit' to see all your limit thresholds). You can set it higher for this session by supplying a value, example: 'ulimit -n 1024', then start your program. You might also put this command in a startup script before starting your program.
3) The "right" way to do this is to use a Solaris RCTL (resource control) defined in /etc/project. Say you want to give the "oracle" user 8152 fd's... you can add the following to /etc/project:
user.oracle:101::::process.max-file-descriptor=(priv,8152,deny)
Now log out the Oracle user, then log back in and startup.
You can view the limit on a process like so:
prctl -n process.max-file-descriptor -i process <pid>
In that output, you may see 3 lines, one for "basic", one for "privileged" and one for "system". System is the max possible. Privileged is the limit by which you need to have special privs to raise. Basic is the limit that you as any user can increase yourself (such as using 'ulimit' as we did above). If you define a custom "priviliged" RCTL like we did above in /etc/projects it will dump the "basic" priv which is, by default, 256.
For reference, if you need to increase the threshold of a daemon that you can not restart, you can do this "hot" by using the 'prctl' program like so:
prctl -t basic -n process.max-file-descriptor -x -i process <PID>
The above just dumps the "basic" resource control (limit) from the running process. Do that, then check it a minute later with 'pfiles' to see that its now using more FD's.
Enjoy.
benr. -
Basic file movement question?
I'm on DW CS4. Have a very basic question regarding file movement that I can't seem to resolve. In the files panel on the right I have created a folder. Within that folder I have saved a bunch of files with the same name but different numbers after them. When I go into the folder to access one of the files they never stay in the numeric order I have assigned to them. I try and drag the numbered files up or down to get them back into numeric order but it doesn't seem to work. Can someone please explain this basic step in file management to get the files to line up where I want them in the file category on the right? Thanks for your time.
Besided sorting, when using numbers as part of the file name, you need to make sure you have at least two digits if your are going to have more than ten files. Start numbering with 01, 02, 03, 04 and so on. If not, the files will sort like the following:
file1
file10
file2
file20
file21
file3
file32
file4
And if you have more than a hundred, you will need to start with 001.
Hope this makes sense. -
Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.
What are the performance Preferences?
Maybe you are looking for
-
Airport Extreme - VDSL25 - IPTV
Hello, is there anyone who can say me that IPTV ( T-Home Entertain HD ) with the Airport Extreme ( not Wi-Fi) will work? VDSL-Modem Speedport 221 -> Airport Extreme WAN -> Airport Extreme Gigabit-Ethernet-LAN -> Media Receiver 301 Thank you very much
-
new 2014 mac mini -> two monitors setup -> upon "awake", sound output from monitor choice disappear. Only to restart to have those output appeared again. any solution?
-
Hi All, i have an BIA-Index issue,The query-result is wrong when i executes with BIA-Index in transaction RSRT . But when i checked the master data of infoobject is consistent. I have checked this in transaction RSRV. Could you please give any id
-
I need to replace my G4 (description below) with a newer G5 for graphics work with Photoshop CS (can't afford the newer version). Will the G5 1.8 with enough RAM be good enough to last at least 1-2 years? I've had my G4 for 7 years with lots of upgra
-
PAB maximum number of entries exceeded
Hi, we are an ISP and some user say he's having the message "maximum number of entries exceeded" when tries to create a new contact in his address book in webmail. I did my research and find my user has 500 contacts and also find that using "configut