Hi Caristan,

Please don't get me wrong, but I'm still under the impression that you're just fighting symptoms, not the root cause of the problem.

Nevertheless, did you take a look into /etc/sysctl.conf.default on the server?

###
# /etc/sysctl.conf.default
###
#
# This file - /etc/sysctl.conf.default - is ignored by the boot process.
#
# To tune the system's settings for your site, copy this file to
# /etc/sysctl.conf and apply your changes; your settings will be applied after
# the tunings applied by /etc/rc.server.
...
# /etc/rc.server generally increases the maximum number of processes to
# available RAM or to the kernel's maximum. You may set a lower value for the
# system total or total per user.
#
# kern.maxproc=532
# kern.maxprocperuid=100
...



And this is what /etc/rc.server does:

...
#
# Scale kernel parameters based on memory configuration.
#
(( memsize=$(sysctl -n hw.memsize) ))
(( memsize/=1073741824 ))
...
if (( ${memsize} >= 2 )); then
...
        # Increase the system-wide limit on the number of processes.
        sysctl -w kern.maxproc=2500
...

#
# Increase the number of processes each user may launch.
# This must be done AFTER setting maxproc, because sysctl fails if a new
# value exceeds its limit (instead of pegging to max).
# The launchctl(8) command is necessary to raise the resource limit for
# launchd(8) and its children. See getrlimit(2) for information.
#
(( maxproc=$(sysctl -n kern.maxproc) ))
(( maxprocperuid=(${maxproc}>1100)?1000:(${maxproc}-100) ))
sysctl -w kern.maxprocperuid=${maxprocperuid}
launchctl limit maxproc ${maxprocperuid} ${maxproc}


Timo


Am 26.02.2010 um 19:42 schrieb Caristan William:

I'm not about to run 1000 instances on a single prod server. But we indeed have about 1000 prod instances dispached on 3 servers. And I already faced 2 default limit problems (64 for apache adaptor and 255 for -WOWorkerThreadCountMax wotaskd parameter). So I'd would like to be aware about any other limit problem, and not to have to solve it when already in emergency. Then I would like to check if it's possible to have lets say 600 instance in a single server.

About your link, I also found this page, and already tried /etc/ rc.common, no success. I didn't tried WindowServer wrapper as wotaskd is launched from system boot, not from GUI; So I was not sure about that. I'll give it a try antway. I tried this wrapper not on widowServer but on /sbin/launchd and ... I broke my test server, does not boot anymore :/


Timo Hoepfner a écrit :

Hi,

about 1000 instances seems to be a lot, are you sure you are on the right track with this deployment?

Here's an older hint. Some infos in the comments, especially the ones at the very bottom might still be helpful:

http://www.macosxhints.com/article.php?story=200311151254441

Timo

Am 26.02.2010 um 15:22 schrieb Caristan William:

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/th-dev%40onlinehome.de

This email sent to [email protected]

.



--
Cordialement,
<image001.gif>

Cellule Bases de Données & Exploitation
CARISTAN William
Administrateur BdD

tél. : 33 (0)5 4000 60 11
[email protected]
www.univ-bordeaux.fr/tic





_______________________________________________
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]

Reply via email to