Java very limited on max number of threads?

后端 未结 6 1595
萌比男神i
萌比男神i 2021-02-08 07:53

We have a small text box with 512Mb of ram. We wanted to see how many threads we can create in Java in this box. To our surprise, we can\'t create many. Essentially the minimum

6条回答
  •  不知归路
    2021-02-08 08:44

    Once you create your 7k threads, you're not going to have any memory to do anything useful. Perhaps you should have a rethink about the design of your application?

    Anyway, isn't 512Mb quite small? Perhaps you could provide a bit more information about your application or perhaps the domain?

提交回复
热议问题