-
Notifications
You must be signed in to change notification settings - Fork 220
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
Max heap memory used by Analysis App can be greater than RAM causing UI crashes #1712
Comments
As nassif suggested, this max heap size can be corrected in Bootstrap class. I found that the following code returns the real installed mem size. |
To make it more clear, when @patrickdalla said I was thinking to implement a dynamic memory allocation scheme, since now the Bootstrap class can give us more control over the max used heap. If user doesn't provide -Xmx and the machine has:
The default of most JVMs is to use just 1/4 of the RAM. Opinions? |
I would use 4G in a 8GB machine. |
Thanks @tc-wleite. Half the RAM seems reasonable. When processing, we need memory for other processes. When analyzing, we need memory to generate reports. |
Reopening, the switch introduced in #1713 should also handle lowercase units: g, m, k. If they are used, current code is interpreting the value always as bytes. |
Maybe this solution can cause some problem in Terminal Servers environment where the real RAM is huge, but there should be some memory usage limit between the different users, as more than one user can use IPED at the same time. What do you think @lfcnassif? Maybe we can discuss this in a new issue, specific for Terminal Server usage. |
@lfcnassif, just a minor detail... |
When opening IPED from "exe", it starts JVM with max heap size, "-Xmx" parameter, with value of 30G. It seems that JVM believes in this value, even if the real RAM installed is less than 30G, postponing some memory disallocation and halting IPED.
This IPED halting occurred in a case reported by Werner, during background timeline graph cache creation on a machine with 8GB of installed RAM, but testing the same case, I found that occurred also when toogling to timeline table view, even with timeline graph disabled, both processes that demand memory. The case worked when configured to use max heap size of 8GB, even with 3GB, but halted when executed via "exe".
The text was updated successfully, but these errors were encountered: