java CORBA Server limiting the number of connection

440 views Asked by At

I have a CORBA Server developed using Java (Oracle/Sun)... I do not know why, but the server is limiting the number of connection to 240. The application itself does not have any limitation... so i was wondering if the ORB itself can have some kind of properties to manage/limit this.

    Properties orbProps = new Properties();
    orbProps.put("org.omg.CORBA.ORBServerId", Integer.toString(id));
    orbProps.put("com.sun.CORBA.POA.ORBPersistentServerPort", Integer.toString(port));

    orb = ORB.init(new String[]{}, orbProps);

Any help would be welcome :-) Thanks.

2

There are 2 answers

1
fhossfel On

If you are using Glassfish you can adjust the pool of the ORB. There is fairly extensive documentation on this in the Glassfish manual.

https://docs.oracle.com/cd/E18930_01/html/821-2431/abegt.html

3
fuzzy On

If your CORBA server is running on a Unix/Linux box, check the ulimit settings for the user account that is running it.

ulimit -n 

This will tell you how many file handles the process can use. If the value is quite low (for example, less than 2048), you can adjust it in your startup script or have your system administrator bump up the limit for all users.