{"body":"To raise the number of concurrent threads you should lower the default stacksize java -Xss 64k.\n\nA Oracle 32 bit JVM will default to 320kb stack size per thread.\nFor a 32 bit JVM with 2gb of addressable memory this will give you a maximum of 6.5k threads.\nA Oracle 64 bit JVM will default to 1M stack size per thread.\nFor each gigabyte of memory you would get 1024 threads using the defaults.\nFor Linux only:\nulimit -a will give you the configured limits, for user processes and memory\nYou will only get 32k unique PIDs in linux cat /proc/sys/kernel/pid_max - a maximum of 32k processes.\nYou will get only 255k threads cat /proc/sys/kernel/threads-max","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/Im8HBHsL","modified":1511196288,"id":"Im8HBHsL","size":651,"lines":10,"own_paste":false,"theme":"","date":1511196288}