Need to find out that what is the minimum memory allocation for each thread, when JVM reach Maximum Thread count in Java?
            Asked
            
        
        
            Active
            
        
            Viewed 244 times
        
    1
            
            
        - 
                    1This answers max threads number but not the minimum memory : https://stackoverflow.com/questions/763579/how-many-threads-can-a-java-vm-support?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa – Lutzi May 08 '18 at 06:35
- 
                    Thank you Lutzi. I really appreciate your help, but my main concern is about minimum memory allocation. – Aravinda Meewalaarachchi May 08 '18 at 06:40
- 
                    Then this probably answers your question : https://stackoverflow.com/questions/4619211/how-much-memory-does-my-java-thread-take – Lutzi May 08 '18 at 06:43
- 
                    Minimum memory depends entirely on what the thread would be doing, and we can't answer that. Only you can, by testing it. – Andreas May 08 '18 at 06:44
1 Answers
1
            It is 2 MB. A good rule of thumb for maximum thread count is to allow 2MB of ram for each thread.
 
    
    
        Steave Jones
        
- 154
- 1
- 8
