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

High memory usage on Mac #117

Open
newadventure079 opened this issue Feb 25, 2022 · 5 comments
Open

High memory usage on Mac #117

newadventure079 opened this issue Feb 25, 2022 · 5 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@newadventure079
Copy link

newadventure079 commented Feb 25, 2022

Describe the bug (mandatory)
After running the app for an hour or so the memory usage is over 5GB. One time it got up to 8GB

Information about environment (mandatory):

  • OS: macOS 12.2.1 arm64 (m1)
  • Java version
    openjdk version "11.0.14.1" 2022-02-08 LTS
    OpenJDK Runtime Environment Zulu11.54+25-CA (build 11.0.14.1+1-LTS)
    OpenJDK 64-Bit Server VM Zulu11.54+25-CA (build 11.0.14.1+1-LTS, mixed mode)

Steps to reproduce
On macOS open the app and use it for an hour. I transferred games over usb during this time

Expected behavior
Memory usage stays at an acceptable level

Screenshots and/or information from application log
Screen Shot 2022-02-25 at 1 13 13 AM

Did you see this issue in previous versions?
Don't know

Additional context
Add any other context about the problem here

@developersu developersu added the help wanted Extra attention is needed label Feb 25, 2022
@manuelsblanco
Copy link

What do you think @developersu about calling the garbage collector to maintain an acceptable use of the RAM? If you want I could try it.

@developersu
Copy link
Owner

@manuelsblanco sure, go ahead =)

Also we can just run application with -Xmx1g flag so it will limit memory usage, thus garbage collector will be calling more frequently without any code changes.

AFAIK java automatically allocates some (huge) amount of virtual memory. No matter how much memory you have it's like some percent of it.

@manuelsblanco
Copy link

@developersu

I'm going to think of several strategies to reduce the use of RAM, maybe call the gc() and use the right type of primitive to save memory.

@manuelsblanco
Copy link

@developersu

Can you guide me in order to solve this?

Failed to execute goal on project ns-usbloader: Could not resolve dependencies for project loper:ns-usbloader:jar:6.2: Could not find artifact ru.redrise:libKonogonka:jar:0.1-SNAPSHOT

@developersu
Copy link
Owner

@manuelsblanco Ok, I guess it's fixed now. You can try again with latest sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants