Petals ESB Container

Add default option -Djava.net.preferIPv4Stack=true when starting petals

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.1.1
  • Fix Version/s: 3.1.2, 4.0.0
  • Component/s: Launcher
  • Security Level: Public
  • Description:
    Hide

    When starting, the petals ESB server opens ports for at least the registry service. For some reasons, the protocol IPv6 is sometimes used instead of IPv4 as usual, and the result is petals ESB appears to be frozen.

    Below is an example of opened ports and associated programs when petals uses IPv6

    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      735/smbd        
    tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      735/smbd        
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      795/sshd        
    tcp6       0      0 :::7900                 :::*                    LISTEN      975/java        
    tcp6       0      0 :::7600                 :::*                    LISTEN      975/java        
    tcp6       0      0 :::7700                 :::*                    LISTEN      975/java        
    tcp6       0      0 :::22                   :::*                    LISTEN      795/sshd

    This can be solved by adding the option -Djava.net.preferIPv4Stack=true to the JVM
    (see http://download.oracle.com/javase/6/docs/technotes/guides/net/properties.html).

    I think this behavior should be documented and maybe the option added by default while IPv6 is not yet widely used.

    Show
    When starting, the petals ESB server opens ports for at least the registry service. For some reasons, the protocol IPv6 is sometimes used instead of IPv4 as usual, and the result is petals ESB appears to be frozen. Below is an example of opened ports and associated programs when petals uses IPv6
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      735/smbd        
    tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      735/smbd        
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      795/sshd        
    tcp6       0      0 :::7900                 :::*                    LISTEN      975/java        
    tcp6       0      0 :::7600                 :::*                    LISTEN      975/java        
    tcp6       0      0 :::7700                 :::*                    LISTEN      975/java        
    tcp6       0      0 :::22                   :::*                    LISTEN      795/sshd
    This can be solved by adding the option -Djava.net.preferIPv4Stack=true to the JVM (see http://download.oracle.com/javase/6/docs/technotes/guides/net/properties.html). I think this behavior should be documented and maybe the option added by default while IPv6 is not yet widely used.
  • Environment:
    Ubuntu

Activity

Sébastien André made changes - Wed, 9 Mar 2011 - 14:52:14 +0100
Field Original Value New Value
Link This issue blocks SPVEOLIAE-99 [ SPVEOLIAE-99 ]
Christophe DENEUX made changes - Thu, 10 Mar 2011 - 18:50:28 +0100
Status New [ 10000 ] Open [ 10002 ]
Priority Minor [ 4 ]
Christophe DENEUX made changes - Thu, 10 Mar 2011 - 18:50:35 +0100
Assignee Roland Naudin [ rnaudin ] Christophe DENEUX [ cdeneux ]
Christophe DENEUX made changes - Thu, 10 Mar 2011 - 18:50:38 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Fri, 11 Mar 2011 - 09:55:25 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 3.1.2 [ 10156 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Fri, 11 Mar 2011 - 09:56:49 +0100
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]