-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constant memory usage increase #1141
Comments
PS: If it matters I also used some SSL to connect to my Kafka Cluster & SSO for login |
Humm, really strange, I have multiple instance with this version with no memory leak. The only way to understand is to do a memory dump, maybe try with VisualVM or JDK Mission Control and share the result ? |
Hello, Thanks for your help |
Hello I think I found the issue or at least one of the issues. In consumeNewest from RecordRepository Java you forgot to close the KafkaConsummer. Regards :) Arnaud |
this one : #1069 ? |
Yes ! I will try this version and come back to you if there is still an issue :) |
nice thanks :) |
Hello, Unfortunately after a while I still have memory leaks. Regards, Arnaud |
I don't think any PR or any ideas of the memory leak for now. |
Hello, Sry for the late reply. Yes I will believe that you can merge #1069 ! |
thanks @arnaud-ly, done ;) |
Hi @tchiotludo and @arnaud-ly, Thanks for your help, |
Can you send us the correlation between increase and server log please ? |
Hi @tchiotludo, thanks for your reply. Thanks for your help! |
I’ve continued reviewing and trying to “tune” the Java Virtual Machine to see if I can find a way to make it perform better. By increasing the maximum memory size, I’ve managed to eliminate the errors (requested encode buffer size exceeds the maximum allowable size and OutOfMemoryError: Java heap space), but the memory usage keeps climbing without stopping (it goes up and down, but when it drops, it doesn’t go down as much as it went up). Here’s an example of the behavior: Along with the logs corresponding to the two most significant spikes shown in the screenshot: |
Hi @tchiotludo, |
I reopened this one so far since you have added a lot of information |
Hello,
I'm a young developer so sorry if I don't have the usual reflex, I will try to contribute at the best of my abilities.
Basically I'm running AKHQ at the 0.21 version and often the application start to slow down because of OOM errors. So i have to manually stop the task.The memory usage seems to have an ascending stair shape so it nearly never deallocate or maybe it allocates too much.
I don't thinks it's a ressource issue, I allocate 2 thread with a 2 processors of 2 Go & RAM of 4 Go.
I was wondering if you might have a clue of where to look at or have a way to kill the process if I have OOM errors so it can auto relaunch in my aws ECS.
PS: I tried to kill it with this command in the Dockerfile, but I think the error is catch by micronaut / reactjs
CMD ["/usr/bin/java", "-Dmicronaut.config.files=/app/application.yml","-jar", "/app/akhq-0.21.0-all.jar", "-XX:OnError="kill -9 %p""]
Regards
Arnaud
The text was updated successfully, but these errors were encountered: