How much memory does a thread take in java

How much false memory printing will be performed in a normal thread in java. Assuming there is no object with it.

+5
source share
2 answers

The amount of memory allocated for the thread stack is specific to your JVM Version + Operating System. It is configured with the -XX: ThreadStackSize parameter (-Xss in older versions.) Anecdotally 512KB is "normal", although on 64-bit Linux it is 1024, which is probably the platform that is most often critical (in any case, the opinion of one guy)

+9
source

Java . , / .. - 512 . -Xss jvm.

java  -Xss128k
+2

All Articles