Created
May 24, 2012 18:26
-
-
Save bryanpaluch/2783302 to your computer and use it in GitHub Desktop.
too many open files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *** total connections: 64447 peak: 64447 | |
| Caught exception: Error: Too many open files | |
| ^C | |
| [admin@nodesbc1 ~]$ ps aux | |
| USER PID %CPU %MEM SZ RSS TT S START TIME COMMAND | |
| admin 16 4.1 0.7723064696700 ? O 18:16:52 2:49 /home/admin/local/bin/node ./websocketworker.js | |
| admin 18 0.2 0.17195243012 ? S 18:16:52 0:42 /home/admin/local/bin/node ./sipworker.js | |
| admin 9 0.1 0.01902814944 ? S 18:16:52 0:14 /home/admin/local/bin/node /home/admin/node-sbc/server.js | |
| admin 59 0.0 0.0 3400 2360 pts/1 S 18:18:10 0:00 -bash | |
| admin 181 0.0 0.0 2400 1264 pts/1 O 18:22:17 0:00 ps aux | |
| root 20298 0.0 0.0 0 0 ? S May 23 0:00 zsched | |
| root 20363 0.0 0.0 2188 1528 ? S May 23 0:00 /sbin/init | |
| root 20368 0.0 0.01636013496 ? S May 23 0:02 /lib/svc/bin/svc.startd | |
| root 20373 0.0 0.01264011500 ? S May 23 0:06 /lib/svc/bin/svc.configd | |
| root 20439 0.0 0.0 3912 1496 ? S May 23 0:00 /sbin/sh /lib/svc/method/svc-dlmgmtd | |
| netadm 20445 0.0 0.0 4248 3000 ? S May 23 0:00 /lib/inet/ipmgmtd | |
| root 20460 0.0 0.0 2476 1584 ? S May 23 0:00 /usr/lib/pfexecd | |
| root 20489 0.0 0.012864 8728 ? S May 23 0:00 /usr/lib/fm/fmd/fmd | |
| root 20514 0.0 0.010056 6312 ? S May 23 0:01 /usr/sbin/nscd | |
| admin 20601 0.0 0.015068 9668 ? S May 23 0:14 /home/admin/local/bin/node /home/admin/nodeapp/server.js | |
| root 20603 0.0 0.0 1948 1236 ? S May 23 0:00 /usr/sbin/cron | |
| root 20610 0.0 0.0 6372 3080 ? S May 23 0:00 /usr/lib/inet/inetd start | |
| root 20615 0.0 0.0 4192 1960 ? S May 23 0:00 /usr/sbin/syslogd | |
| root 20617 0.0 0.0 2160 1316 ? S May 23 0:00 /usr/lib/saf/sac -t 300 | |
| root 20620 0.0 0.0 1624 944 ? S May 23 0:00 /usr/lib/utmpd | |
| root 20621 0.0 0.0 2416 1420 ? S May 23 0:00 /usr/lib/saf/ttymon | |
| root 20627 0.0 0.0 1940 1408 console S May 23 0:00 /usr/lib/saf/ttymon -g -d /dev/console -l console -T vt100 -m ldterm | |
| root 20664 0.0 0.0 4200 1800 ? S May 23 0:00 /usr/lib/ssh/sshd | |
| root 20709 0.0 0.0 2392 1124 ? S May 23 0:00 /usr/lib/inet/in.ndpd | |
| root 24227 0.0 0.0 5600 2944 ? S 18:58:48 0:00 /usr/lib/ssh/sshd | |
| root 24228 0.0 0.0 8848 4412 ? S 18:58:48 0:00 /usr/lib/ssh/sshd | |
| root 24231 0.0 0.0 3348 2324 pts/1 S 18:58:49 0:00 -bash | |
| sudo prctl 16 | |
| process: 16: /home/admin/local/bin/node ./websocketworker.js | |
| NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT | |
| process.max-port-events | |
| privileged 65.5K - deny - | |
| system 2.15G max deny - | |
| process.max-msg-messages | |
| privileged 8.19K - deny - | |
| system 4.29G max deny - | |
| process.max-msg-qbytes | |
| privileged 64.0KB - deny - | |
| system 16.0EB max deny - | |
| process.max-sem-ops | |
| privileged 512 - deny - | |
| system 2.15G max deny - | |
| process.max-sem-nsems | |
| privileged 512 - deny - | |
| system 32.8K max deny - | |
| process.max-address-space | |
| privileged 16.0EB max deny - | |
| system 16.0EB max deny - | |
| process.max-file-descriptor | |
| privileged 65.5K - deny - | |
| basic 200K - deny 16 | |
| privileged 200K - deny - | |
| system 2.15G max deny - | |
| [admin@nodesbc1 ~]$ projects -l | |
| user.admin | |
| projid : 100 | |
| comment: "Nodejs Service" | |
| users : admin | |
| groups : (none) | |
| attribs: process.max-file-descriptor=(basic,200000,deny),(privileged,200000,deny) | |
| [admin@nodesbc1 ~/node-sbc]$ cat sbc.xml | |
| <?xml version='1.0'?> | |
| <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> | |
| <service_bundle type='manifest' name='export'> | |
| <service name='site/node-sbc-service' type='service' version='0'> | |
| <create_default_instance enabled='true'/> | |
| <single_instance/> | |
| <dependency name='network' grouping='require_all' restart_on='refresh' type='service'> | |
| <service_fmri value='svc:/milestone/network:default'/> | |
| </dependency> | |
| <dependency name='filesystem' grouping='require_all' restart_on='refresh' type='service'> | |
| <service_fmri value='svc:/system/filesystem/local'/> | |
| </dependency> | |
| <method_context project='user.admin' working_directory='/home/admin/node-sbc'> | |
| <method_credential group='staff' privileges='basic,net_privaddr' user='admin'/> | |
| <method_environment> | |
| <envvar name='PATH' value='/home/admin/local/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin'/> | |
| <envvar name='HOME' value='/home/admin'/> | |
| </method_environment> | |
| </method_context> | |
| <exec_method name='start' type='method' exec='/home/admin/local/bin/node /home/admin/node-sbc/server.js' timeout_seconds='60'/> | |
| <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/> | |
| <property_group name='startd' type='framework'> | |
| <propval name='duration' type='astring' value='child'/> | |
| <propval name='ignore_error' type='astring' value='core,signal'/> | |
| </property_group> | |
| <property_group name='application' type='application'/> | |
| <stability value='Evolving'/> | |
| <template> | |
| <common_name> | |
| <loctext xml:lang='C'>node sbc</loctext> | |
| </common_name> | |
| </template> | |
| </service> | |
| </service_bundle> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment