Z
Z
Zaur Abdulgalimov2016-08-20 19:07:04
Java
Zaur Abdulgalimov, 2016-08-20 19:07:04

Where do 23500 objects of type char[] come from in an empty java application?

Launched an empty java application:

public class FApp
    public static void main(String[] args)
    {
        int x = 1;
        while (true) {
            x++;
        }
    }
}

I set the YourKit profiler on him, saw this:
b07f079a0fb346b8bf15cf0b793b4a18.png
and was horrified o_O. Why are there so many objects in an empty application? Moreover, their number is constantly growing: +100 per second.
Can anyone please explain to me why this is happening?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alexandrov, 2016-08-20
@jamakasi666

And if you compile without debug symbols?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question