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

Performance tuning for acceptance tests #325

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Performance tuning for acceptance tests #325

merged 1 commit into from
Mar 1, 2023

Conversation

joshuaspence
Copy link
Collaborator

Attempting to fix deadlock:

[2023-03-01T01:38:21,255] <device-state-check> WARN  monitor - Skipping check for 00:15:6d:00:00:0d, could not acquire lock
com.ubnt.service.lock.D: Failed to acquire lock before timeout
	at com.ubnt.service.lock.B.Ô00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.service.lock.ooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Ò00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.service.lock.OooO.while(Unknown Source) ~[ace.jar:?]
	at com.ubnt.service.lock.OooO.OO0000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.service.lock.OooO.õO0000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.service.devmgr.I.Ø00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.service.devmgr.WA.oO0000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.service.devmgr.WA.Ø00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.ace.C$_OOo.run(Unknown Source) ~[ace.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]

From https://hub.docker.com/r/jacobalberty/unifi:

Enable this with true if you run a system with a lot of devices and/or with a low powered system (like a Raspberry Pi). This makes a few adjustments to try and improve performance:

  • enable unifi.G1GC.enabled
  • set unifi.xms to JVM_INIT_HEAP_SIZE
  • set unifi.xmx to JVM_MAX_HEAP_SIZE
  • enable unifi.db.nojournal
  • set unifi.dg.extraargs to --quiet

See also https://help.ui.com/hc/en-us/articles/115005159588-UniFi-How-to-Tune-the-Network-Application-for-High-Number-of-UniFi-Devices.

From https://hub.docker.com/r/jacobalberty/unifi:

> Enable this with `true` if you run a system with a lot of devices and/or with a low powered system (like a Raspberry Pi). This makes a few adjustments to try and improve performance:
>
> - enable `unifi.G1GC.enabled`
> - set `unifi.xms` to `JVM_INIT_HEAP_SIZE`
> - set `unifi.xmx` to `JVM_MAX_HEAP_SIZE`
> - enable `unifi.db.nojournal`
> - set `unifi.dg.extraargs` to `--quiet`

See also https://help.ui.com/hc/en-us/articles/115005159588-UniFi-How-to-Tune-the-Network-Application-for-High-Number-of-UniFi-Devices.
@joshuaspence joshuaspence merged commit 38dd4b8 into main Mar 1, 2023
@joshuaspence joshuaspence deleted the deadlock branch March 1, 2023 02:03
joshuaspence added a commit to chrishas35/terraform-provider-unifi that referenced this pull request Mar 1, 2023
From https://hub.docker.com/r/jacobalberty/unifi:

> Enable this with `true` if you run a system with a lot of devices and/or with a low powered system (like a Raspberry Pi). This makes a few adjustments to try and improve performance:
>
> - enable `unifi.G1GC.enabled`
> - set `unifi.xms` to `JVM_INIT_HEAP_SIZE`
> - set `unifi.xmx` to `JVM_MAX_HEAP_SIZE`
> - enable `unifi.db.nojournal`
> - set `unifi.dg.extraargs` to `--quiet`

See also https://help.ui.com/hc/en-us/articles/115005159588-UniFi-How-to-Tune-the-Network-Application-for-High-Number-of-UniFi-Devices.
joshuaspence added a commit that referenced this pull request Mar 1, 2023
joshuaspence added a commit that referenced this pull request Mar 4, 2023
joshuaspence added a commit that referenced this pull request Mar 4, 2023
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

Successfully merging this pull request may close these issues.

None yet

1 participant