You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Campbell <pc...@gmail.com> on 2010/01/05 22:55:19 UTC
Tomcat uses IPv6 ?
lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 13931 pwc 33u IPv6 199611 0t0 TCP *:webcache (LISTEN)
java 13931 pwc 41u IPv6 199612 0t0 TCP *:8009 (LISTEN)
java 13931 pwc 42u IPv6 199616 0t0 TCP
localhost.localdomain:mxi (LISTEN)
I can't find anything in config files that helps me to understand why
Tomcat might use IPv6.
There are no other such uses.
I really would prefer not use ipv6.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat uses IPv6 ?
Posted by Mark Thomas <ma...@apache.org>.
On 05/01/2010 21:55, Paul Campbell wrote:
> lsof -i
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> java 13931 pwc 33u IPv6 199611 0t0 TCP *:webcache (LISTEN)
> java 13931 pwc 41u IPv6 199612 0t0 TCP *:8009 (LISTEN)
> java 13931 pwc 42u IPv6 199616 0t0 TCP
> localhost.localdomain:mxi (LISTEN)
>
> I can't find anything in config files that helps me to understand why
> Tomcat might use IPv6.
If it is enabled, Tomcat will use it.
> There are no other such uses.
> I really would prefer not use ipv6.
If I recall correctly, specifying "0.0.0.0" as the address parameter
will cause only ipv4 to be used.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat uses IPv6 ?
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul,
On 1/5/2010 4:55 PM, Paul Campbell wrote:
> lsof -i
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> java 13931 pwc 33u IPv6 199611 0t0 TCP *:webcache (LISTEN)
> java 13931 pwc 41u IPv6 199612 0t0 TCP *:8009 (LISTEN)
> java 13931 pwc 42u IPv6 199616 0t0 TCP
> localhost.localdomain:mxi (LISTEN)
>
> I can't find anything in config files that helps me to understand why
> Tomcat might use IPv6.
>
> There are no other such uses.
> I really would prefer not use ipv6.
Try forcing IPV4 in the JVM by adding:
- -Djava.net.preferIPv4Stack=true
to your startup command. You can do this a number of ways, but the
easiest would be to put the following into your
CATALINA_BASE/bin/setenv.sh script:
CATALINA_OPTS=-Djava.net.preferIPv4Stack=true
If you already have CATALINA_OPTS set, you will have to merge-in the
above configuration appropriately.
If you are using APR, you may have more work to do. Since you didn't say
anything about your configuration, I can't give you any further advice.
Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktDuUoACgkQ9CaO5/Lv0PBH2ACfa3PWH7C0CSS9BsvKYfCvKHaZ
SrwAnjbRNgjVioDFl4RWd3xEZbXnxAas
=smLb
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org