1753539 Members
5108 Online
108795 Solutions
New Discussion юеВ

maximum set memory

 
SOLVED
Go to solution
rajesh73_1
Frequent Advisor

maximum set memory

Hi ALL

i want to set maximum memory one particular application.

Eg i have 20 gb memory, i want set java application to 2gb

Thanks & regds
raj
6 REPLIES 6
Dennis Handly
Acclaimed Contributor
Solution

Re: maximum set memory

You need to make sure that your maxdsiz kernel parm is at least 2 Gb.
Note that all applications will be able to use this limit too.
rajesh73_1
Frequent Advisor

Re: maximum set memory

HI dennis

sorry pls u can explain pls

Regds
Prasanth V Aravind
Trusted Contributor

Re: maximum set memory

HI Rajesh,

maxdsiz is a hpux kernel parameter which used to defind maximum amount memory , which can be used by
any process in hpux.

As you said your system have 20 GB of memory & you are going run a java process... in this case the java process is not allowed to consume all 20GB memory. it will be able to use up to the maxdsiz limit.

As default limit is

1GB for 32bit application
&
4GB for 64bit application


If you want to check the current setting in your server the command is

kmtune | grep -i maxdsiz ( for 11.11)
kctune | grep -i maxdsiz ( for 11.23 or 31)

Pls check below link for more details
http://nixdoc.net/man-pages/HP-UX/man5/maxdsiz.5.html

Gudluck
Prasanth
Dennis Handly
Acclaimed Contributor

Re: maximum set memory

>sorry please you can explain please

Do you want to increase the limit for java or decrease it?

If you want to increase it, it will be increased for every process.

As mentioned by Prasanth, you use kctune(1m) (or kmtune(1m)) to check or change the value of the maxdsiz kernel parm.
rajesh73_1
Frequent Advisor

Re: maximum set memory

Hi Dennis & prasanth

Thanku very much for ur tips

Regds
rajesh73_1
Frequent Advisor

Re: maximum set memory

hi

thanku very much