2

I am using Inetllij Idea to remote debug the java application, at first when I set the debug point, it will block the whole JVM and make the whole application unavailable. Then I change the break point to thread like this:

enter image description here

this will also block the application, then i tried to tweak the setting resume only current thread like this:

enter image description here

in spring boot application, this will block the controller rest request, when the first request hit the break point, the send same request will blocked. But other request works fine. is it possible to block the current thread, when the next same request reach, just pass without block. in other words, just block the one thread that current hit.

2
  • It should only block the thread being debugged, but if your application is not multithreaded - ie it runs in the main thread - debugging will block the whole app. Spring boot apps should run in the background, but note that all stream processing (from all threads) occurs in only 1 thread pool (default size processor count minus 1).
    – Bohemian
    Commented Jan 1 at 23:13
  • yeah,it seems the spring boot application will reuse the thread to handle the request, if the next request send to the debugging thread, it will also be blocked. the way to release other request it do not send request to the debugging active thread.
    – Dolphin
    Commented Jan 2 at 3:56

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.