Hi Joe, 

the problem is somehow connected to Linux because of jdk1.3. 
jdk1.3 on Linux is using a (kind of) native process for every 
thread...  There is a note on:
http://developer.java.sun.com/developer/technicalArticles/Programming/linux/

We are setting the kernel limit higher with a script which is starting
the JVMs. The better possibility is to compile a new kernel with a
higher limit.

If you know a way to avoid this, please let me know!

simon

Joe Gittings:
> 
> Hi,
> 
> I'm trying to run Jonas on Linux using Jeremie.  I have a large, complex
> compound bean which makes lots of intercomponent calls to populate itself
> when ejbLoad is called. Unfortunately on Linux, some way into the execution
> of ejbLoad (i.e. when it's already made lots of intercomponent calls), we
> are getting the exception listed below.
> 
> The bean loads fine under Solaris and WinNT. Also, more trivial beans
> (which don't make lots of intercomponent calls during ejbLoad) load fine on
> Linux.
> 
> It looks like Jeremie is exceeding the per-process filehandle limit (which
> is fixed by the kernel at 1024). Some possibilities we have thought of,
> which may or may not be contributing to this apparent problem:
> * Is Jeremie setting SO_LINGER on the sockets it uses?
> * Is Jeremie closing *both* ends of a socket connection when it's done with
> them?
> 
> We're using Redhat Linux 6.2, (2216 kernel).  Has anyone else run up
> against this problem? And if so, how did you solve it? Will it help us to
> increase the per-process filehandle limit? Any hints would be very
> gratefully received!
> 
> Joe
> 
> The exception is:
> 
> javax.naming.NamingException: registry context error: look up.  Root
> exception i
> s java.rmi.MarshalException: error during marshalling/unmarshalling by
> stub; nes
> ted exception is:
>         java.rmi.MarshalException: exception preparing marshaller; nested
> except
> ion is:
>         java.net.SocketException: Too many open files
> java.rmi.MarshalException: exception preparing marshaller; nested exception
> is:
>         java.net.SocketException: Too many open files
> java.net.SocketException: Too many open files
>         at java.net.PlainSocketImpl.socketCreate(Native Method)
>         at java.net.PlainSocketImpl.create(PlainSocketImpl.java:66)
>         at java.net.Socket.<init>(Socket.java:258)
>         at java.net.Socket.<init>(Socket.java:94)
>         at
> org.objectweb.jonathan.libs.resources.tcpip.IPv4ConnectionFactory.new
> CltConnection(IPv4ConnectionFactory.java:182)
>         at
> org.objectweb.david.libs.resources.giop.GIOPConnectionFactory.newCltC
> onnection(GIOPConnectionFactory.java:107)
> 
> =====================================================================
> Joe Gittings, Royal Botanic Gardens, Kew
> Hanover House, Kew, Richmond, Surrey TW9 3AB
> 
> [EMAIL PROTECTED]
> +44 20 8332 5712
> fax: +44 20 8332 5736
> 
> The SEPASAL database is now live at http://www.rbgkew.org.uk/ceb/sepasal/
> 
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
begin:vcard 
n:Oldeboershuis;Simon
tel;fax:+49.30.44350949
tel;work:+49.30.44350943
x-mozilla-html:FALSE
org:outermedia;Entwicklung
adr:;;Greifswalder Str. 207;Berlin;;10405;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Simon Oldeboershuis
end:vcard

Reply via email to