Operating System - HP-UX
1752299 Members
5014 Online
108786 Solutions
New Discussion юеВ

help improving performance on a non-root process

 
SOLVED
Go to solution
sombriks
Advisor

help improving performance on a non-root process

hello all

i have a java app server running under a non-root user, but i want to do some tweaks not related with java, but with the process itself.

see, this process uses great amounts of memory and open several files in the disk so it becomes quite slow. i also have a smaller app server (also java) and that one opens much less files and is much faster.

so, in order to enhance the process performance i've made a "renice -n -20 " as root and it makes a big difference.

now i would like to know how to allow my user running the server get allowed to open more files.

i've heard that there are some limits, bu i have no idea how to modify that.

thanks a lot in advance.
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: help improving performance on a non-root process

Shalom,

Note: Java itself can be a memory hog. Patching the system and going to later versions of JVM or JRE or JDK can have substantial performance boosts.

For your question, check the ulimit setting for this user.

You also might need to modify kernel parameters maxuprc to deal with limits on the number of processes a single user can have. The default of 75 can be a problem.

As far as renice goes, pushing much farther than you have gone with a lower renice figure might do more harm than good.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Steele_2
Honored Contributor

Re: help improving performance on a non-root process

Hi

Just a word of warning before I start researching your question; Renice / nice.

Nicing is an obsolete procedure by maybe two decades because it applies to a cpu bottleneck only, and cpu's no longer have the limitations that they once had.

And although still around nicing is determined by the O/S by default, where every process gets a defaulted job priority scheduled.

Worse case, your suped up nice processes take over the box preventing other processes from getting enough resources. In short, creating a dedicated box, or, a hung box that can't spawn a login shell because the login process doesn't have a high enough nice / priority.
Support Fatherhood - Stop Family Law
sombriks
Advisor

Re: help improving performance on a non-root process

hey, thanks a lot for the answers!

i'll take care with nice (though the app server with -20 is at speedlight) and will check ulimit tonight.

Kapil Jha
Honored Contributor

Re: help improving performance on a non-root process

you may also like to check kernel parameter
nfile,maxuprc and maxfiles.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Emil Velez
Honored Contributor

Re: help improving performance on a non-root process

Do you have MCOE or DCOE on your system.

IF you do then you have PRM. WIth PRM you can cause proceses in a certain group defined by userid and process name to have more resources.

The PRM configuration would need to be created by root but once the configuration is created by virtue of the processes existing running with a certain userid or name it can be given higher resource priority.