-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Potential deadlock: frozen threads found with yourkit java profiler.. #671
Comments
When searching every 6 seconds.. It seems that the following threads have not changed their stack for more than 10 seconds. +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
searching at 10 sec interval a spike in cpu load |
Uploading 18 dec yacy stuck threads under load 6 sec.txt… Blocked thread yacy not responding... |
searching every 10 seconds All performance cores set to 48 out of 12 cores |
hi, smokingwheels, and thanks for feedback!
did that happened just once or are you able to replicate the problem again
and again?
|
Hi ran a few tests again. Java 21 amazon Found the ArrayStack was stopping eg blocked threads. I made 3 videos there in the Cloud Party share link on This site kazam_screen_cast_0000.mp4 running yourkit just looking around kazam_screen_cast_0001.mp4 ended up blocking 5 IP addresses of other peers because of blocked threads. kazam_screen_cast_0002.mp4 After adjusting 100 ms to 5000 ms after ChatGPT advice...+ recompile. // init the thread pool for the keeperOf executor service I really have no idea of the implications on a normal up to date pc.. |
ArratStacker.java Changed to See what happens |
How did the experiment with changing the code ended? Successful? Could it be
the right change?
|
I am still experimenting and testing. |
YaCy version: yacy_v1.940_202407241507_d181b9e89b
Uptime: 0 days 00:20
Java version: 21.0.5
Processors: 12
Load: 1.3701171875
Threads: 52/18, peak:98, total:293
Potential deadlock: frozen threads found
It seems that the following threads have not changed their stack for more than 10 seconds.
These threads are possibly (but not necessarily!) in a deadlock or hung.
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Name |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| +---IODispatcher Frozen for at least 10s |
| | | |
| | +---jdk.internal.misc.Unsafe.park(boolean, long) Unsafe.java (native) |
| | | |
| | +---java.util.concurrent.locks.LockSupport.park(Object) LockSupport.java:221 |
| | | |
| | +---java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer$Node, int, boolean, boolean, boolean, long) AbstractQueuedSynchronizer.java:754 |
| | | |
| | +---java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(int) AbstractQueuedSynchronizer.java:1099 |
| | | |
| | +---java.util.concurrent.Semaphore.acquire() Semaphore.java:318 |
| | | |
| | +---net.yacy.kelondro.rwi.IODispatcher.run() IODispatcher.java:154 |
| | |
| +---main Frozen for at least 10s |
| | | |
| | +---jdk.internal.misc.Unsafe.park(boolean, long) Unsafe.java (native) |
| | | |
| | +---java.util.concurrent.locks.LockSupport.park(Object) LockSupport.java:221 |
| | | |
| | +---java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer$Node, int, boolean, boolean, boolean, long) AbstractQueuedSynchronizer.java:754 |
| | | |
| | +---java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(int) AbstractQueuedSynchronizer.java:1099 |
| | | |
| | +---java.util.concurrent.Semaphore.acquire() Semaphore.java:318 |
| | | |
| | +---net.yacy.search.Switchboard.waitForShutdown() Switchboard.java:4565 |
| | | |
| | +---net.yacy.yacy.startup(File, File, long, long, boolean) yacy.java:392 |
| | | |
| | +---net.yacy.yacy.main(String[]) yacy.java:809 |
| | |
| +---WebStructureGraph.PublicRefDNSResolvingProcess Frozen for at least 10s |
| | |
| +---jdk.internal.misc.Unsafe.park(boolean, long) Unsafe.java (native) |
| | |
| +---java.util.concurrent.locks.LockSupport.park() LockSupport.java:371 |
| | |
| +---java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block() AbstractQueuedSynchronizer.java:519 |
| | |
| +---java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool$ManagedBlocker) ForkJoinPool.java:3780 |
| | |
| +---java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool$ManagedBlocker) ForkJoinPool.java:3725 |
| | |
| +---java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() AbstractQueuedSynchronizer.java:1712 |
| | |
| +---java.util.concurrent.LinkedBlockingQueue.take() LinkedBlockingQueue.java:435 |
| | |
| +---net.yacy.peers.graphics.WebStructureGraph$PublicRefDNSResolvingProcess.run() WebStructureGraph.java:190 |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Thanks Just learning how to use yourkit java profiler
The text was updated successfully, but these errors were encountered: