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 ]
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
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 ]
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
Christophe DENEUX made changes - Fri, 11 Mar 2011 - 09:56:49 +0100
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
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
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
1d 4h 1m
1
Christophe DENEUX
Thu, 10 Mar 2011 - 18:50:28 +0100
Open Open In Progress In Progress
10s
1
Christophe DENEUX
Thu, 10 Mar 2011 - 18:50:38 +0100
In Progress In Progress Resolved Resolved
15h 4m
1
Christophe DENEUX
Fri, 11 Mar 2011 - 09:55:25 +0100
Resolved Resolved Open Open
1m 24s
1
Christophe DENEUX
Fri, 11 Mar 2011 - 09:56:49 +0100
Open Open In Progress In Progress
187d 1h 34m
1
noddoux
Wed, 14 Sep 2011 - 12:30:54 +0200
In Progress In Progress Resolved Resolved
11s
1
noddoux
Wed, 14 Sep 2011 - 12:31:05 +0200