[launchd-dev] resource limits
Greg Dingle
gregdingle at yahoo.com
Sat Jul 7 16:16:41 PDT 2007
Hi, I'm just trying to get the resource limits working with launchd
and a plist. Whatever I try I get a segmentation fault.
I've tried with an empty dict:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>TEST</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/bin/ls</string>
</array>
<key>SoftResourceLimits</key>
<dict>
</dict>
</dict>
</plist>
And also with some dummy values:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>TEST</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/bin/ls</string>
</array>
<key>SoftResourceLimits</key>
<dict>
<key>Core</key>
<integer>10000000000</integer>
<key>CPU</key>
<integer>10000000000</integer>
<key>Data</key>
<integer>10000000000</integer>
<key>FileSize</key>
<integer>10000000000</integer>
<key>MemoryLock</key>
<integer>10000000000</integer>
<key>NumberOfFiles</key>
<integer>8192</integer>
<key>NumberofProcesses</key>
<integer>150</integer>
<key>ResidentSetSize</key>
<integer>100000000</integer>
<key>Stack</key>
<integer>10000</integer>
</dict>
</dict>
</plist>
Do I at least have the format correct? I couldn't find any examples
with google to work from.
Cheers,
Greeg
More information about the launchd-dev
mailing list