Comments (13)
Spring Boot Version: 5.3.3
Please clarify whether this is Spring Framework or Spring Boot version
Please also provide Reactor Netty version
from reactor-netty.
@violetagg
spring boot 2.7.17
reactor netty 1.0.38
from reactor-netty.
@Ruchika2203 Please provide code samples and/or reproducible example.
from reactor-netty.
This happens on "our" code base and we do not have a reproducible example for this .
This was found with paranoid settings and is there an alternate way to get any more details.
Both applications are spring boot and right side application connects to database.
from reactor-netty.
@Ruchika2203 Check this FAQ, may be it will help. https://projectreactor.io/docs/netty/release/reference/index.html#faq.memory-leaks
The stack above shows that the incoming data is kept in Reactor Netty, ready to be consumed by the application, I need to see your code in order to understand why your application does not consume the incoming data.
from reactor-netty.
Hi @violetagg ,
Here is one of the code snippet which is calling the right side app which is actually connecting to the database.
Also we see the memory leak in that datastore app only.
from reactor-netty.
@Ruchika2203 I checked the code but it does not seem to have issues (although there are structures that I don't know). Try to enable Reactor Netty/Spring logs and to trace the request/response what happens. You can correlate with the connection id (https://projectreactor.io/docs/netty/release/reference/index.html#faq.logging-prefix)
In your case the connection id is 613b1879-146
from the log Hint: [613b1879-146, L:/192.168.185.101:41270 - Buffered ByteBufHolder in the inbound buffer queue
from reactor-netty.
@violetagg Can we schedule a quick zoom connect to discuss on this issue.
from reactor-netty.
@Ruchika2203 It is our policy to collaborate asynchronously through GitHub issues when there is a problem that needs addressed. While we try to help anyone who raises an issue, it is often difficult to properly troubleshoot without an example. For this reason, our New Issue template asks for code to reproduce the issue and our contribution guidelines for Reactor do the same.
In order to progress on the issue we ask that a minimal example is provided and ideally checked into a new GitHub repository. If that is not possible then we will need to close the issue.
from reactor-netty.
hi @violetagg
One more info
we are using exchange() in our code and saw an article on stack overflow where its ,mentioned that the exchange() has been deprecated due to potential memory leak.
Stacktrace link: https://stackoverflow.com/questions/58410352/spring-boot-webclients-retrieve-vs-exchange
Can it be the probable cause for netty OOM.
Code snippet :
Mono<ResponseEntity> responseEntity = webClient.patch()
.uri(dataStoreUrlWithTTLMutate, version, sessionBucketName, sessionId, timeToLive).bodyValue(data)
.exchange().flatMap(response -> response.toEntity(JsonNode.class));
PhoenixCustomPerfLogger.logExecutionTime(stopWatch, StringUtils.join(dataStoreUrlWithTTLMutate, "/", version,
"/", sessionBucketName, "/", sessionId, "/", timeToLive), HttpMethod.PATCH.name());
from reactor-netty.
@Ruchika2203 Yes you will experience memory leaks. You handle only the success
path. Read more here:
https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/reactive/function/client/WebClient.RequestHeadersSpec.html#exchange()
from reactor-netty.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
from reactor-netty.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open.
from reactor-netty.
Related Issues (20)
- NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null HOT 2
- io.netty.handler.codec.DefaultHeaders.remove(DefaultHeaders.java 1074) java.lang.NullPointerException : Cannot read field ""hash"" because ""e"" is null HOT 14
- Missing/Wrong classifier in dependency netty-resolver-dns-native-macos HOT 1
- "IllegalReferenceCountException Occurs with HTTP/2 Due to Race Condition Between HttpServerOperation and SimpleCompressionHandler" HOT 17
- Possible memory leak when using pooled connections HOT 20
- Netty HttpClient - Capture / Log time taken for resolving DNS HOT 1
- Data related to the response is being filtered and body is not displayed despite various attempts to set it up HOT 1
- reactor.netty.http.client.PrematureCloseException: Connection has been closed BEFORE response, while sending request body HOT 4
- Netty HttpClient Connection Pool creates connection for every request HOT 13
- Getting timeout exception HOT 3
- Increased latency while calling api using webclient with connection pool HOT 5
- Some request of a webclient instance does not resolve the ip address of hostname correct after it has changed by the dns HOT 8
- Repeatedly releasing buf ,IllegalReferenceCountException: refCnt: 0, decrement: 1 HOT 1
- Possible Memory Leak with Netty Buffer HOT 5
- How Effective is the LIFO Strategy in Reactor Netty's Connection Pool for Multi-Host WebClient Scenarios? HOT 2
- crash occasionally with G1ParScanThreadState::copy_to_survivor_space HOT 3
- Multiple remote servers - Connection reset by peer HOT 7
- max_idle_time specification when using reactor-netty HOT 12
- LEAK on PrematureCloseException from springboot webflux
- The EpollSocketChannel object is too large to be reclaimed by the jvm HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactor-netty.