Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Jul 2009
    Location
    sofia
    Posts
    40

    Accept error on socket Lightstreamer HTTP Server java.io.IOException: Too many open f

    Hi, am got some frustrating exception in the lightstreamer server:
    May be this is because too many threads are started?
    Please help.
    Code:
    25.Sep.09 19:08:39,550 <ERROR> Accept error on socket Lightstreamer HTTP Server
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163)
    	at com.lightstreamer.g.a.eb.i(eb.java)
    	at com.lightstreamer.g.a.eb.c(eb.java)
    	at com.lightstreamer.g.a.qb.run(qb.java)
    25.Sep.09 19:08:39,551 <ERROR> Accept error on socket Lightstreamer HTTP Server
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163)
    	at com.lightstreamer.g.a.eb.i(eb.java)
    	at com.lightstreamer.g.a.eb.c(eb.java)
    	at com.lightstreamer.g.a.qb.run(qb.java)
    25.Sep.09 19:08:39,551 <ERROR> Accept error on socket Lightstreamer HTTP Server
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163)
    	at com.lightstreamer.g.a.eb.i(eb.java)
    	at com.lightstreamer.g.a.eb.c(eb.java)
    	at com.lightstreamer.g.a.qb.run(qb.java)
    25.Sep.09 19:08:39,551 <ERROR> Accept error on socket Lightstreamer HTTP Server
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163)
    	at com.lightstreamer.g.a.eb.i(eb.java)
    	at com.lightstreamer.g.a.eb.c(eb.java)
    	at com.lightstreamer.g.a.qb.run(qb.java)
    25.Sep.09 19:08:39,551 <ERROR> Accept error on socket Lightstreamer HTTP Server
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163)
    	at com.lightstreamer.g.a.eb.i(eb.java)
    	at com.lightstreamer.g.a.eb.c(eb.java)
    	at com.lightstreamer.g.a.qb.run(qb.java)
    25.Sep.09 19:08:39,551 <ERROR> Accept error on socket Lightstreamer HTTP Server
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163)
    	at com.lightstreamer.g.a.eb.i(eb.java)
    	at com.lightstreamer.g.a.eb.c(eb.java)
    	at com.lightstreamer.g.a.qb.run(qb.java)
    25.Sep.09 19:08:39,551 <ERROR> Accept error on socket Lightstreamer HTTP Server
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163)
    	at com.lightstreamer.g.a.eb.i(eb.java)
    	at com.lightstreamer.g.a.eb.c(eb.java)
    	at com.lightstreamer.g.a.qb.run(qb.java)
    25.Sep.09 19:08:39,551 <ERROR> Accept error on socket Lightstreamer HTTP Server
    java.io.IOException: Too many open files
    	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:163)
    	at com.lightstreamer.g.a.eb.i(eb.java)
    	at com.lightstreamer.g.a.eb.c(eb.java)
    	at com.lightstreamer.g.a.qb.run(qb.java)
    Regards

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    No, the message is related to too many sockets (hence streaming clients), not thread.
    However, this is not a Lightstreamer limit, but rather a system limit that you can enlarge.
    Assuming you are on Linux, use the ulimit command and increase the maximum number of open files (provided that your login user is allowed to do that).

    Note that it is possible that the message is issued in a strict loop until a socket is available again.
    This is an undesired side effect that will be solved on the next Server release.

  3. #3
    Senior Member
    Join Date
    Jul 2009
    Location
    sofia
    Posts
    40
    Thanks for the response, i will do as suggested. I must note that, i use only one test client( every thing runs on a single machine) and should i get this error in that case?
    Regards.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    If your client is a load test application that opens multiple streaming sessions at the same time, you can eventually get this error.

    On the other hand, if your test client is a normal web page or application that uses a single streaming session, then there is something strange
    and we should analyze the Server log to see if so many sessions have really been created.
    By the way, which was the limit?

 

 

Similar Threads

  1. Replies: 4
    Last Post: January 11th, 2011, 10:21 AM
  2. Restart Lightstreamer Server while browser open !!
    By mohamida in forum Adapter APIs
    Replies: 9
    Last Post: April 21st, 2010, 08:17 PM
  3. Replies: 4
    Last Post: February 4th, 2009, 11:45 PM
  4. why need java sdk to run server
    By Eric.Patterson in forum General
    Replies: 2
    Last Post: May 16th, 2008, 01:43 PM
  5. Replies: 0
    Last Post: January 10th, 2007, 04:03 PM

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 12:20 AM.