Ok i got it. All system/user process are launch from /sbin/launchd. So
just create his config file to setup default resource limits:
*#cat /etc/launchd.conf
limit maxproc 1000 1000
*
Just be sure your default sysctl -n kern.maxproc and sysctl -n
kern.maxprocperuid are enought
or else setup /etc/sysctl.conf
Found in this Oracle db install documentation for OS X:
http://discus-hamburg.cocolog-nifty.com/mac_de_oracle/2009/04/leopard-de-or-1.html
Now I can setup ulimit for appserver without error
# sudo -u appserver ulimit -u 800
#
Thanks all four your help.
Caristan William a écrit :
Hi
I'm trying to run about one thousand webobjects instances on Mac OSX
Server 10.5.3.
Then i recompiled apache adaptor and setup wotaskd with
-WOWorkerThreadCountMax.
I have
root# sysctl -n kern.maxproc
2500
root# sysctl -n kern.maxprocperuid
1000
But I have a last problem with max user processes at system level for
appserver user.
I setup ulimit -u in
/System/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd wich
is run as appserver user. But this user is not allowed to setup more
than ulimit -u 532:
root# sudo -u appserver ulimit -u 533
/usr/bin/ulimit: line 4: ulimit: max user processes: cannot
modify limit: Operation not permitted
root# sudo -u appserver ulimit -u 532
root#
It's possible in current shell if it's allowed by root nefore:
root# ulimit -u 1024
root# sudo -u appserver ulimit -u 1024
root#
Does anyone know to setup system to launch wotaskd with such ulimit -u?
Thanks.
------------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/william.caristan%40univ-bordeaux.fr
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [email protected]