Detect blocking calls from non-blocking threads using BlockHound

Trying to detect blocking calls in my code. Its working with block(). public static void block(){ BlockHound.install(); Mono.delay(Duration.ofSeconds(1)) .doOnNext(it -> { try { Thread.sleep(10); } catch (InterruptedException e) { throw new RuntimeException(e); } }) .block(); } its showing me blocking calls Output: Caused by: java.lang.Error: Blocking call! java.lang.Thread.sleep But its not working with subscribe() or…

Details

Windows Server 2008 R2 + Apache 2.4 – Constant crashing with Faulting module name: ntdll.dll

Windows Server 2008 R2 Datacenter Edition 64 bit Using AWS EC2 m1.xlarge instance 15GB RAM , 4 vCPUs Intel Xeon Problem: crashing every 10 secs / every minute / sometimes 1 hour / randomly WINNT MPM Setting: # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxConnectionsPerChild: maximum number…

Details

Alpha Vantage Currency in Global Quote

When you make a Quote Endpoint call from the Alpha Vantage API, for example (https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=MSFT&apikey=demo), you don’t get currency with it. How can I know which currency is being used for the price listed in the response? Sample response: { “Global Quote”: { “01. symbol”: “MSFT”, “02. open”: “162.8235”, “03. high”: “163.2200”, “04. low”: “161.8250”,…

Details