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

Hide
noddoux added a comment - Wed, 14 Sep 2011 - 12:31:05 +0200

Merged to trunk

Show
noddoux added a comment - Wed, 14 Sep 2011 - 12:31:05 +0200 Merged to trunk
Hide
Christophe DENEUX added a comment - Fri, 11 Mar 2011 - 09:56:48 +0100 - edited

Written in backlog of the main line (to merge in trunk)
User guide changes merged in the user guide mainline

Show
Christophe DENEUX added a comment - Fri, 11 Mar 2011 - 09:56:48 +0100 - edited Written in backlog of the main line (to merge in trunk) User guide changes merged in the user guide mainline
Hide
Christophe DENEUX added a comment - Fri, 11 Mar 2011 - 09:55:25 +0100 - edited

Resolve in maintenance version: https://svn.petalslink.org/svnroot/branches-legacy/petals-enterprise-3.1.x/petals/container/petals-platform
User guide of the maintenance version update

Show
Christophe DENEUX added a comment - Fri, 11 Mar 2011 - 09:55:25 +0100 - edited Resolve in maintenance version: https://svn.petalslink.org/svnroot/branches-legacy/petals-enterprise-3.1.x/petals/container/petals-platform User guide of the maintenance version update

People

Dates

  • Created:
    Wed, 9 Mar 2011 - 14:48:39 +0100
    Updated:
    Wed, 14 Sep 2011 - 12:31:05 +0200
    Resolved:
    Wed, 14 Sep 2011 - 12:31:05 +0200