10

I'm using IntelliJ IDEA to debug remote tomcat application.

It works perfect before.

However, for recent times, it always get stuck at "collecting data", though the data is very small.

I have searched on this site, and tried:

Intelliji idea is very slow in debug mode and it is running perfectly in normal mode

IntelliJ freezes for about 30 seconds before debugging

Still does not work

xingbin
  • 27,410
  • 9
  • 53
  • 103
  • 1
    What's the Suspend Policy? Does switching it to [Thread](https://i.imgur.com/c5vbeA2.png) help? See [this document](https://intellij-support.jetbrains.com/hc/articles/206544799). If it doesn't help, file a bug at https://youtrack.jetbrains.com/issues/IDEA and attach the following: [idea.log](https://intellij-support.jetbrains.com/hc/articles/207241085), [thread dumps](https://intellij-support.jetbrains.com/hc/articles/206544899) of IntelliJ IDEA and Tomcat processes using `jstack`, `.idea` directory contents from the project. Specify IntelliJ IDEA, Java and Tomcat versions you are using. – CrazyCoder Apr 30 '19 at 03:31
  • [Debugger logs](https://intellij-support.jetbrains.com/hc/articles/207241125) may be also helpful. – CrazyCoder Apr 30 '19 at 03:31
  • @CrazyCoder It's thread policy. – xingbin Apr 30 '19 at 06:21
  • Did you solve the problem? – CrazyCoder Apr 30 '19 at 06:58
  • @CrazyCoder Not yet. I will file a bug and attach the log files. – xingbin Apr 30 '19 at 07:05
  • @CrazyCoder After closing the threads view, it became faster. – xingbin May 05 '19 at 12:58
  • I had the same and here was my solution https://stackoverflow.com/a/63447369/3554624 – panser Aug 17 '20 at 08:40

3 Answers3

10

I find this happens only when I open both Thread View and Variable View, like this

enter image description here

So I closed the Thread View, and it became much faster:

enter image description here

xingbin
  • 27,410
  • 9
  • 53
  • 103
3

A workaround for if the variable x is stuck at "Collecting data...", evaluating its methods like x.toString() still worked for me to view its contents.

WASDi
  • 161
  • 2
  • 3
0

In my IntelliJ IDEA 2022.2 the issue touched only List-like collections (thus all objects containing them as fields).
What helped me is disabling Enabling alternative view for Collection classes option in Settings > Debugger > Data Views > Java: enter image description here
Now it shows collection size and expandable items instead of Collecting data...: enter image description here

Samantra
  • 65
  • 1
  • 8