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

microsoft-identity-device-broker: OOM exception for Java heap #3

Open
xaner4 opened this issue Jul 2, 2024 · 0 comments
Open

microsoft-identity-device-broker: OOM exception for Java heap #3

xaner4 opened this issue Jul 2, 2024 · 0 comments

Comments

@xaner4
Copy link

xaner4 commented Jul 2, 2024

Hi, Does anyone else need to restart microsoft-identity-device-broker.service every few hours?
I see in the journalctl logs that there's a lot of OOM errors in the java heap space.

Jul 01 16:45:30 fedora microsoft-identity-device-broker[816654]: Exception in thread "DBus Worker Thread-1" java.lang.OutOfMemoryError: Java heap space
Jul 01 16:54:08 fedora microsoft-identity-device-broker[816654]: Exception in thread "DBus Worker Thread-2" java.lang.OutOfMemoryError: Java heap space
Jul 01 16:57:57 fedora microsoft-identity-device-broker[816654]: Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "DBus Worker Thread-7"
Jul 01 16:57:58 fedora microsoft-identity-device-broker[816654]: Exception in thread "DBus Worker Thread-6" java.lang.OutOfMemoryError: Java heap space
Jul 01 16:57:58 fedora microsoft-identity-device-broker[816654]: Exception in thread "DBus Worker Thread-5" java.lang.OutOfMemoryError: Java heap space
Jul 01 17:00:47 fedora microsoft-identity-device-broker[816654]: Exception in thread "DBus Worker Thread-4" java.lang.OutOfMemoryError: Java heap space
Jul 01 17:04:22 fedora microsoft-identity-device-broker[816654]: Exception in thread "DBusConnection" java.lang.OutOfMemoryError: Java heap space
Jul 01 17:04:45 fedora microsoft-identity-device-broker[816654]: Exception in thread "pool-1-thread-1" java.lang.OutOfMemoryError: Java heap space
Jul 01 17:04:49 fedora microsoft-identity-device-broker[816654]: Exception in thread "DBus Worker Thread-8" java.lang.OutOfMemoryError: Java heap space

The /usr/lib/systemd/system/microsoft-identity-device-broker.service file sets -Xmx to 128m, which is probably a little small, but this was the default

Environment="JAVA_OPTS=-Xmx128m -Xss256k -XX:+UseParallelGC -XX:ParallelGCThreads=1"

I also thinks that the it's a little weird that it is using both -XX:+UseParallelGC and -XX:ParallelGCThreads=1, Doesn't that contradict each other?

Would it be enough to increase the xmx to 512m or something like this or is there a memory leak in that service maybe?

@xaner4 xaner4 changed the title OOM exception for Java heap microsoft-identity-device-broke: OOM exception for Java heap Jul 2, 2024
@xaner4 xaner4 changed the title microsoft-identity-device-broke: OOM exception for Java heap microsoft-identity-device-broker: OOM exception for Java heap Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant