Comments (4)
Hi @ChrisCollinsIBM, we optimized the memory allocation of Processor in version 5.18.0 azure-sdk-for-java/sdk/eventhubs/azure-messaging-eventhubs/CHANGELOG.md at main · Azure/azure-sdk-for-java (github.com), this should lower the memory usage that you are seeing.
Each partition has a dedicated connection (link) to the service, the in-memory queues exist for each partition-receive. Each partition-receive is managed by an instance of partition-pump-x-x, so as you observed, allocation adds up based on the number of partitions-receive hosted in one machine.
from azure-sdk-for-java.
Thanks for the prompt response @anuchandy, I did find #38572 when I went digging into the EventHub Messaging history so I presume that's the fix you're referring to.
Since we're using the prefetch defaults (300) what would you suggest for a reasonable batch size? I see 100 tossed around in many discussions using a 3:1 prefetch:batch ratio but maybe that was cache related. But then in some other places I see 10 as a batch. Some guidance on this would be great, thanks!
from azure-sdk-for-java.
Hello @ChrisCollinsIBM, sorry for the late response. @conniey and I discussed this. We don’t have a one-size-fit-all recommendation for tuning prefetch and batch size for optimal memory, there is also a third variable of expected event(s) size. Our suggestion is to run the application (with actual event processing logic) and tune these values to achieve expected throughput. While doing this exercise, identify an appropriate value to set for max heap size (-Xmx). The idea is, once the application run reaches a steady state with expected throughput, force a full GC using tools such as JConsole, check how much memory is occupied after the full GC. You want to size the heap such that only ~30% is occupied after full GC; use this value to set the max heap size (-Xmx). Size the host (e.g., container) memory to have an "additional ~1 GB" of memory for the "non-heap" need for the JVM instance.
from azure-sdk-for-java.
Closing this, refer previous comment.
from azure-sdk-for-java.
Related Issues (20)
- Azure Json / Azure Xml - Stream style migration (management libraries) HOT 1
- [FEATURE REQ] add a LIVE test for azure-resourcemanager-appcomplianceautomation HOT 2
- I want to use the TranslationRecognizer in the Java speech SDK and configure the candidate languages
- [BUG] Streaming does not work with Spring AI and Azure OpenAI HOT 7
- [FEATURE REQ] Add live test for azure-resourcemanager-scvmm HOT 2
- [QUERY] 升级azure sdk到1.0.0-beta.9 中文问答回复异常
- [BUG] AcquireTokenSilentSupplier failed: Token not found in the cache
- [BUG] The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue. HOT 6
- Azure.Identity logging level should control the underlying log level of MSAL
- [FEATURE REQ] function app on ACA, support consumption tier
- [BUG] Azure SDK for Open AI doesn't respect Open AI API Specification when for content_filter and content_length_exceeded
- [BUG] java.lang.ExceptionInInitializerError HOT 2
- Documentation is not specific about null return values HOT 1
- Cosmos DB Java SDK Diagnostics report incorrect region for multi-region accounts HOT 2
- [FEATURE REQ] Managed Identity Support for Azure Synapse spark notebooks/jobs HOT 2
- [QUERY] Do we need to show "AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY" in the logs HOT 1
- [BUG] GetChatCompletionsStreamAsyncSample code not working HOT 2
- Migration directions from old azure-storage HOT 3
- [BUG] Failed to upload blob: Wrong number of arguments; expected 1, got 0 HOT 6
- [BUG] ChatRequestUserMessage content is binaryData HOT 3
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 azure-sdk-for-java.