Solved

Max Process size?

Posted on 2000-03-01
3
233 Views
Last Modified: 2013-12-26
Hi,

What is the maximum virtial memory allowed in

HP-Unix latest version
Solaris latest version
Linux latest version
AIX's latest version

is it 4GB? or have it incresed?

i want to use this in order to predict how many maximum threads run in 1 process of Java virtual machine.

If it's 4Gb then roughly 2048-4096 threads allowed.I don't knwo for any Unix as I workde in windows only

thank you!
0
Comment
Question by:hey_hey
  • 2
3 Comments
 

Accepted Solution

by:
time4tea earned 35 total points
ID: 2573675
You are asking the wrong question...

The amount of virtual memory allowed, is different from the maximum process size, which (AFAIK) is 2Gb on all of the platforms you mention. ( for 32bit OS's ) Certainly is for Solaris 2.5

Even having said this, you will need to do some jiggery pokery with java to get it use this much memory ( may not be possible )...

The amount of memory has only a scant relation to the number of threads you can run - depends how much mem each thread takes up!

4096 threads sounds rather excessive anyhow, you may find that the thread scheduler begins to die under its own weight at this number .....

0
 

Author Comment

by:hey_hey
ID: 2575540
Adjusted points to 35
0
 

Author Comment

by:hey_hey
ID: 2575541
pls reead ,write up on my question in windows ,Zoppo gave a very informative reply.

you are right in all u said.except
>>>>>The amount of memory has only a scant relation to the number of threads you can run.

In an articel I read that each thread in java has 1Mb VM space allocarted to it (the thread is the Java thread + underlying native thread of OS),since only 2GB allowed for user ,so 2048 threads allowed only max.

so we have to increase page file/swap file size plus increase RAM size to fill gaps.

the final thing is in a server applicayton the number of threads has to be limited,there should be a counter and in a thread pool.right ? that is what we think of now.

thanks ,have more 50 points only, will increase later
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
string initialization in java 11 114
VBA "SendKeys" Syntax for Multiple Keystrokes 7 109
Window placement 17 83
changeXy challenge 13 84
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question