Solved

Max Process size?

Posted on 2000-03-01
3
234 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 146
Process filename extension 3 194
abstract class with all non abstract mentods 6 79
Is there a simple front-end menu system. 9 103
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.

840 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