Comments (3)
The first thing that I did was convert your example to just java 17 - removing the task executor override and using just a cached thread pool for running the jobs in main. At least for me after 10 minutes the memory usage just exhibited a normal pattern of gc, where the heap was not growing. So I suspect the issue is with using virtual threads for the task executor - can you cofirm this?
from kubernetes-client.
I disagree, I adjusted my code for using java 17 without virtual Threads like you did,
After running for 10 minutes with count 16 I see the client occupies now most of the heap, it will grow more and more. The absolute count of a few MB is not that big, but the relative count, in contrast to all the other classes gets absurd. Its the same pattern as with the virtual threads. When switching to 6.8.1 I don't see anything like this:
from kubernetes-client.
Ok, upping the thread count made the issue more appearent over a short interval. The problem is with the auto-closure logic - it's adding a task to ensure the informer is closed if the client is closed, but there's nothing cleaning that up when the informer is closed naturally.
from kubernetes-client.
Related Issues (20)
- Consider splitting OpenShift Client module (GraalVM performance) HOT 2
- What is the reason for this problem “io.fabric8.kubernetes.client.KubernetesClientException: Failure executing“ HOT 3
- Upload file/dir to pod does not work in GKE HOT 17
- Align CRD generator behavior with Jackson HOT 6
- java.lang.IllegalArgumentException: Failure in creating proxy URL. Proxy port is required! HOT 2
- Is it normal that informer's WebSocket is frequently closed and reopened? HOT 7
- KubernetesMockServer does not implement garbage collection / cascading of deletion based on owner references HOT 9
- Support authentication with certificate in exec-credentials HOT 1
- Upgrade kubernetes-server-mock to okhttp4 mockwebserver to avoid vulnerability warning on old junit transitive dependency HOT 2
- Compile failures since 6.9.1 (io.fabric8.kubernetes.api.builder.Editable not found) HOT 10
- The java generator produces a new for each type occurrence HOT 12
- Push Sundrio generated code to the version control system
- Unable to update lease lock in fabric client with kubernetes version : v1.25.11-eks-a5565ad HOT 10
- Support for OVN networking API (k8s.ovn.org/v1) for Openshift 4.12+ HOT 7
- Add support for x-kubernetes-patch-merge-key and x-kubernetes-patch-strategy HOT 1
- Upgrade Fabric8 Kubernetes Model to Kubernetes v1.29 HOT 1
- unable to handle pinniped-provided mTLS credentials
- Update base container image for model generators HOT 2
- The v1 Version gateway-api not yet supported HOT 5
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 kubernetes-client.