- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to Set Max Memory for User Account
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 02:50 AM
09-06-2007 02:50 AM
How to Set Max Memory for User Account
We are running HP-UX 11i v2 are have our webMethods application running the server (4 CPU x 16 GB RAM).
I would like to know if there is a way to set the maximum amount of memory that the wM application account (the "webm" user) can use. For example, I would like to limit the "webm" account to be able to use no more that half of the total RAM on this server. Thus any processes that this user spawns could consume a max of 8 GB of RAM.
How can I go about doing this?
Thanks in advance for your assistance!
Regards,
Darren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 02:52 AM
09-06-2007 02:52 AM
Re: How to Set Max Memory for User Account
ulimit.
Generally we place them in /etc/profile so the users can't just increase them.
For certain users like oracle that need more we modify the .profile for those users.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 02:59 AM
09-06-2007 02:59 AM
Re: How to Set Max Memory for User Account
If you want a per-user limit (all processes of the user together), I guess you need something like PRM or WLM to limit memory usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 03:00 AM
09-06-2007 03:00 AM
Re: How to Set Max Memory for User Account
You could set the RLIMIT_AS equivalent (total address space for the process), but that only limits virtual address space for that process itself (which isn't RAM either, you can eat 8Gb of virtual space but only touch 1 page). Fork a few children -- and you're over the desired limit. ulimit plus playing with the fork limit tunables might do it... but it seems rather hacky.
I think a better fit here is the PRM (Process Resource Manager) product. That will let you place several different categories (application, user, group, etc.) into memory resource partitions such that you'll get this sort of behavior.
Take a look at the PRM documentation at:
http://h20338.www2.hp.com/hpux11i/cache/317534-0-0-225-121.html
to see if it fits your needs (there's also ordering information, etc. there).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 03:14 AM
09-06-2007 03:14 AM
Re: How to Set Max Memory for User Account
I am not looking to limit memory per process currently (allthough it would be useful to understand how I could do that at some point in the future).
Currently, I need to know how to limit the max total memory that can be allocated to a single user to run all thier processes.
Cheers,
Darren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2007 05:31 AM
09-06-2007 05:31 AM