Skip to content
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

Avni server performance degrades after awhile due to memory leak/restrictions #784

Open
Tracked by #790
himeshr opened this issue Sep 10, 2024 · 2 comments
Open
Tracked by #790
Assignees
Labels

Comments

@himeshr
Copy link
Contributor

himeshr commented Sep 10, 2024

Motivation

Avni server performance degrades after awhile due to memory leak/restrictions

Acceptance Criteria

Avni-server should release unused entities for Garbage collection and not cause Memory footprint to bloat for more than specified limit and end up in degrading server performance.

@himeshr
Copy link
Contributor Author

himeshr commented Sep 11, 2024

Based on our analysis today, we observed the following:

  • Heap Memory was being freed up as part of "Full GC" periodically.
  • GC cpu utilization peaked to more than 50% and lasted for several minutes when we observe inoperability on our app
  • newRelic Real-time profiling which was enabled did not provide vital cues regarding HeapMemory foot-print and hence was disabled
  • After the recent restart of prod app server, we fetched the GC log file and we analysed the info using gceasy app. Link here
  • We did not find any event specific triggers that resulted in Heap Memory usage shooting up and its rather a gradual ascent

Current Todos

  • We wanna fetch the gc logs after a few more days of server uptime and then do a gc log analysis
  • configure gc to run much much before the app gets into a non responsive state

@himeshr
Copy link
Contributor Author

himeshr commented Sep 16, 2024

All GC log files are stored here for future reference:
https://drive.google.com/drive/folders/10FL8Zgu7SJz3vB_PE3F0KF2zUIkuDDw1?usp=sharing

Latest gc log file analysis is available here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Analysis
Development

No branches or pull requests

2 participants