May 30, 2020, 06:12:17 PM

Author Topic: Tweaking the FileDescriptors  (Read 1215 times)

0 Members and 1 Guest are viewing this topic.

Offline bandasdk

  • Jr. Member
  • **
  • Posts: 82
Tweaking the FileDescriptors
« on: March 08, 2011, 11:27:47 PM »
What would be the big advantage of tweaking the FileDescriptors ?

The more Profiles you have the more FD you have
The more users you have the more FD you have

users * Profiles = max 1024

that's why you need to increase.


Here is how to blow up your FD in CSP.
Based on Debian Lenny.

Login to your shell of csp

vim /etc/security/limits.conf

Add the follow lines:

root soft nofile 65536
root hard nofile 65536


reboot your server

Note Wait until everything is booted before starting your CSP, otherwise Java will not cope the changes.

Offline bittug

  • Jr. Member
  • **
  • Posts: 3
Tweaking the FileDescriptors
« Reply #1 on: March 10, 2012, 03:58:02 AM »
hey guys i followed you instructions.if i start manuly i see fd 8163.but if iauto start its back to 1024?any help plz

Offline optimi

  • Jr. Member
  • **
  • Posts: 6
Tweaking the FileDescriptors
« Reply #2 on: June 04, 2012, 02:23:38 PM »
Quote from: bittug;124923
hey guys i followed you instructions.if i start manuly i see fd 8163.but if iauto start its back to 1024?any help plz


bandasdk is right but this only thanges the limit of open file for the root user and you autostart csp with other user. When you autostart the CSP check the user who starts it probably nobody
and if the user is nobody add:
nobody soft nofile 65536
nobody hard nofile 65536
 to limits.conf or change nobody with the user who starts csp.

Offline bittug

  • Jr. Member
  • **
  • Posts: 3
Tweaking the FileDescriptors
« Reply #3 on: August 14, 2012, 08:46:42 PM »
i tried nobody wont change still 1024