There is no available debug logging options so you'll need to use remote debugging to figure out what is going on.

https://cwiki.apache.org/confluence/display/TOMCAT/Developing#Developing-Q1

Mark


On 07/12/2022 14:07, Gustavo Monti Rocha wrote:
In fact I'm not setting those variables. That's why I'm not sure because
I'm getting that error.


On Wed, Dec 7, 2022 at 10:36 AM Mark Thomas <ma...@apache.org> wrote:

On 07/12/2022 12:15, Gustavo Monti Rocha wrote:
Hi Mark,

Thanks for helping me. How can I check if my environment has valid values
for JVM?

If you are setting those values, the simple solution is don't set them
and the JVM will use appropriate defaults for your environment.

If you do want to set them (why?), then look at the docs for your JVM /
platform to find acceptable values.

Mark



Thanks in advance.


On Wed, Dec 7, 2022 at 6:21 AM Mark Thomas <ma...@apache.org> wrote:

Make sure you have set socket.soLingerOn and socket.soLingerTime to
valid values for your JVM and platform. Tomcat does not set these by
default so it is something your application or Spring Boot is doing.

Mark


On 07/12/2022 01:47, Gustavo Monti Rocha wrote:
Hello,

I'm using spring boot with eureka and openfeign to communicate between
services A and B.

When a send a request from A to B getting:

2022-12-06 22:30:26.634 ERROR 6352 --- [o-8081-Acceptor]
org.apache.tomcat.util.net.NioEndpoint   : Error setting socket
options

java.net.SocketException: Invalid argument
at java.base/sun.nio.ch.Net.setIntOption0(Native Method) ~[na:na]
at java.base/sun.nio.ch.Net.setSocketOption(Net.java:455) ~[na:na]
at java.base/sun.nio.ch.Net.setSocketOption(Net.java:393) ~[na:na]
at
java.base/sun.nio.ch
.SocketChannelImpl.setOption(SocketChannelImpl.java:280)
~[na:na]
at java.base/sun.nio.ch
.SocketAdaptor.setIntOption(SocketAdaptor.java:247)
~[na:na]
at java.base/sun.nio.ch
.SocketAdaptor.setSoLinger(SocketAdaptor.java:285)
~[na:na]
at
org.apache.tomcat.util.net
.SocketProperties.setProperties(SocketProperties.java:219)
~[tomcat-embed-core-9.0.55.jar:9.0.55]
at
org.apache.tomcat.util.net
.NioEndpoint.setSocketOptions(NioEndpoint.java:495)
~[tomcat-embed-core-9.0.55.jar:9.0.55]
at
org.apache.tomcat.util.net
.NioEndpoint.setSocketOptions(NioEndpoint.java:78)
~[tomcat-embed-core-9.0.55.jar:9.0.55]
at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:149)
~[tomcat-embed-core-9.0.55.jar:9.0.55]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]

I'm using Spring boot 2.5.7 and Spring Cloud 2020.0.3.

java version "17.0.5" 2022-10-18 LTS
Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode,
sharing)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to