Unix Technical Forum

configuring amount of memory a process can use?

This is a discussion on configuring amount of memory a process can use? within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hi, I'm running tomcat-4.0.5 on openbsd 3.2 and if I run the tomcat process as user "root" I never ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 04:20 AM
tom
 
Posts: n/a
Default configuring amount of memory a process can use?

Hi,

I'm running tomcat-4.0.5 on openbsd 3.2 and if I run the tomcat process
as user "root" I never get any complaints that there isn't enough memory.
The problem is if I run another tomcat process (on a different port) as
another non-root user, tomcat complains that it is out of memory for certain
applications. This doesn't happen if I run both instances as "root".

Is there somewhere I can configure the amount of memory a user or
process can use?

Thanks,

-Tom


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 04:20 AM
Kelly D. Grills
 
Posts: n/a
Default Re: configuring amount of memory a process can use?

* tom <tom@e.n.l.u.n.a.com>:
> Hi,
>
> I'm running tomcat-4.0.5 on openbsd 3.2 and if I run the tomcat process
> as user "root" I never get any complaints that there isn't enough memory.
> The problem is if I run another tomcat process (on a different port) as
> another non-root user, tomcat complains that it is out of memory for certain
> applications. This doesn't happen if I run both instances as "root".
>
> Is there somewhere I can configure the amount of memory a user or
> process can use?


I don't know about openbsd, but in FreeBSD /etc/login.conf sounds like what
you're looking for. You might try the man pages for login.conf(5).

--
Kelly D. Grills
kdgrills@the-grills.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 04:20 AM
Len Philpot
 
Posts: n/a
Default Re: configuring amount of memory a process can use?

In comp.unix.admin tom <tom@e.n.l.u.n.a.com> wrote:
> Hi,
>
> I'm running tomcat-4.0.5 on openbsd 3.2 and if I run the tomcat process
> as user "root" I never get any complaints that there isn't enough memory.
> The problem is if I run another tomcat process (on a different port) as
> another non-root user, tomcat complains that it is out of memory for certain
> applications. This doesn't happen if I run both instances as "root".
>
> Is there somewhere I can configure the amount of memory a user or
> process can use?


Not sure whether it's available on openbsd, but ulimit on Solaris (and
elsewhere?) can set file descriptor limits, data segment sizes, etc.
I've used it to increase resources for a certain Legato Networker
utility that would crap out halfway through until I raised some limits.

--

-- Len Philpot ><> --
-- len@philpot.org http://philpot.org/ --
-- lphilpot01@yahoo.com (alternate email) --
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:34 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com