Hello list,


Lately I've noticed haproxy, and would like to front my RMI servers (java)
with it. I hoped it will be easy as RMI runs over tcp, but unfortunately
it's not…



I'm using 1.4.8 and here is my config file:



global

        stats socket /tmp/stats

        maxconn 4096

        pidfile /var/run/haproxy.pid

        daemon

defaults

        mode tcp

        option dontlognull retries 3 option redispatch

        maxconn 2000

        contimeout 5000

        clitimeout 50000

        srvtimeout 50000

listen  RMI 10.80.0.55:3305

        mode tcp

        option  httpchk

        #stats :8080

        stats uri /haproxy-stats

        balance roundrobin

        server server1 10.80.0.53:1099 check port 9200 inter 12000 rise 3
fall 3



when trying to direct some RMI calls via haproxy, the client get the
following errors:



Exception in thread "main" *java.rmi.ConnectIOException*: error during JRMP
connection establishment; nested exception is:

      *java.io.EOFException*

      at sun.rmi.transport.tcp.TCPChannel.createConnection(*
TCPChannel.java:286*)

      at sun.rmi.transport.tcp.TCPChannel.newConnection(*TCPChannel.java:184
*)

      at sun.rmi.server.UnicastRef.newCall(*UnicastRef.java:322*)

      at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

      at java.rmi.Naming.lookup(*Naming.java:84*)

      at com.demo.proxy.ProxyRmiClientTest.main(*ProxyRmiClientTest.java:36*
)

Caused by: *java.io.EOFException*

      at java.io.DataInputStream.readByte(*DataInputStream.java:250*)

      at sun.rmi.transport.tcp.TCPChannel.createConnection(*
TCPChannel.java:228*)

      ... 5 more





Can you please supply suggestions how can I track down the problem? Can
haproxy fronts RMI?



Thanks.

Reply via email to