CardSharing-X

» CardSharing Section => » CSP - Card Server Proxy « => CSP Discussion & Questions => Topic started by: bandasdk on March 08, 2011, 11:27:47 PM

Title: Tweaking the FileDescriptors
Post by: bandasdk 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.
Title: Tweaking the FileDescriptors
Post by: bittug 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
Title: Tweaking the FileDescriptors
Post by: optimi 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.
Title: Tweaking the FileDescriptors
Post by: bittug on August 14, 2012, 08:46:42 PM
i tried nobody wont change still 1024