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

What's wrong with the Objeck VM? #462

Closed
ghost opened this issue Feb 13, 2024 · 4 comments
Closed

What's wrong with the Objeck VM? #462

ghost opened this issue Feb 13, 2024 · 4 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Feb 13, 2024

I spent hours watching Windows Task Manager. I found that the Objeck VM never gives back memory. It will only allocate more and more memory. The JVM, on the other hand, does give back memory and allocate more when needed.

@objeck
Copy link
Owner

objeck commented Feb 13, 2024

The virtual machine has a certain amount of free memory, but a portion of that memory is pooled for reuse. Whenever a garbage collection (GC) cycle starts, the runtime checks whether the memory usage is increasing or decreasing. If the memory usage is decreasing, the system releases unused memory. If the usage is increasing, the system may put the memory in cache or release it.

@objeck objeck closed this as completed Feb 13, 2024
@objeck
Copy link
Owner

objeck commented Feb 13, 2024

I spent hours watching Windows Task Manager. I found that the Objeck VM never gives back memory. It will only allocate more and more memory. The JVM, on the other hand, does give back memory and allocate more when needed.

If want to send a code example, I'll look at it. The process used for memory stress testing utilizes the CLBG binary tree algorithm.

@objeck
Copy link
Owner

objeck commented Mar 17, 2024

@iahung2 Thank you, there was a bug!

I initially thought it was related to memory swapping; however, it turned out to be a deadlock condition that I believe was introduced when I "fixed" an SA finding.

Also, I am creating Docker images that will be published between builds.

@objeck objeck reopened this Mar 17, 2024
@objeck objeck self-assigned this Mar 17, 2024
@objeck objeck added the bug label Mar 17, 2024
@objeck
Copy link
Owner

objeck commented Mar 17, 2024

See #482

@objeck objeck closed this as completed Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant