Increase TCP max connections on Mac OS X

Reason I was trying to benchmark a TCP based file server on Mac OS X. The server is running latest Node.js (0.8.2), while the client to push the server is written in go. ‘Go’ can start thousands of concurrent goroutines easily. I got error when there are hundreds of concurrent clients. Steps increate max open files kern.maxfiles and kern.maxfilesperproc were small numbers, they need to be increased: after this, you can increase your account’s limit by ulimit -n:
Read more →

VMware Fusion Network Configuration

VMware Fusion does not include a network configuration tool like in Windows. But it does not mean you cannot config it. When the system starts, it will load the plist file of /Library/LaunchDaemons/com.vmware.launchd.vmware.plist, which will call the script boot.sh under /Library/Application Support/VMware Fusion/ <dict> <key>Label</key> <string>com.vmware.launchd.vmware</string> <key>ProgramArguments</key> <array> <string>/Library/Application Support/VMware Fusion/boot.sh</string> <string>–start</string> </array> <key>RunAtLoad</key> <true/> </dict> So, let’s look into the boot.sh. boot.sh supports 3 commands: –start, –stop and –restart.
Read more →