Results 1 to 4 of 4

Thread: ULimit problem

  1. #1
    Member
    Join Date
    Nov 2007
    Location
    London
    Posts
    18

    ULimit problem

    Hi all,

    We're running Lightstreamer Server on Linux. In the LS.sh file there are the following commands:

    ulimit -Hn unlimited
    ulimit -Sn unlimited

    We're having trouble getting these commands to run correctly. We can set the lower limit, but not the higher limit - we keep getting an 'Operation not permitted' error. We suspect it's a Linux issue, but I was wondering if you've come across this before and know how to resolve it?

    As a separate question, why does Lightstreamer need to modify the limit settings? What are the consequences of not changing these?

    Thanks,

    Richard

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,022
    The limit on the number of open files in Unix and Linux also applies to the number of open sockets. Hence, in a production installation of Lightstreamer Server, you must take this limit under control.
    We choose to put the "ulimit" command in the Server launch script as a memo for this issue, even though it might not work in some environments. For testing purpose, you can ignore the issue.

    Dario

  3. #3
    Member
    Join Date
    Feb 2009
    Location
    Pyrmont
    Posts
    4
    We have purchased Allegro licenses and are attempting to set up Lightstreamer in a production environment.

    We are receiving the same "ulimit: open files: cannot modify limit: Operation not permitted" error while trying to run the LS.sh file.

    We seem to be unable to set the values to unlimited.
    How should we determine adequate values for the -Hn and -Sn limits?

    Thanks

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    518
    As explained previously, these ulimit settings are just a memo for the system administrator of the box running Lightstreamer. She should know what is the default limit on the number of TCP sockets (file descriptors) imposed by that particular Unix/Linux installation. Then, if such number is not enough to handle the desired number of concurrent connections [as a rule of thumb, double the number of maximum number of expected concurrent users to estimate the needed file descriptors], she should change some operating system setting to increase such number. The ulimit commands are just a typical way of doing this, which is very system dependent.

    I hope that helps.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 01:03 PM.